/* ---------- Reset & basics ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    display: grid;
    grid-template-rows: auto 1fr; 
    font-family: 'Archivo', sans-serif;
    padding: 0 !important;   
    background: #f2f6fe;
    line-height: 1.5;
    color: #2d3748;
    display: grid;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

#lang-en, #lang-fr, #lang-es, #lang-pt, #lang-ru {
    font-family: 'Archivo', sans-serif;
    font-weight: 100;
}

.language-switcher button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.2s;
}

.language-switcher button:hover {
    background: #f5f5f5;
}

.language-switcher button.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* ====================== HERO SECTION ====================== */

.hero-section {
    min-height: calc(100vh - 60px);
    height: auto;
    order: 0;
    margin-top: 0; 
    padding-top: 60px;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 10, 25, 0.9) 0%,
        rgba(5, 10, 25, 0.75) 40%,
        rgba(5, 10, 25, 0.45) 70%,
        rgba(5, 10, 25, 0.2) 100%
    );
    z-index: 1;
    transition: opacity 0.6s ease;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding: 1rem 1rem 3rem 1rem;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
/*     background: rgba(15, 21, 47, 0.48);
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
    border-radius: 0;
    border: 1px solid rgba(100, 181, 246, 0.15);
 */}

.hero-text {
    color: white;
}

.hero-text h1 {
    font-size: 4rem;
    max-width: 900px;
    text-shadow:
        0 3px 8px rgba(0,0,0,.8),
        0 20px 60px rgba(0,0,0,.6);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
    margin: 0 auto 1.5rem;
    padding: 25px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.hero-lead {
    font-size: 1.3rem;
    font-weight: 100;
    line-height: 1.75;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 100;
    line-height: 1.8;
    margin: 0 auto 50px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-left: 4px solid #64b5f6;
    border-radius: 0;
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
    text-align: left;
}
.glass-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}
.hero-section::after {
    content:"";
    position:absolute;
    inset:-20%;
    background:
      radial-gradient(circle,
        rgba(100,181,246,.35) 0%,
        transparent 55%);

    filter: blur(80px);
    pointer-events:none;
    z-index:0;
}
@keyframes float {
  0%,100% {transform:translateY(0)}
  50% {transform:translateY(-6px)}
}

.glass-panel {
    animation: float 8s ease-in-out infinite;
}
#canvas-container {
    mix-blend-mode: screen;
    opacity:.95;
}
.hero-section::before {
    background:
      radial-gradient(circle at center,
        transparent 0%,
        rgba(5,10,25,.8) 65%);
}
/* master glass style */
.glass-panel {
    background:
        linear-gradient(180deg,
        rgba(255,255,255,.12),
        rgba(255,255,255,.03));

    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);

    border: 1px solid rgba(255,255,255,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        0 30px 90px rgba(0,0,0,.55);

    padding: 28px;
    position: relative;
}

/* glass edge highlight */
.glass-panel::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
      linear-gradient(120deg,
        transparent 100%,
        rgba(0, 0, 0, 0.25),
        transparent 0%);
    opacity:.4;
}

/* stacked depth */
.glass-panel:nth-child(1){transform:translateZ(0)}
.glass-panel:nth-child(2){transform:translateZ(-30px)}
.glass-panel:nth-child(3){transform:translateZ(-60px)}

