/* BULKEMPO Website Styles */
/* Mobile-first responsive design */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    font-weight: 400;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #34495e;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Focus management for accessibility */
:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

/* List styles */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements */
input, textarea, select {
    font: inherit;
    color: inherit;
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Layout System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.container-sm { max-width: 576px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 768px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 992px; margin: 0 auto; padding: 0 1rem; }
.container-xl { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 0.5rem; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 0.5rem; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.5rem; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 0.5rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.5rem; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 0.5rem; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 0.5rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.5rem; }

/* Flexbox Utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-stretch { align-items: stretch; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-primary { color: #3498db; }
.text-secondary { color: #6c757d; }
.text-success { color: #27ae60; }
.text-danger { color: #e74c3c; }
.text-warning { color: #f39c12; }
.text-info { color: #17a2b8; }
.text-light { color: #ecf0f1; }
.text-dark { color: #2c3e50; }
.text-muted { color: #95a5a6; }

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* Background Utilities */
.bg-primary { background-color: #3498db; }
.bg-secondary { background-color: #6c757d; }
.bg-success { background-color: #27ae60; }
.bg-danger { background-color: #e74c3c; }
.bg-warning { background-color: #f39c12; }
.bg-info { background-color: #17a2b8; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #2c3e50; }
.bg-white { background-color: #ffffff; }

/* Border Utilities */
.border { border: 1px solid #e9ecef; }
.border-top { border-top: 1px solid #e9ecef; }
.border-bottom { border-bottom: 1px solid #e9ecef; }
.border-left { border-left: 1px solid #e9ecef; }
.border-right { border-right: 1px solid #e9ecef; }

.border-0 { border: 0; }
.border-primary { border-color: #3498db; }
.border-secondary { border-color: #6c757d; }

.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-circle { border-radius: 50%; }
.rounded-0 { border-radius: 0; }

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); }
.shadow { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.shadow-none { box-shadow: none; }

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1A2332 0%, #2C3E50 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.logo:hover {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (min-width: 640px) {
    .logo {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 768px) {
    .logo {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1024px) {
    .logo {
        width: 120px;
        height: 120px;
    }
}

.site-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.site-title-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: #ecf0f1;
    line-height: 1.2;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #FFD700;
    background: transparent;
    color: #FFD700;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: #FFD700;
    color: #1A2332;
    border-color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.lang-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border-color: #FFD700;
    transform: translateY(-1px);
}

.lang-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
        url('assets/images/bulgarian-dancers-processed-768.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.7);
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Hero Info Section */
.hero-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #FFD700, #C41E3A);
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.25rem;
    display: inline-block;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Hero Keywords */
.hero-keywords {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.keyword {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.keyword:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.keyword-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.keyword-link:hover {
    background: rgba(52, 152, 219, 0.8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Documents Section */
.documents {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: #6c757d;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: #6c757d;
    font-weight: 500;
}

/* Search Container */
.search-container {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.search-results {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1976d2;
    text-align: center;
    display: none;
}

.search-results.show {
    display: block;
}

.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
    font-weight: 600;
}

/* Language switching animation */
.language-switching {
    transition: opacity 0.3s ease;
}

.language-switching * {
    transition: opacity 0.3s ease;
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

/* Show documents side by side on larger screens */
@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.document-category {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(196, 30, 58, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C41E3A, #FFD700, #00966C);
}

.document-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(196, 30, 58, 0.2);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1A2332;
    border-bottom: 3px solid #C41E3A;
    padding-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30%;
    height: 3px;
    background: #FFD700;
}

.category-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.document-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.document-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.document-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.document-type {
    font-size: 0.8rem;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.no-documents {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.search-results {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1976d2;
    text-align: center;
}

.document-item[tabindex="0"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.document-item:hover .document-type {
    background: #3498db;
    color: white;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.footer-description {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.footer-address {
    font-style: normal;
    color: #95a5a6;
}

.footer-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
}

.footer-text {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-status {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    width: 95%;
    height: 90%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 1.25rem;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2c3e50;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.modal-body {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Old PDF controls styles removed - using newer styles below */

#page-info {
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Breakpoints */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .search-input {
        padding: 1.25rem 2rem;
    }
    
    /* Responsive columns for small devices */
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .site-title-main {
        font-size: 1.8rem;
    }
    
    .site-title-sub {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-info {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .info-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .documents {
        padding: 5rem 0;
    }
    
    .documents-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .document-category {
        padding: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr;
        text-align: left;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .modal-content {
        width: 90%;
        height: 85%;
        margin: 5% auto;
    }
    
    .pdf-controls {
        gap: 1.5rem;
    }
    
    /* Responsive columns for medium devices */
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .site-title-main {
        font-size: 2rem;
    }
    
    .site-title-sub {
        font-size: 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-info {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .info-item:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
    
    .documents {
        padding: 6rem 0;
    }
    
    .documents-grid {
        gap: 4rem;
    }
    
    .document-category {
        padding: 3rem;
    }
    
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-nav {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 85%;
        height: 80%;
    }
    
    /* Responsive columns for large devices */
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 80%;
        height: 75%;
    }
    
    /* Responsive columns for extra large devices */
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .documents {
        padding: 8rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --border-color: #333;
    }
    
    /* Dark mode styles can be added here if needed */
}

/* Print styles */
@media print {
    .header,
    .footer,
    .language-toggle,
    .modal,
    .hero-keywords {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .documents {
        background: none;
    }
    
    .document-category {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Interactive Elements & Animations */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

/* Card Components */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    border-bottom-right-radius: calc(0.5rem - 1px);
    border-bottom-left-radius: calc(0.5rem - 1px);
}

/* Loading Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Focus styles for accessibility */
button:focus,
.document-item:focus,
.btn:focus,
.card:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 6px;
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    transition: top 0.3s;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
    visibility: visible;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* GPU acceleration for smooth animations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}/* P
DF Viewer Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 2% auto;
    width: 95%;
    height: 95%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #34495e;
}

.modal-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.document-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav-document-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.nav-document-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-document-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.document-position {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Modal close button styles are defined above */

.modal-body {
    flex: 1;
    overflow: auto;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    display: block; /* Changed from flex to block for better scroll behavior */
    position: relative;
    /* Enable scrolling when content is larger than container */
    overflow: auto;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Add padding to ensure content is always accessible */
    padding: 20px;
    box-sizing: border-box;
    /* Custom scrollbars */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.pdf-viewer::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pdf-viewer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pdf-viewer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.pdf-viewer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#pdf-canvas {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background-color: white;
    display: block;
    margin: 0 auto;
    /* Allow unlimited zoom - remove max constraints */
    min-width: 100px;
    min-height: 100px;
    /* Preserve aspect ratio */
    object-fit: contain;
    /* Enable smooth transitions */
    transition: transform 0.1s ease-out;
    /* Cursor for dragging when zoomed */
    cursor: grab;
}

#pdf-canvas:active {
    cursor: grabbing;
}

.modal-footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.control-btn:disabled:hover {
    background-color: #bdc3c7;
    transform: none;
}

#page-info {
    font-weight: 500;
    color: #2c3e50;
    padding: 0.5rem 0.75rem;
    background-color: transparent;
    border: none;
    min-width: 60px;
    text-align: center;
    font-size: 0.9rem;
}

.page-input {
    width: 60px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    background-color: white;
}

.page-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.zoom-select {
    padding: 0.4rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 100px;
}

.zoom-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* PDF Loading and Error States */
.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.125rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.pdf-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    text-align: center;
    background-color: #fff5f5;
    border-radius: 8px;
    border: 2px solid #fed7d7;
    color: #c53030;
}

.pdf-error .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.pdf-error .error-message {
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    font-size: 1.1rem;
}

.pdf-error .error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pdf-error .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.pdf-error .btn-primary {
    background: #3498db;
    color: white;
}

.pdf-error .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.pdf-error .btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.pdf-error .btn-secondary:hover {
    background: #3498db;
    color: white;
}

.pdf-error code {
    background-color: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #2c3e50;
}

.download-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Loading states */
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.pdf-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error notification styles */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
    animation: slideInRight 0.3s ease-out;
}

.error-notification.warning {
    background: #f39c12;
}

.error-notification.success {
    background: #27ae60;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Offline message */
.offline-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 10000;
    font-weight: 500;
}

/* Browser compatibility warning */
.browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f39c12;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 10000;
    font-weight: 500;
}

.browser-warning button {
    background: none;
    border: 1px solid white;
    color: white;
    margin-left: 10px;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 3px;
}

/* Error placeholder for images */
.error-placeholder {
    border: 2px dashed #ccc !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
}
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.download-link:hover {
    background-color: #3498db;
    color: white;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1% auto;
        width: 98%;
        height: 98%;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .pdf-controls {
        gap: 0.25rem;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .control-group {
        gap: 0.25rem;
        padding: 0.25rem;
        margin: 0.125rem;
    }
    
    .control-btn {
        padding: 0.4rem;
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    #page-info {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
        min-width: 50px;
    }
    
    .page-input {
        width: 50px;
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .zoom-select {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .pdf-controls {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .control-group:first-child {
        order: 1; /* Page navigation first */
    }
    
    .control-group:nth-child(2) {
        order: 2; /* Zoom controls second */
    }
    
    .control-group:nth-child(3) {
        order: 4; /* View controls last */
    }
    
    .control-group:nth-child(4) {
        order: 3; /* Action controls third */
    }
    
    .control-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .page-input {
        width: 45px;
        font-size: 0.75rem;
    }
    
    .zoom-select {
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    #page-info {
        font-size: 0.75rem;
        min-width: 40px;
    }
}

/* Animation for loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
.control-btn:focus,
.close-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast styles removed - causing visual issues */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pdf-loading::before {
        animation: none;
    }
}

/* Fallback system styles */
.download-fallback {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    position: relative;
}

.download-fallback::before {
    content: '⬇';
    margin-right: 0.5rem;
}

.download-fallback:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    transform: translateY(-1px);
}

.fallback-message {
    background: #f39c12;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

.fallback-message a {
    color: white;
    text-decoration: underline;
}

.fallback-message a:hover {
    text-decoration: none;
}

/* Browser compatibility warning */
.browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f39c12;
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 10000;
    font-weight: 500;
}

.browser-warning button {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.25rem 0.75rem;
    margin-left: 1rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.browser-warning button:hover {
    background: white;
    color: #f39c12;
}

/* Enhanced accessibility styles */
/* Ensure sufficient color contrast ratios (WCAG AA: 4.5:1, AAA: 7:1) */

/* Text contrast improvements */
body {
    color: #2c3e50; /* Contrast ratio: 12.6:1 on white */
}

.hero-section {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%); /* Darker blue for better contrast */
}

.hero-title, .hero-subtitle, .hero-description {
    color: #ffffff; /* Ensures 4.5:1+ contrast on dark backgrounds */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Improves readability */
}

/* Button contrast improvements */
.btn-primary {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    color: #ffffff; /* High contrast */
    border: 1px solid #1f4e79;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f4e79, #174a6b);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #2c3e50; /* High contrast on light backgrounds */
    border: 2px solid #2c3e50;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: #ffffff;
}

/* Link contrast improvements */
a {
    color: #2980b9; /* Contrast ratio: 5.14:1 on white */
}

a:hover, a:focus {
    color: #1f4e79; /* Even higher contrast */
    text-decoration: underline;
}

/* Form element contrast */
input, select, textarea {
    color: #2c3e50;
    border: 2px solid #bdc3c7; /* Visible border */
    background: #ffffff;
}

input:focus, select:focus, textarea:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

/* Document card contrast */
.document-card {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.document-card:hover, .document-card:focus {
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.15);
}

/* Footer contrast */
.footer {
    background: #2c3e50;
    color: #ecf0f1; /* High contrast */
}

.footer a {
    color: #3498db; /* Sufficient contrast on dark background */
}

.footer a:hover {
    color: #5dade2;
}

/* High contrast focus indicators */
*:focus {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
}

/* Skip link styles are defined above */

/* Language toggle styles are defined above */
}

/* Active language button styles are defined above */

/* Search input styles are defined above */

.search-input::placeholder {
    color: #7f8c8d; /* Sufficient contrast for placeholder text */
}

/* PDF modal contrast */
.modal-content {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.modal-header {
    background: #ecf0f1;
    color: #2c3e50;
    border-bottom: 1px solid #bdc3c7;
}

/* PDF controls contrast */
.control-btn {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.control-btn:hover, .control-btn:focus {
    background: #2980b9;
    color: #ffffff;
    border-color: #2980b9;
}

.control-btn:disabled {
    background: #ecf0f1;
    color: #95a5a6; /* Sufficient contrast for disabled state */
    border-color: #bdc3c7;
}

/* Error message contrast */
.error-message {
    background: #e74c3c;
    color: #ffffff; /* High contrast */
    border: 1px solid #c0392b;
}

.error-message.error-success {
    background: #27ae60;
    color: #ffffff;
    border: 1px solid #229954;
}

.error-message.error-warning {
    background: #f39c12;
    color: #ffffff;
    border: 1px solid #e67e22;
}

/* Breadcrumb contrast */
.breadcrumb a {
    color: #2980b9;
}

.breadcrumb a:hover {
    color: #1f4e79;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast styles removed - causing visual issues */

/* Large text support */
@media (min-resolution: 120dpi) {
    body {
        font-size: 18px; /* Larger base font size for high DPI displays */
    }
}

/* Focus management for screen readers */
.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: inherit !important;
    background: #000000;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Keyboard navigation indicators */
.keyboard-user *:focus {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
}

/* Touch target size compliance (minimum 44x44px) */
.btn, .lang-btn, .control-btn, .document-card {
    min-height: 44px;
    min-width: 44px;
}

/* Cross-browser compatibility fixes */

/* Essential fixes for visibility */
.language-toggle {
    display: flex !important;
    gap: 0.5rem !important;
    visibility: visible !important;
}

/* Language button display styles are defined above */

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    visibility: visible !important;
}

/* Documents grid styles are defined above */

.document-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.loading-placeholder {
    padding: 2rem;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Simplified browser compatibility */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .documents-grid {
        -webkit-flex-wrap: wrap;
    }
    
    .document-card {
        -webkit-flex: 1 1 300px;
    }
    
    /* Safari date input styling */
    input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Safari backdrop-filter fallback */
    .modal-content {
        background: rgba(255, 255, 255, 0.95);
    }
    
    @supports (backdrop-filter: blur(10px)) {
        .modal-content {
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.8);
        }
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .documents-grid {
        -moz-flex-wrap: wrap;
    }
    
    /* Firefox input styling */
    input[type="search"] {
        -moz-appearance: textfield;
    }
    
    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button {
        display: none;
    }
    
    /* Firefox scrollbar styling */
    * {
        scrollbar-width: thin;
        scrollbar-color: #bdc3c7 #ecf0f1;
    }
}

/* Chrome and WebKit browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Chrome scrollbar styling */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #bdc3c7;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #95a5a6;
    }
    
    /* Chrome input autofill styling */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 30px white inset !important;
        -webkit-text-fill-color: #2c3e50 !important;
    }
}

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    .documents-grid {
        -ms-grid-columns: 1fr 1fr;
        display: -ms-grid;
    }
    
    @supports (display: grid) {
        .documents-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    }
}

/* Mobile browser fixes */
@media (max-width: 768px) {
    /* iOS Safari viewport fix */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Prevent zoom on input focus (iOS) */
    input, select, textarea {
        font-size: 16px;
    }
    
    /* Touch scrolling */
    .pdf-viewer, .modal-content {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Touch target improvements */
    .btn, .document-card, .control-btn {
        min-height: 48px; /* Larger on mobile */
        min-width: 48px;
    }
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles for better cross-browser printing */
@media print {
    .header, .footer, .language-toggle, .skip-links {
        display: none !important;
    }
    
    .main {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .document-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Reduced motion support (cross-browser) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    .header, .footer {
        background: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
    }
    
    .btn, .document-card {
        background: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
    }
    
    input, select, textarea {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
    
    .search-input {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
    
    a {
        color: #ffffff !important;
        text-decoration: underline !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --border-color: #333333;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .document-card {
        background-color: #2a2a2a;
        border-color: var(--border-color);
    }
    
    .modal-content {
        background-color: #2a2a2a;
        color: var(--text-color);
    }
}

/* Feature detection fallbacks */
.no-js .documents-grid {
    display: block !important;
}

.no-js .document-category {
    display: inline-block !important;
    width: 48% !important;
    vertical-align: top !important;
    margin-right: 2% !important;
}

.no-flexbox .documents-grid {
    display: block !important;
}

.no-flexbox .document-category {
    display: inline-block !important;
    width: 48% !important;
    vertical-align: top !important;
    margin-right: 2% !important;
}

.no-cssgrid .documents-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}

.no-cssgrid .document-category {
    flex: 1 1 300px !important;
}

/* Ensure interactive elements are properly spaced */
.btn + .btn, .control-btn + .control-btn {
    margin-left: 8px;
}

/* PDF viewer accessibility */
.pdf-viewer {
    background: #ffffff;
    color: #2c3e50;
}

.pdf-canvas:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Loading state contrast */
.loading, .pdf-loading {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
}

.spinner, .loader-spinner {
    border-top-color: #2980b9;
}
    
    .control-btn {
        transition: none;
    }
}/* Tool
tip styles for better UX */
.control-btn[title]:hover::after,
.page-input[title]:hover::after,
.zoom-select[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1001;
    margin-bottom: 5px;
    pointer-events: none;
}

.control-btn[title]:hover::before,
.page-input[title]:hover::before,
.zoom-select[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #2c3e50;
    z-index: 1001;
    margin-bottom: 1px;
    pointer-events: none;
}

.control-btn,
.page-input,
.zoom-select {
    position: relative;
}

/* Fullscreen styles */
.modal:fullscreen {
    background-color: #000;
}

.modal:fullscreen .modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
}

.modal:fullscreen .modal-header {
    background-color: rgba(44, 62, 80, 0.9);
}

.modal:fullscreen .modal-footer {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Print styles */
@media print {
    .modal-header,
    .modal-footer {
        display: none !important;
    }
    
    .modal-body {
        padding: 0 !important;
    }
    
    #pdf-canvas {
        max-width: 100% !important;
        max-height: 100% !important;
        box-shadow: none !important;
    }
}

/* Focus indicators for accessibility */
.control-group:focus-within {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

/* Loading animation improvements */
.pdf-loading {
    position: relative;
}

.pdf-loading::after {
    content: 'Loading PDF...';
    margin-left: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Smooth transitions */
.control-btn,
.page-input,
.zoom-select {
    transition: all 0.2s ease;
}

.control-group {
    transition: box-shadow 0.2s ease;
}

#pdf-canvas {
    transition: transform 0.3s ease;
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #pdf-canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}/
* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Larger touch targets */
    .control-btn {
        min-width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* Better spacing for touch */
    .control-group {
        gap: 0.75rem;
        padding: 0.5rem;
    }
    
    /* Prevent text selection during touch interactions */
    .pdf-viewer {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Smooth touch scrolling */
    .modal-body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Canvas touch optimizations */
    #pdf-canvas {
        touch-action: none; /* Prevent default touch behaviors */
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }
    
    /* Swipe indicator (subtle visual feedback) */
    .pdf-viewer::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10px;
        right: 10px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }
    
    .pdf-viewer.swiping::before {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - optimize for one-handed use */
    .modal-footer {
        padding: 0.5rem;
    }
    
    .pdf-controls {
        padding: 0.25rem;
    }
    
    /* Stack controls vertically for better thumb reach */
    .control-group {
        min-height: 40px;
        justify-content: space-evenly;
    }
    
    /* Larger input fields for easier touch input */
    .page-input {
        width: 60px;
        height: 40px;
        font-size: 1rem;
        border-radius: 6px;
    }
    
    .zoom-select {
        height: 40px;
        font-size: 1rem;
        border-radius: 6px;
        min-width: 100px;
    }
    
    /* Better visual feedback for touch */
    .control-btn:active {
        transform: scale(0.95);
        background-color: #2980b9;
    }
    
    /* Hide less essential controls on very small screens */
    .control-group:nth-child(3) #rotate-left,
    .control-group:nth-child(3) #rotate-right {
        display: none;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .pdf-controls {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.25rem 0.5rem;
    }
    
    .control-group {
        flex-shrink: 0;
        margin: 0 0.25rem;
    }
    
    .control-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Touch-specific animations */
@media (hover: none) and (pointer: coarse) {
    /* This targets touch devices */
    .control-btn {
        transition: all 0.1s ease; /* Faster transitions for touch */
    }
    
    .control-btn:active {
        transform: scale(0.95);
        background-color: #2980b9;
    }
    
    /* Remove hover effects on touch devices */
    .control-btn:hover {
        background-color: #3498db;
        transform: none;
    }
    
    /* Better focus indicators for touch navigation */
    .control-btn:focus {
        outline: 3px solid rgba(52, 152, 219, 0.5);
        outline-offset: 2px;
    }
}

/* Pinch zoom visual feedback */
.pdf-viewer.pinching #pdf-canvas {
    transition: none; /* Disable transitions during pinch */
}

.pdf-viewer.pinching::after {
    content: '🔍';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

/* Swipe gesture visual feedback */
.pdf-viewer.swiping-left::after {
    content: '←';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 2rem;
    color: rgba(52, 152, 219, 0.8);
    pointer-events: none;
    z-index: 10;
    animation: swipeLeft 0.3s ease;
}

.pdf-viewer.swiping-right::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 2rem;
    color: rgba(52, 152, 219, 0.8);
    pointer-events: none;
    z-index: 10;
    animation: swipeRight 0.3s ease;
}

@keyframes swipeLeft {
    0% { opacity: 0; transform: translateY(-50%) translateX(20px); }
    50% { opacity: 1; transform: translateY(-50%) translateX(0); }
    100% { opacity: 0; transform: translateY(-50%) translateX(-20px); }
}

@keyframes swipeRight {
    0% { opacity: 0; transform: translateY(-50%) translateX(-20px); }
    50% { opacity: 1; transform: translateY(-50%) translateX(0); }
    100% { opacity: 0; transform: translateY(-50%) translateX(20px); }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .modal-content {
        -webkit-transform: translate3d(0, 0, 0); /* Hardware acceleration */
    }
    
    #pdf-canvas {
        -webkit-transform: translate3d(0, 0, 0); /* Hardware acceleration */
    }
    
    /* Fix for iOS viewport issues */
    .modal:fullscreen {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .control-btn {
        -webkit-appearance: none;
        border-radius: 6px;
    }
    
    .page-input,
    .zoom-select {
        -webkit-appearance: none;
        border-radius: 6px;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: inherit !important;
}
/
* ===== CULTURAL BACKGROUND IMAGE INTEGRATION ===== */

/* WebP Support Detection Classes */
.webp .hero {
    background-image: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
        url('assets/images/bulgarian-dancers-processed-768.webp');
}

/* Responsive Cultural Background Images */
@media (min-width: 1200px) {
    .hero {
        background-image: 
            linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
            url('assets/images/bulgarian-dancers-processed-1200.webp');
    }
    
    /* Fallback for browsers without WebP support */
    .no-webp .hero {
        background-image: 
            linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
            url('assets/images/bulgarian-dancers-processed-1200.jpg');
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .webp .hero {
        background-image: 
            linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
            url('assets/images/bulgarian-dancers-processed-768.webp');
    }
    
    .no-webp .hero {
        background-image: 
            linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
            url('assets/images/bulgarian-dancers-processed-768.jpg');
    }
}

@media (max-width: 767px) {
    .hero {
        background-attachment: scroll; /* Better mobile performance */
        background-image: 
            linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
            url('assets/images/bulgarian-dancers-processed-480.webp');
    }
    
    .no-webp .hero {
        background-image: 
            linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.75) 100%),
            url('assets/images/bulgarian-dancers-processed-480.jpg');
    }
}

/* Cultural Background Image Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .hero {
        background-image: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%),
            url('assets/images/bulgarian-dancers-processed-768.jpg');
    }
}