﻿/* ============================================
   LAW DETAILS PAGE - COMPLETE FINAL VERSION
   ============================================ */

/* 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;
}

/* ============================================
   LAW HEADER SECTION
   ============================================ */

.law-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;
}

    .law-header-section::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
      border-radius: 50%;
    }

    .law-header-section::after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -150px;
        width: 500px;
        height: 500px;
         border-radius: 50%;
    }

    .law-header-section .container {
        position: relative;
        z-index: 2;
    }

.law-header-card {
    text-align: center;
    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);
}

.law-header-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.law-number-badge {
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: clamp(14px, 2vw, 16px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
 }

    .law-number-badge:hover {
         box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
    }

.law-status-badge {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: clamp(13px, 2vw, 15px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .law-status-badge.status-active {
        background: var(--success);
        color: var(--moif-white);
    }

    .law-status-badge.status-amended {
        background: var(--warning);
        color: var(--moif-blue-dark);
    }

    .law-status-badge.status-repealed {
        background: var(--danger);
        color: var(--moif-white);
    }

.law-header-card h1 {
    color: var(--moif-white) !important;
    font-size: clamp(22px, 4vw, 32px);
    margin: 0 0 24px;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.law-header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

    .law-header-meta span {
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: clamp(14px, 2vw, 16px);
        font-weight: 500;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(5px);
     }

    .law-header-meta i {
        color: var(--moif-gold-bright);
        font-size: 20px;
    }

/* ============================================
   DETAILS SECTION
   ============================================ */

.law-details-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* ============================================
   DETAIL CARDS
   ============================================ */

.detail-card {
    background: var(--moif-white);
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
 }

    .detail-card:hover {
        box-shadow: 0 8px 24px rgba(13, 27, 62, 0.12);
     }

.detail-card-header {
    padding: 24px 28px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
 }

    .detail-card-header.collapsible {
        cursor: pointer;
    }

        .detail-card-header.collapsible:hover {
            background: #f1f5f9;
        }

    .detail-card-header h3 {
        font-size: clamp(17px, 2.5vw, 20px);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--moif-blue-dark);
        font-weight: 700;
    }

        .detail-card-header h3 i {
            color: var(--moif-gold);
            font-size: 24px;
        }

.count-badge {
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-inline-start: 8px;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.toggle-icon {
    font-size: 24px;
    color: var(--moif-blue-dark);
 }

   
.detail-card-body {
    padding: 28px;
}

/* ============================================
   INFO GRID
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.info-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
 }

    .info-item:hover {
        background: #ffffff;
        border-color: var(--moif-gold);
     }

    .info-item label {
        display: block;
        font-size: 13px;
        color: #64748b;
        margin-bottom: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-item span {
        font-weight: 600;
        color: var(--moif-blue-dark);
        font-size: clamp(14px, 2vw, 16px);
        display: block;
        line-height: 1.5;
    }

/* ============================================
   TEXT CONTENT
   ============================================ */

.summary-text {
    line-height: 1.9;
    text-align: justify;
    color: #334155;
    font-size: clamp(14px, 2vw, 16px);
    margin: 0;
}

.full-text-content {
    line-height: 2;
    text-align: justify;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #334155;
    font-size: clamp(14px, 2vw, 15px);
    border: 1px solid #e2e8f0;
}

    .full-text-content::-webkit-scrollbar {
        width: 8px;
    }

    .full-text-content::-webkit-scrollbar-track {
        background: #e2e8f0;
        border-radius: 4px;
    }

    .full-text-content::-webkit-scrollbar-thumb {
        background: var(--moif-gold);
        border-radius: 4px;
    }

/* ============================================
   KEYWORDS
   ============================================ */

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-tag {
    background: #f0f7ff;
    color: var(--moif-blue-dark);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
     border: 1px solid #e0f2fe;
}

    .keyword-tag:hover {
        background: var(--moif-gold);
        color: var(--moif-white);
        border-color: var(--moif-gold);
     }

 
/* ============================================
   REGULATIONS LIST
   ============================================ */

.regulations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.regulation-item-link {
    display: block;
    text-decoration: none;
}

.regulation-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
     align-items: center;
    border: 1px solid #e2e8f0;
}

.regulation-item-link:hover .regulation-item {
    background: var(--moif-white);
    box-shadow: 0 8px 24px rgba(13, 27, 62, 0.12);
     border-color: var(--moif-gold);
}

.regulation-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
 }

    .regulation-icon i {
        font-size: 28px;
        color: var(--moif-white);
    }

.regulation-content {
    flex: 1;
    min-width: 0;
}

    .regulation-content h4 {
        margin: 0 0 10px;
        font-size: clamp(15px, 2.5vw, 17px);
        color: var(--moif-blue-dark);
         font-weight: 700;
    }

.regulation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: clamp(12px, 2vw, 13px);
    color: #64748b;
}

.reg-type {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.regulation-arrow {
    width: 44px;
    height: 44px;
    background: var(--moif-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moif-gold);
    font-size: 20px;
     flex-shrink: 0;
    border: 2px solid #e2e8f0;
}

/* ============================================
   ATTACHMENTS
   ============================================ */

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
 }

    .attachment-item:hover {
        background: var(--moif-white);
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.08);
    }