.hero-sub strong {
    color: #90ccfd;
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.hero-sub .hero-btn-secondary {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-width: 1px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
    border-radius: 0;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-sub .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-sub .hero-btn-secondary {
        width: 100%;
        margin-top: 1rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
    letter-spacing: .02em;
    font-weight: 600;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hero-btn-primary:hover::before {
    left: 70%;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(100, 181, 246, 0.5);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.separator-section {
    position: relative;
    height: 20px;
    margin-top: -1px;
}

.separator-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #64b5f6 20%, 
        #42a5f5 50%, 
        #64b5f6 80%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
}

.separator-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 0;
    animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

@media(max-width: 768px) {
    .hero-content {
        margin: 0;
        width: 100%;
    }
    .hero-text h1 {
        font-size: 2.5rem;
        padding: 20px;
    }
    .hero-lead {
        font-size: 1.1rem;
        padding: 20px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }
    .separator-section {
        height: 10px;
    }
}

.hero-country-selector {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.hero-country-dropdown {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hero-country-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-country-dropdown:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.3);
}

.hero-country-dropdown option {
    background: #1a1a2e;
    color: white;
}

@media(max-width: 768px) {
    .hero-country-selector {
        margin-bottom: 1rem;
    }
}

/* ---------- Purple header bar ---------- */
.header-container {
    width: 100%;
    position: sticky;
    order: 0;
    top: 0;
    z-index: 100;
    left: 0;
    right: 0;
}

.header {
    background: #7660cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.8rem;
    cursor: default;
    text-decoration: none;
}

.logo-header {
    font-size: 0.8rem;
    letter-spacing: 5px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.logo-header:hover {
    opacity: 0.8;
}

.right-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.right-group a {
    color: #fff; 
    text-decoration: none;
    font-weight: 100;
    font-size: 1rem;
}

.right-group a:hover {
    opacity: 0.8;
}

/* ---------- Loading Spinner ---------- */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    min-height: 50vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #7660cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Search Bar & Sticky Controls ---------- */
.sticky-controls {
    position: sticky;
    top: 0px;
    z-index: 85;
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    padding: 1.95rem 1.5rem;
}
@media (max-width: 768px) {
    .sticky-controls {
        position: relative;
        top: 0px;
        
    }
}

.search-filter-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .search-icon {
        display: none;
    }
}

.search-input {
    width: 100%;
    padding: 0.63rem 1rem 0.875rem 0.875rem;
    border: 2px solid #d1d5db;
    border-radius: 0px;
    font-family: Archivo, sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .search-input {
        padding: 0.875rem 1rem;
        border-radius: 6px;
    }
}

.search-input:focus {
    outline: none;
    border-color: #7660cc;
    box-shadow: 0 0 0 3px rgba(118, 96, 204, 0.1);
}

.search-results-count {
    width: 100%;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #718096;
    padding-left: 0.25rem;
}

/* ---------- Filters ---------- */
.filters-section {
    z-index: 79;
}

.filters-card {
    background: #f9fafb;
    padding: 1rem;
    border: 2px solid #e5e7eb;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filters-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-clear {
    background: #fff;
    color: #dc2626;
    border: 2px solid #fca5a5;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.btn-clear:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toggle-latest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.toggle-latest:hover {
    border-color: #7660cc;
}

@media (max-width: 768px) {
    .toggle-latest {
        padding: 0.5rem;
    }
}

.toggle-latest input {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.toggle-latest label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

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

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

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filters-grid select {
    border-radius: 0px;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    background: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filters-grid select:focus {
    outline: none;
    border-color: #7660cc;
    box-shadow: 0 0 0 3px rgba(118, 96, 204, 0.1);
}

.filters-grid select:hover {
    border-color: #9ca3af;
}

.active-filters {
    margin-top: 0.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-badge {
    background: #7660cc;
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-badge button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}

/* ---------- Section wrapper ---------- */
.main-content {
    padding: 0 1rem 2rem;
}

@media (max-width: 968px) {
    .main-content {
        position: relative;
        padding-top: 0;
        padding-right: 0;
        padding-left: 0;
    }
}

.section {
    margin: 2rem 1rem;
    background: #fff;
    
    overflow: hidden;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 968px) {
    .section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #7660cc;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-header.empty-section {
    background: #9ca3af;
    cursor: default;
}

.section-header.empty-section:hover {
    background: #9ca3af;
}

.section-header:hover {
    background: #5e4db8;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.section.collapsed .section-toggle {
    transform: rotate(-90deg);
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.doc-count {
    background: rgba(255,255,255,0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.section.collapsed .section-content {
    max-height: 0;
}

/* ---------- Column headers ---------- */
.column-headers {
    display: grid;
    grid-template-columns: 2.8fr 1fr 1fr 1fr 1.2fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #374151;
    margin-bottom: 0;
    border-bottom: 2px solid #e5e7eb;
    font-family: 'Archivo', 'sans-serif';
    align-items: center;
    text-align: center;
    white-space: nowrap;
}

.column-headers span:first-child {
    text-align: left;
}

.column-headers span {
    padding: 0 0.5rem;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-headers span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: #d1d5db;
}

/* ---------- White rows container ---------- */
.rows {
    background: #fff;
    min-height: 60px;
}

/* ---------- Document row ---------- */
.doc-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.doc-row:last-child {
    border-bottom: none;
}

.doc-row-header {
    display: grid;
    grid-template-columns: 2.8fr 1fr 1fr 1fr 1.2fr;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.doc-row-header > div:not(.name):not(.download-area) {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

.doc-row-header > div:not(.name):not(.download-area):not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: #e5e7eb;
}

.doc-row-header:hover {
    background: #f9fafb;
}

.doc-row.expanded .doc-row-header {
    background: #f3f4f6;
}

.doc-row-header .date {
    font-size: 0.9375rem;
    font-weight: 400;
    white-space: nowrap;
    color: #4b5563;
}

.name {
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    overflow: hidden;
}

.name-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.name-content > span:first-child {
    word-break: break-word;
    overflow-wrap: break-word;
}

.expand-icon {
    color: #9ca3af;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.doc-row.expanded .expand-icon {
    transform: rotate(90deg);
}

.status,
.cycle,
.latest,
.action {
    text-align: center;  
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
}

.status {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-final,
.status-approved,
.status-published {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-reviewed {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.download-btn {
    background: #7660cc;
    color: #fff;
    font-family: 'Archivo', sans-serif;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #5e4db8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(118, 96, 204, 0.3);
}

.download-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.lang-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lang-btn {
    min-width: 50px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.lang-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(118, 96, 204, 0.3);
}

.download-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

/* ---------- Expandable Details ---------- */
.doc-details {
    display: none;
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
}

.doc-row.expanded .doc-details {
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #1f2937;
}

.detail-value a {
    color: #7660cc;
    text-decoration: none;
    word-break: break-all;
}

.detail-value a:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #a0aec0;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #718096;
}

.empty-state p {
    font-size: 0.95rem;
}

/* Component Tags - ROUNDED for contrast */
.component-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    margin-left: 0px;
}

/* Document Groups */
.document-group {
    margin-bottom: 2rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.group-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.group-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.coming-soon-badge {
    padding: 4px 12px;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.coming-soon-message {
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
}

.coming-soon-message a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.coming-soon-message a:hover {
    text-decoration: underline;
}

.group-rows {
    padding: 0;
}

.group-rows .doc-row {
    border-bottom: 1px solid #e5e7eb;
}

.group-rows .doc-row:last-child {
    border-bottom: none;
}

/* Link Rows */
.link-row {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.link-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #7660cc;
}

.link-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111827;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.link-title-text {
    line-height: 1.4;
}

.link-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.link-country {
    font-weight: 500;
    color: #4b5563;
}

.link-country::after {
    content: "•";
    margin-left: 1rem;
    color: #d1d5db;
}

.link-source {
    color: #6b7280;
}

.link-action {
    flex-shrink: 0;
}

.visit-btn {
    padding: 0.65rem 1.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.visit-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.visit-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.link-rows {
    display: flex;
    flex-direction: column;
}

/* Version and New Badges - ROUNDED */
.version-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.version-badge.final {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.version-badge.draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.new-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.new-badge:hover {
    opacity: 0.9;
}

.highlight-new-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.highlight-new-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.highlight-new-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Sidebar */
.sidebar-nav {
    position: sticky;
    top: 0px;
    padding-top: 1.95rem;
    align-self: flex-start;
    width: 280px;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    background: #ffffff;
    border-right: 2px solid #e5e7eb;
    z-index: 90;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-country-filter {
    width: 100%;
    margin-bottom: 1rem;
}

.sidebar-country-filter label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.sidebar-country-filter select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    background-color: #fff;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.sidebar-country-filter select:focus {
    outline: none;
    border-color: #7660cc;
    box-shadow: 0 0 0 3px rgba(118, 96, 204, 0.1);
}

.sidebar-menu {
    padding: 0.5rem 0;
}

.sidebar-menu-item {
    display: block;
    padding: 1rem 1.5rem 1rem 1.5rem;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu-item:hover {
    background: #f3f4f6;
    border-left-color: #7660cc;
    color: #7660cc;
}

.sidebar-menu-item.active {
    background: #ede9fe;
    border-left-color: #7660cc;
    color: #7660cc;
    font-weight: 600;
}

.sidebar-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sidebar-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-item-counts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.sidebar-count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.sidebar-count-wrapper.new-docs {
    order: -1;
}

.sidebar-count-label {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.7rem;
}

.sidebar-count-wrapper.new-docs .sidebar-count-label {
    color: #059669;
}

.sidebar-count-number {
    color: #4b5563;
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-count-wrapper.new-docs .sidebar-count-number {
    color: #10b981;
}

.sidebar-menu-item:hover .sidebar-count-number,
.sidebar-menu-item.active .sidebar-count-number {
    color: #7660cc;
}

.sidebar-menu-item:hover .sidebar-count-wrapper.new-docs .sidebar-count-number,
.sidebar-menu-item.active .sidebar-count-wrapper.new-docs .sidebar-count-number {
    color: #059669;
}

/* Mobile collapsible filter section */
.mobile-filters-section {
    background: #ffffff; 
    border-bottom: 2px solid #e5e7eb;
    padding: 0;
    margin-bottom: 0;
    display: none;
    position: relative;
    top: 0px;
    z-index: 80;
}

.mobile-filters-toggle {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #7660cc;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-filters-toggle-icon {
    transition: transform 0.3s ease;
}

.mobile-filters-toggle.active .mobile-filters-toggle-icon {
    transform: rotate(180deg);
}

.mobile-filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.mobile-filters-content.open {
    max-height: 2000px;
    padding: 1.25rem;
}

.mobile-filter-group {
    margin-bottom: 1rem;
}

.mobile-filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.mobile-filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    background-color: #fff;
    font-size: 0.9375rem;
}

/* Content wrapper to account for sidebar */
.content-wrapper {
    display: flex;
    gap: 0;
    margin-left: 0;
    min-height: 100vh;
    padding: 1.5rem 0 0; 
    background: #f2f6fe;
}

.content-wrapper > div:not(.sidebar-nav) {
    flex: 1;
    min-width: 0;
}

/* ====================== MOBILE DOCUMENT CARDS ====================== */

@media (max-width: 968px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .sidebar-nav {
        display: none;
    }
    
    .mobile-filters-section {
        display: block;
    }
    
    .content-wrapper {
        margin-left: 0;
        padding: 0 0 2rem;
    }

    .column-headers {
        display: none;
    }

    /* Mobile Card Layout */
    .doc-row {
        border: 2px solid #e5e7eb;
        margin: 0 1rem 1rem;
        border-radius: 0px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .doc-row-header {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: none;
    }

    .doc-row-header > div {
        width: 100%;
        padding: 0.875rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .doc-row-header > div::after {
        display: none;
    }

    .name {
        order: 1;
        background: #f9fafb;
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem !important;
    }

    .status {
        order: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem !important;
    }

    .status::before {
        content: 'Status';
        font-weight: 600;
        color: #6b7280;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .status > * {
        margin-left: auto;
    }

    .cycle {
        order: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem !important;
    }

    .cycle::before {
        content: 'Cycle';
        font-weight: 600;
        color: #6b7280;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .date {
        order: 4;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem !important;
    }

    .date::before {
        content: 'Date';
        font-weight: 600;
        color: #6b7280;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .download-area {
        order: 5;
        border-bottom: none;
        padding: 1rem !important;
    }
.latest {
    display: none !important;
}
    .download-btn,
    .lang-buttons {
        width: 100%;
    }

    .lang-buttons {
        justify-content: center;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .link-row {
        margin: 0 1rem 1rem;
    }

    .link-row-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .link-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .link-country::after {
        display: none;
    }
    
    .link-action {
        width: 100%;
    }
    
    .visit-btn {
        width: 100%;
    }

    .section {
        box-shadow: none;
    }

    .sticky-controls {
        border-radius: 0;
    }

    .filters-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .search-input {
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .right-group {
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding-top: 10px;
        height: auto;
        min-height: 80vh;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .section {
        margin: 1rem 0.5rem;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .toggle-latest {
        width: 100%;
        justify-content: center;
    }
}