:root {
    --color-primary-red: #E4312B;
    --color-primary-blue: #2B7BB9;
    --color-gold: #C5A059;
    --color-green: #10b981;
    --color-purple: #8b5cf6;
    --color-orange: #f59e0b;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-500: #64748B;
    --color-gray-700: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(43, 123, 185, 0.12);
    --shadow-lg: 0 8px 24px rgba(43, 123, 185, 0.15);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(180deg, #eef6fc 0%, var(--color-gray-50) 220px);
    color: var(--color-black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, #1e5a8a 55%, var(--color-primary-red) 140%);
    color: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--color-gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--color-white);
    border-radius: 50%;
    padding: 4px;
}

.brand-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-subtitle {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.header-nav .nav-link {
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Main */
.main-content {
    flex: 1;
    padding: 2rem 0 3rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header.with-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.75rem;
    background: linear-gradient(90deg, var(--color-primary-blue), var(--color-primary-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0.5rem;
}

.page-subtitle {
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

.back-link {
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Cards Grid */
.filters-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid rgba(43, 123, 185, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-white);
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.15);
}

/* Select2 — RTL searchable filters */
.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-right: 1rem;
    padding-left: 2.25rem;
    color: var(--color-black);
    text-align: right;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    left: 0.75rem;
    right: auto;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.15);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--color-primary-blue);
}

.select2-dropdown {
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    box-shadow: var(--shadow-md);
}

.select2-results__option {
    padding: 0.625rem 1rem;
    text-align: right;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--color-primary-blue);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-left: 0.5rem;
    color: var(--color-gray-500);
}

.select2-container {
    z-index: 100;
}

.form-group .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-right: 1rem;
    padding-left: 2.25rem;
    text-align: right;
}

.form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    left: 0.75rem;
    right: auto;
}

.form-group .select2-container--default.select2-container--open .select2-selection--single,
.form-group .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.15);
}

.filters-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-results-count {
    color: var(--color-gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--color-primary-blue);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    opacity: 0.15;
}

.project-card--blue { border-top-color: var(--color-primary-blue); }
.project-card--red { border-top-color: var(--color-primary-red); }
.project-card--gold { border-top-color: var(--color-gold); }
.project-card--green { border-top-color: var(--color-green); }
.project-card--purple { border-top-color: var(--color-purple); }

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-blue), #1e5a8a);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.project-card--red .card-badge {
    background: linear-gradient(135deg, var(--color-primary-red), #c42a25);
}

.project-card--gold .card-badge {
    background: linear-gradient(135deg, var(--color-gold), #a8864a);
}

.project-card--green .card-badge {
    background: linear-gradient(135deg, var(--color-green), #059669);
}

.project-card--purple .card-badge {
    background: linear-gradient(135deg, var(--color-purple), #7c3aed);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.metric {
    background: var(--color-gray-100);
    padding: 0.75rem;
    border-radius: 8px;
}

.metric--gold {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(197, 160, 89, 0.06));
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.metric--blue {
    background: linear-gradient(135deg, rgba(43, 123, 185, 0.14), rgba(43, 123, 185, 0.04));
    border: 1px solid rgba(43, 123, 185, 0.25);
}

.highlight-metric {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15) 0%, rgba(197, 160, 89, 0.05) 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.progress-bar {
    margin-top: 0.5rem;
    height: 8px;
    background: rgba(43, 123, 185, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar--sm {
    height: 6px;
}

.progress-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary-blue), var(--color-green));
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-blue);
}

.highlight-metric .metric-value {
    color: #8B6914;
}

.card-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-blue), #1e5a8a);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(43, 123, 185, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e5a8a, #164a72);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
}

.btn-outline:hover {
    background: var(--color-primary-blue);
    color: var(--color-white);
}

.btn-danger {
    background: var(--color-primary-red);
    color: var(--color-white);
}

.btn-danger:hover {
    background: #c42a25;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.page-link:hover:not(.disabled):not(.active) {
    background: var(--color-gray-100);
}

.page-link.active {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-red));
    color: var(--color-white);
    border-color: transparent;
}

.page-link.disabled {
    color: var(--color-gray-500);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Show Page */
.gov-chip {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-red), #c42a25);
    color: white;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    color: white;
    box-shadow: var(--shadow-md);
}