.attachment-icon {
    width: 56px;
    height: 56px;
    background: var(--moif-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    border: 2px solid #fecaca;
}

    .attachment-icon i {
        font-size: 28px;
        color: var(--danger);
    }

.attachment-info {
    flex: 1;
    min-width: 0;
}

    .attachment-info h5 {
        margin: 0 0 6px;
        font-size: clamp(14px, 2vw, 16px);
        font-weight: 700;
        color: var(--moif-blue-dark);
    }

    .attachment-info span {
        font-size: clamp(12px, 2vw, 13px);
        color: #64748b;
        font-weight: 500;
    }

.attachment-download {
    background: var(--moif-gold);
    color: var(--moif-white);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
     white-space: nowrap;
    border: none;
}

    .attachment-download:hover {
        background: var(--moif-blue-dark);
         box-shadow: 0 4px 12px rgba(13, 27, 62, 0.2);
    }

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar-detail-card {
    background: var(--moif-white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
    border: 1px solid #e2e8f0;
 }

    .sidebar-detail-card:hover {
        box-shadow: 0 8px 24px rgba(13, 27, 62, 0.12);
    }

    .sidebar-detail-card h4 {
        font-size: clamp(16px, 2.5vw, 18px);
        margin: 0 0 20px;
        padding-bottom: 16px;
        border-bottom: 3px solid var(--moif-gold);
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--moif-blue-dark);
        font-weight: 700;
    }

        .sidebar-detail-card h4 i {
            color: var(--moif-gold);
            font-size: 22px;
        }

.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .quick-info-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px dashed #e2e8f0;
        gap: 12px;
    }

        .quick-info-list li:last-child {
            border-bottom: none;
        }

    .quick-info-list .label {
        color: #64748b;
        font-size: clamp(13px, 2vw, 14px);
        font-weight: 500;
    }

    .quick-info-list .value {
        font-weight: 700;
        font-size: clamp(14px, 2vw, 15px);
        color: var(--moif-blue-dark);
    }

        .quick-info-list .value.status-active {
            color: var(--success);
        }

        .quick-info-list .value.status-amended {
            color: var(--warning);
        }

        .quick-info-list .value.status-repealed {
            color: var(--danger);
        }

.related-laws-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .related-laws-list li {
        border-bottom: 1px solid #e2e8f0;
    }

        .related-laws-list li:last-child {
            border-bottom: none;
        }

        .related-laws-list li a {
            display: block;
            padding: 14px 0;
         }

.related-number {
    display: block;
    font-size: clamp(12px, 2vw, 13px);
    color: var(--moif-gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.related-title {
    display: block;
    font-size: clamp(13px, 2vw, 15px);
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

.related-laws-list li a:hover .related-title {
    color: var(--moif-gold);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .law-header-section {
        padding: 50px 0;
    }

    .law-details-section {
        padding: 50px 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .law-header-section {
        padding: 40px 0;
    }

        .law-header-section::before,
        .law-header-section::after {
            display: none;
        }

    .law-header-badge {
        flex-direction: column;
        gap: 12px;
    }

    .law-number-badge,
    .law-status-badge {
        width: 100%;
        text-align: center;
    }

    .law-header-meta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

        .law-header-meta span {
            width: 100%;
            justify-content: center;
        }

    /* Timeline mobile adjustments */
    .timeline {
        padding-inline-end: 0;
    }

        .timeline::before {
            display: none;
        }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-marker {
        position: static;
        margin: 0 auto 16px;
    }

    .timeline-content {
        margin-inline-end: 0;
        text-align: center;
    }

    .timeline-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-meta {
        justify-content: center;
    }

    .regulation-item {
        flex-direction: column;
        text-align: center;
    }

    .attachment-item {
        flex-direction: column;
        text-align: center;
    }

    .attachment-download {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .detail-card-header {
        padding: 16px;
    }

    .detail-card-body {
        padding: 16px;
    }

    .timeline-item {
        margin-bottom: 24px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .law-header-section::before,
    .law-header-section::after {
        display: none;
    }

    .law-header-section {
        background: none;
        padding: 20px 0;
    }

    .sidebar-detail-card,
    .page-title-area {
        display: none !important;
    }

    .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .detail-card {
        page-break-inside: avoid;
    }

}
/* ============================================
   TABLE ENHANCEMENTS - GOLD & BLUE THEME
   ============================================ */

.detail-card .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--moif-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.04);
}

    /* Table Header */
    .detail-card .table thead th {
        background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue) 100%);
        color: var(--moif-white);
        font-weight: 700;
        font-size: clamp(13px, 2vw, 14px);
        padding: 14px 20px;
        border: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* Table Cells */
    .detail-card .table tbody td {
        padding: 12px 20px;
        vertical-align: middle;
        border-bottom: 1px solid #eef2f6;
        color: #1e293b;
        font-weight: 500;
        font-size: clamp(13px, 2vw, 14px);
        background-color: var(--moif-white);
        transition: background-color 0.2s ease;
    }

    /* Remove bottom border on last row */
    .detail-card .table tbody tr:last-child td {
        border-bottom: none;
    }

    /* Hover Effect */
    .detail-card .table tbody tr:hover td {
        background-color: rgba(201, 162, 39, 0.08);
    }

/* Striped Rows (optional) */
.detail-card .table-striped tbody tr:nth-of-type(odd) td {
    background-color: #fafcff;
}

.detail-card .table-striped tbody tr:nth-of-type(odd):hover td {
    background-color: rgba(201, 162, 39, 0.08);
}

/* Bordered Table (if using .table-bordered) */
.detail-card .table-bordered {
    border: 1px solid var(--moif-gold);
}

    .detail-card .table-bordered th,
    .detail-card .table-bordered td {
        border: 1px solid #e2edf2;
    }

    .detail-card .table-bordered thead th {
        border-bottom-width: 2px;
        border-bottom-color: var(--moif-gold);
    }

/* Responsive Table Wrapper */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 1rem;
}

/* RTL Support */
[dir="rtl"] .detail-card .table th,
[dir="rtl"] .detail-card .table td {
    text-align: right;
}

[dir="rtl"] .detail-card .table thead th {
    text-align: right;
}
/* ============================================
   ITEMS SECTION - ENHANCED DATA TABLE
   ============================================ */

.items-section {
    background: var(--moif-white);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.items-toolbar {
    background: #fafbfc;
    border-bottom: 2px solid #f1f5f9;
    padding: 20px 24px 0;
}

.items-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.items-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 700;
    color: var(--moif-blue-dark);
    margin: 0;
}

    .items-heading i {
        color: var(--moif-gold);
        font-size: 20px;
    }

.items-total-badge {
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.items-search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.items-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 17px;
    pointer-events: none;
}

[dir="rtl"] .items-search-icon {
    right: 12px;
}

[dir="ltr"] .items-search-icon {
    left: 12px;
}

.items-search-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--moif-blue-dark);
    background: var(--moif-white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[dir="rtl"] .items-search-input {
    padding-right: 38px;
    text-align: right;
}

[dir="ltr"] .items-search-input {
    padding-left: 38px;
}

.items-search-input:focus {
    border-color: var(--moif-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.items-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.items-page-size-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.items-page-size {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--moif-blue-dark);
    background: var(--moif-white);
    cursor: pointer;
    outline: none;
}

    .items-page-size:focus {
        border-color: var(--moif-gold);
    }

.items-result-info {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Table wrapper */
.items-table-wrapper {
    border-radius: 0;
    margin: 0;
}

.items-table {
    margin-bottom: 0 !important;
}

    /* Sortable headers */
    .items-table thead th.sortable {
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }

        .items-table thead th.sortable:hover {
            background: linear-gradient(135deg, #1a2e5a, #243a6e) !important;
        }

.sort-icon {
    font-size: 14px;
    margin-inline-start: 6px;
    opacity: 0.5;
    vertical-align: middle;
}

.sort-active {
    opacity: 1;
    color: var(--moif-gold-bright);
}

/* Alternate row */
.items-table tbody .alt-row td {
    background-color: #fafcff;
}

.items-table tbody .alt-row:hover td {
    background-color: rgba(201, 162, 39, 0.08) !important;
}

/* Tariff code pill */
.tariff-code {
    background: #eef2ff;
    color: #3730a3;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Fee cell */
.fee-cell {
    font-weight: 700;
    color: var(--moif-blue-dark);
}

/* Empty state */
.items-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #94a3b8;
    font-size: 15px;
}

/* Pagination */
.items-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 24px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: var(--moif-white);
    color: var(--moif-blue-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

    .pg-btn:hover:not(:disabled) {
        background: var(--moif-gold);
        border-color: var(--moif-gold);
        color: var(--moif-white);
    }

    .pg-btn.active {
        background: var(--moif-blue-dark);
        border-color: var(--moif-blue-dark);
        color: var(--moif-white);
    }

    .pg-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.pg-ellipsis {
    padding: 0 4px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 36px;
}

/* Responsive */
@media (max-width: 768px) {
    .items-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-search-wrap {
        max-width: 100%;
        width: 100%;
    }

    .items-controls-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ============================================
   TRADE REMEDY CARD - ENHANCED
   ============================================ */

.trade-remedy-card .detail-card-header {
    border-bottom-color: var(--moif-gold);
}

.trade-remedy-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---- Hero Row ---- */
.tr-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: stretch;
}

/* Product block */
.tr-product-block {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    flex: 1;
    min-width: 0;
    transition: box-shadow 0.2s;
}

    .tr-product-block:hover {
        box-shadow: 0 4px 16px rgba(13, 27, 62, 0.08);
    }

.tr-product-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--moif-blue-dark), var(--moif-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .tr-product-icon i {
        font-size: 26px;
        color: var(--moif-white);
    }

.tr-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tr-product-name {
    font-size: clamp(16px, 2.5vw, 19px);
    font-weight: 700;
    color: var(--moif-blue-dark);
    line-height: 1.4;
    word-break: break-word;
}

/* Remedy badge block */
.tr-remedy-badge-block {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 14px;
    padding: 22px 28px;
    border: 2px solid transparent;
    min-width: 220px;
    max-width: 280px;
    transition: box-shadow 0.2s;
}

    .tr-remedy-badge-block:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

/* Colour themes per remedy type */
.remedy-antidumping {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #fb923c;
}

    .remedy-antidumping .tr-remedy-icon-wrap {
        background: #fb923c;
    }

    .remedy-antidumping .tr-remedy-name {
        color: #9a3412;
    }

.remedy-countervailing {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

    .remedy-countervailing .tr-remedy-icon-wrap {
        background: #22c55e;
    }

    .remedy-countervailing .tr-remedy-name {
        color: #14532d;
    }

.remedy-safeguard {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

    .remedy-safeguard .tr-remedy-icon-wrap {
        background: #3b82f6;
    }

    .remedy-safeguard .tr-remedy-name {
        color: #1e3a8a;
    }

.remedy-temporary {
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    border-color: #a855f7;
}

    .remedy-temporary .tr-remedy-icon-wrap {
        background: #a855f7;
    }

    .remedy-temporary .tr-remedy-name {
        color: #581c87;
    }

.remedy-default {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: var(--moif-gold);
}

    .remedy-default .tr-remedy-icon-wrap {
        background: var(--moif-gold);
    }

    .remedy-default .tr-remedy-name {
        color: var(--moif-blue-dark);
    }

.tr-remedy-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .tr-remedy-icon-wrap i {
        font-size: 26px;
        color: var(--moif-white);
    }

.tr-remedy-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-remedy-name {
    font-size: clamp(15px, 2vw, 17px);
    font-weight: 800;
    line-height: 1.3;
}

/* Shared label */
.tr-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

/* ---- Tariff Codes Section ---- */
.tr-tariff-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
}

.tr-tariff-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--moif-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .tr-tariff-header i {
        color: var(--moif-gold);
        font-size: 18px;
    }

.tr-codes-count {
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-inline-start: auto;
}

.tr-codes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tr-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--moif-white);
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #3730a3;
    letter-spacing: 0.5px;
    transition: all 0.18s;
}

    .tr-code-chip:hover {
        background: #eef2ff;
        border-color: #6366f1;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
        transform: translateY(-1px);
    }

    .tr-code-chip i {
        font-size: 13px;
        color: #94a3b8;
    }

.tr-codes-raw {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #3730a3;
    background: var(--moif-white);
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    word-break: break-all;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .tr-hero {
        grid-template-columns: 1fr;
    }

    .tr-remedy-badge-block {
        max-width: 100%;
        min-width: unset;
    }

    .tr-product-block,
    .tr-remedy-badge-block {
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .tr-product-icon,
    .tr-remedy-icon-wrap {
        width: 44px;
        height: 44px;
    }

        .tr-product-icon i,
        .tr-remedy-icon-wrap i {
            font-size: 22px;
        }

    .tr-tariff-section {
        padding: 16px;
    }

    .tr-code-chip {
        font-size: 12px;
        padding: 6px 10px;
    }
}
/* ══════════════════════════════════════════
   VERSIONS / AMENDMENTS TIMELINE — v2
══════════════════════════════════════════ */

.tl-outer {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* ── Spine ── */
.tl-item {
    display: flex;
    gap: 16px;
    position: relative;
    align-items: stretch;
}

[dir="rtl"] .tl-item {
    flex-direction: row ;
}

[dir="ltr"] .tl-item {
    flex-direction: row;
}
.tl-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 36px;
}

.tl-dot-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid var(--border, #E4E8F0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
    position: relative;
    z-index: 2;
}

    .tl-dot-ring i {
        font-size: 16px;
        color: var(--text-muted, #94A3B8);
        transition: color .2s;
    }

.tl-item.tl-current .tl-dot-ring {
    background: var(--moif-gold, #C9A227);
    border-color: var(--moif-gold, #C9A227);
    box-shadow: 0 0 0 4px rgba(201,162,39,.18);
}

    .tl-item.tl-current .tl-dot-ring i {
        color: #fff;
    }

.tl-connector {
    flex: 1;
    width: 2px;
    background: var(--border, #E4E8F0);
    min-height: 20px;
    margin: 2px 0;
}

.tl-item:last-child .tl-connector {
    display: none;
}

/* ── Card ── */
.tl-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border, #E4E8F0);
    border-radius: 14px;
    padding: 20px 22px 18px;
    margin-bottom: 18px;
    transition: box-shadow .2s, border-color .2s, transform .15s;
    cursor: default;
}

    .tl-card:hover {
        box-shadow: 0 6px 24px rgba(13,27,62,.09);
        border-color: #c8d4e8;
        transform: translateY(-1px);
    }

.tl-item.tl-current .tl-card {
    border-color: var(--moif-gold, #C9A227);
    border-width: 1.5px;
    box-shadow: 0 4px 18px rgba(201,162,39,.10);
}

/* ── Card header ── */
.tl-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

[dir="rtl"] .tl-card-head {
    flex-direction: row-reverse;
}

.tl-title {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    color: var(--moif-blue-dark, #0D1B3E);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    display: block;
}

    .tl-title:hover {
        color: var(--moif-gold, #C9A227);
    }

.tl-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .3px;
}

.tl-badge-current {
    background: var(--moif-gold, #C9A227);
    color: #fff;
}

.tl-badge-type {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* ── Meta row ── */
.tl-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.tl-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-sub, #64748B);
    font-weight: 500;
}

    .tl-meta-item i {
        color: var(--moif-gold, #C9A227);
        font-size: 14px;
    }

/* ── Body text ── */
.tl-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 10px;
}

/* ── Info pills ── */
.tl-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tl-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
}

    .tl-pill strong {
        color: var(--moif-blue-dark, #0D1B3E);
        font-weight: 700;
    }

/* ── CTA button ── */
.tl-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--moif-gold, #C9A227);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--moif-gold, #C9A227);
    transition: background .15s, color .15s;
    letter-spacing: .2px;
}

    .tl-cta:hover {
        background: var(--moif-gold, #C9A227);
        color: #fff;
    }

    .tl-cta i {
        font-size: 14px;
    }

/* ── Responsive ── */
@media (max-width: 576px) {
    .tl-card {
        padding: 16px 14px 14px;
    }

    .tl-spine {
        width: 28px;
    }

    .tl-dot-ring {
        width: 28px;
        height: 28px;
    }

        .tl-dot-ring i {
            font-size: 13px;
        }

    .tl-item {
        gap: 10px;
    }
}