.stat-card--gold {
    background: linear-gradient(135deg, var(--color-gold), #a8864a);
}

.stat-card--blue {
    background: linear-gradient(135deg, var(--color-primary-blue), #1e5a8a);
}

.stat-card--red {
    background: linear-gradient(135deg, var(--color-primary-red), #c42a25);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.35rem;
}

.stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
}

.stat-card .progress-bar {
    background: rgba(255, 255, 255, 0.25);
    margin-top: 0.75rem;
}

.stat-card .progress-bar__fill {
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
}

.details-section--full {
    margin-top: 1.5rem;
}

.details-table tr.row-blue th { border-right: 3px solid var(--color-primary-blue); }
.details-table tr.row-green th { border-right: 3px solid var(--color-green); }
.details-table tr.row-purple th { border-right: 3px solid var(--color-purple); }
.details-table tr.row-orange th { border-right: 3px solid var(--color-orange); }
.details-table tr.row-teal th { border-right: 3px solid #14b8a6; }
.details-table tr.row-indigo th { border-right: 3px solid #6366f1; }

.show-layout {
    display: block;
}

.section-title {
    font-size: 1.15rem;
    color: var(--color-primary-blue);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--color-primary-blue), var(--color-gold), var(--color-primary-red)) 1;
}

.timeline-section--horizontal {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.h-timeline {
    direction: ltr;
    width: 100%;
    padding: 0.5rem 0 0;
    overflow-x: auto;
}

.h-timeline__canvas {
    position: relative;
    height: 230px;
    margin: 0 1.5rem;
}

.h-timeline__grid {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.h-timeline__grid-line {
    position: absolute;
    top: -18px;
    bottom: 0;
    width: 0;
    border-left: 1px dashed #d1d5db;
    transform: translateX(-50%);
}

.h-timeline__track {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    height: 16px;
    z-index: 1;
}

.h-timeline__track-base {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    border-radius: 999px;
    transform: translateY(-50%);
}

.h-timeline__track-shade {
    position: absolute;
    top: calc(50% + 1px);
    height: 48px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 100%);
    border-radius: 0 0 6px 6px;
    z-index: 0;
    pointer-events: none;
}

.h-timeline__track-progress {
    position: absolute;
    top: 50%;
    height: 10px;
    background: linear-gradient(90deg, #93c5fd, #3b82f6);
    border-radius: 999px;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.h-timeline__milestones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.h-timeline__milestone {
    position: absolute;
    top: 100px;
    transform: translateX(-50%);
    width: 0;
}

.h-timeline__caption {
    direction: rtl;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 155px;
    padding: 0 6px;
    line-height: 1.35;
}

/* Labels below the track */
.h-timeline__milestone--down .h-timeline__caption--title {
    top: 28px;
}

.h-timeline__milestone--down .h-timeline__caption--date {
    top: 50px;
}

/* Labels above the track */
.h-timeline__milestone--up .h-timeline__caption--title {
    bottom: 52px;
}

.h-timeline__milestone--up .h-timeline__caption--date {
    bottom: 28px;
}

.h-timeline__pin {
    position: relative;
    z-index: 2;
}

.h-timeline__dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--milestone-color);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18),
                0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.h-timeline__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--milestone-color);
    transform: translate(-50%, -50%);
}

.h-timeline__label-title,
.h-timeline__label-date {
    display: block;
    font-weight: 700;
    color: #111827;
    white-space: normal;
}

.h-timeline__label-title {
    font-size: 0.72rem;
    line-height: 1.4;
}

.h-timeline__label-date {
    font-size: 0.84rem;
    line-height: 1.3;
}

.h-timeline__axis {
    position: relative;
    height: 2.25rem;
    margin: 0.75rem 1.5rem 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.65rem;
}

.h-timeline__axis-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
    direction: rtl;
    font-weight: 500;
}

.h-timeline-empty {
    padding: 1.5rem;
    background: var(--color-gray-50);
    border-radius: 8px;
    text-align: center;
    color: var(--color-gray-500);
}

.h-timeline-fallback {
    list-style: none;
    margin-top: 1rem;
    text-align: right;
    direction: rtl;
}

.h-timeline-fallback li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--color-gray-200);
}

.timeline-section,
.details-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(43, 123, 185, 0.15);
    box-shadow: var(--shadow-md);
}

/* Legacy vertical timeline (fallback list only) */
.timeline {
    display: none;
}

/* Details Table */
.details-table-wrapper {
    overflow-x: auto;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 0.875rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--color-gray-200);
}

.details-table th {
    width: 40%;
    color: var(--color-gray-700);
    font-weight: 600;
    background: var(--color-gray-50);
}

.details-table td {
    font-weight: 500;
}

.details-table tr.highlight-row {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.12) 0%, rgba(197, 160, 89, 0.04) 100%);
}

.details-table tr.highlight-row th,
.details-table tr.highlight-row td {
    color: #8B6914;
    font-weight: 700;
}

/* Edit Form */
.edit-form {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--color-white);
    width: 100%;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.15);
}

.form-group.highlight-field {
    background: rgba(197, 160, 89, 0.08);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.25);
}

.form-error {
    color: var(--color-primary-red);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-gray-500);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, #1e5a8a 60%, var(--color-primary-red) 140%);
    color: var(--color-white);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.875rem;
    margin-top: auto;
    border-top: 3px solid var(--color-gold);
}

/* Project Drawer */
body.drawer-open {
    overflow: hidden;
}

.project-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
}

.project-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.project-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-drawer.is-open .project-drawer__backdrop {
    opacity: 1;
}

.project-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(92vw, 1500px);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 8px 0 40px rgba(43, 123, 185, 0.25);
    border-right: 4px solid var(--color-gold);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-drawer.is-open .project-drawer__panel {
    transform: translateX(0);
}

.project-drawer__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.project-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, #1e5a8a 55%, var(--color-primary-red) 140%);
    color: var(--color-white);
    border-bottom: 4px solid var(--color-gold);
    flex-shrink: 0;
}

.project-drawer__title-block {
    flex: 1;
    min-width: 0;
}

.project-drawer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.4;
    color: var(--color-white);
}

.project-drawer__header .gov-chip {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.project-drawer__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.project-drawer__actions .btn-outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.project-drawer__actions .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary-blue);
    border-color: var(--color-white);
}

.project-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.project-drawer__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.project-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
}

.project-drawer__body .timeline-section {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .project-drawer__panel {
        width: 100vw;
    }

    .project-drawer__header {
        padding: 1rem;
    }

    .project-drawer__title {
        font-size: 1.2rem;
    }

    .project-drawer__body {
        padding: 1rem;
    }
}
