/* ============================================
   ОМБУДСМАН РУСЕ - ПРОФЕСИОНАЛЕН CSS
   Политически сериозен, професионален дизайн
   ============================================ */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветова палитра - професионална, консервативна */
    --primary-color: #1a3a5f;
    --primary-dark: #0d2338;
    --primary-light: #2d5a8a;
    --secondary-color: #4a6fa5;
    --accent-color: #c9a961;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem !important;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: var(--primary-color);
}

h4 {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--primary-color);
}

h5 {
    font-size: 1.125rem !important;
    font-weight: 600;
    color: var(--primary-color);
}

h6 {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    padding-top: calc(2rem + 80px); /* Компенсация за фиксирания header */
}

/* ===== SECTION BORDERS ===== */
/* Border в краищата на всяка секция за desktop и mobile */
section {
    border-top: 2px solid rgba(26, 58, 95, 0.15);
    border-bottom: 2px solid rgba(26, 58, 95, 0.15);
    position: relative;
}

/* Първата секция (carousel) - само долен border */
section:first-of-type {
    border-top: none;
    border-bottom: 2px solid rgba(26, 58, 95, 0.15);
}

/* Последната секция - само горен border */
section:last-of-type {
    border-bottom: none;
    border-top: 2px solid rgba(26, 58, 95, 0.15);
}

/* Aside секции също */
aside {
    border-top: 2px solid rgba(26, 58, 95, 0.15);
    border-bottom: 2px solid rgba(26, 58, 95, 0.15);
}

/* Последният aside - само горен border */
aside:last-of-type {
    border-bottom: none;
    border-top: 2px solid rgba(26, 58, 95, 0.15);
}

/* ===== HEADER ===== */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

header.hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    min-height: 80px;
    gap: 2rem;
    max-width: 100%;
}

/* Ensure proper alignment on all screen sizes */
@media (min-width: 769px) {
    header .container {
        align-items: center;
    }
    
    .main-nav {
        flex: 0 0 auto;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    flex: 0 0 auto;
    min-width: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: block;
}

.logo:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 1.625rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}


/* ===== NAVIGATION ===== */
.main-nav {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav.main-nav {
    position: relative;
}

/* Menu Toggle Button - Hidden on desktop, shown on mobile */
.menu-toggle-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle-btn.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.menu-toggle-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.2);
}

.menu-toggle-btn:active {
    transform: translateY(0);
}

.menu-toggle-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle-btn.active svg {
    transform: rotate(180deg);
}

/* Navigation Menu - Desktop: Horizontal layout */
.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: auto;
    border: none;
    overflow: visible;
}

.nav-menu.hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-menu li {
    display: flex;
    align-items: center;
    width: auto;
}

.nav-menu a {
    display: block;
    width: auto;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    padding: 0.625rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-radius: 4px;
    position: relative;
    background: transparent;
}

.nav-menu a::before {
    display: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: calc(100% - 1.5rem);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Гражданска трибуна - винаги подчертано */
.nav-menu a[href="pages/tribune.html"],
.nav-menu a[href="/pages/tribune.html"],
.nav-menu a[href="../pages/tribune.html"] {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a[href="pages/tribune.html"]::after,
.nav-menu a[href="/pages/tribune.html"]::after,
.nav-menu a[href="../pages/tribune.html"]::after {
    width: calc(100% - 1.5rem);
}

/* ===== CAROUSEL ===== */
.carousel-section {
    width: 100%;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.full-width-carousel {
    width: 100%;
    margin-left: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    min-height: 450px;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    box-sizing: border-box;
}

.carousel-slide {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 400px;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-height: 400px;
    justify-content: center;
    width: 100%;
}

.slide-image {
    width: 80%;
    max-width: 550px;
    height: auto;
    aspect-ratio: 5/3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
}

.slide-image-placeholder {
    width: 80%;
    max-width: 550px;
    height: auto;
    aspect-ratio: 5/3;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
}

.slide-image-placeholder svg {
    width: 130px;
    height: 130px;
    opacity: 0.4;
}

.slide-text {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    text-align: center;
    width: 80%;
    max-width: 700px;
}

.slide-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.slide-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.slide-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    margin-top: 0.75rem;
}

.slide-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--bg-white);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 10;
    font-weight: 700;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 4rem 0;
    background: var(--bg-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services h2 {
    text-align: center;
    margin-bottom: 2.178rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(26, 58, 95, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.05), rgba(26, 58, 95, 0.1));
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
    color: var(--primary-light);
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.1), rgba(26, 58, 95, 0.15));
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 2.904rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.stats h2 {
    text-align: center;
    margin-bottom: 2.178rem;
    color: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145.2px, 1fr));
    gap: 1.452rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.stat-card {
    text-align: center;
    padding: 1.452rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5.808px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.541rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.363rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.81675rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: 2.904rem 0;
    background: var(--bg-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process h2 {
    text-align: center;
    margin-bottom: 2.178rem;
    color: var(--primary-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(181.5px, 1fr));
    gap: 1.452rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.process-step {
    background: var(--bg-white);
    padding: 1.815rem;
    border-radius: 5.808px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-number {
    width: 50.82px;
    height: 50.82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    font-size: 1.452rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.089rem;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-bottom: 0.726rem;
    color: var(--primary-color);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== INTRO SECTION ===== */
.intro {
    padding: 2.904rem 0;
    background: var(--bg-light);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro h2 {
    margin-bottom: 1.089rem;
    color: var(--primary-color);
}

.intro p {
    color: var(--text-secondary);
    max-width: 580.8px;
    margin: 0 auto 1.452rem;
    line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.726rem 1.815rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.81675rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* ===== LATEST PUBLICATIONS ===== */
.latest {
    padding: 2.904rem 0;
    background: var(--bg-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.latest h2 {
    text-align: center;
    margin-bottom: 2.178rem;
    color: var(--primary-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cards .card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 350px;
    height: 100%;
}

.cards .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cards .card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-weight: 600;
}

.cards .card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.8;
    min-height: 5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cards .card small {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
    display: block;
}

.cards .card a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-top: auto;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
}

.cards .card a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== TRUST SECTION ===== */
.trust {
    padding: 2.904rem 0;
    background: var(--bg-light);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust h2 {
    margin-bottom: 1.452rem;
    color: var(--primary-color);
}

.trust-list {
    list-style: none;
    max-width: 435.6px;
    margin: 0 auto 1.452rem;
    text-align: left;
    background: var(--bg-white);
    padding: 1.452rem;
    border-radius: 5.808px;
    box-shadow: var(--shadow-sm);
}

.trust-list li {
    padding: 0.5445rem 0;
    color: var(--text-secondary);
    font-size: 0.81675rem;
    border-bottom: 1px solid var(--border-color);
}

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

.trust-list li strong {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.363rem;
}

.trust-quote {
    font-size: 1.089rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 1.452rem auto 0;
    max-width: 580.8px;
    padding: 1.452rem;
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 2.904rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--bg-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta h2 {
    margin-bottom: 0.726rem;
    color: var(--bg-white);
}

.cta p {
    margin-bottom: 1.452rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta .btn {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.cta .btn:hover {
    background: var(--bg-light);
    border-color: var(--bg-light);
}

/* ===== ARCHIVE SECTION ===== */
.archive {
    padding: 2.904rem 0;
    background: var(--bg-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.archive h2 {
    text-align: center;
    margin-bottom: 1.452rem;
    color: var(--primary-color);
}

.archive-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.726rem;
    max-width: 100%;
    margin: 0 auto;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
    padding: 0 1rem;
}

.archive-list a {
    display: block;
    padding: 0.726rem 1.089rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 1.1616rem;
    width: 100%;
    max-width: 100%;
}

.archive-list a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== TRIBUNE PAGE ===== */
.tribune-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tribune-main-title {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.tribune-intro {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.tribune-controls {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 58, 95, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.2);
}

.filter-btn.active {
    animation: pulse 0.5s ease-in-out;
}

.tribune-search-archive {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    width: 250px;
    transition: var(--transition);
    transform: translateZ(0);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
    transform: scale(1.02);
}

.search-input::placeholder {
    transition: opacity 0.3s;
}

.search-input:focus::placeholder {
    opacity: 0.5;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.archive-link {
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.archive-link:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.tribune-articles {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.tribune-form-section {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.tribune-form-section.show {
    opacity: 1;
    transform: scale(1);
    animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
    justify-items: stretch;
}

/* Осигуряване на перфектна симетрия при различни размери */
@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .articles-grid .card {
        min-height: 400px;
    }
    
    /* Carousel същата ширина като останалите sections */
    .carousel-container {
        width: 100%;
        max-width: 1200px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-grid .card {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .articles-grid .card h3 {
        font-size: 1.25rem;
        min-height: auto;
        max-height: none;
    }
}

.article-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.article-card.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.article-card:hover {
    transform: translate3d(0, -8px, 0) scale3d(1.02, 1.02, 1);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.article-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
    position: relative;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.article-image.loaded {
    opacity: 1;
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-card > *:not(.article-image-wrapper):not(.article-card-content) {
    padding: 0 1.5rem;
}

.article-card > *:first-child:not(.article-image-wrapper):not(.article-card-content) {
    padding-top: 1.5rem;
}

.article-card > *:last-child:not(.article-image-wrapper):not(.article-card-content) {
    padding-bottom: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    transform: translateZ(0);
}

.article-card:hover .article-category {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.article-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.article-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1;
    min-height: 4.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.read-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.read-more-btn::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 58, 95, 0.3);
}

.read-more-btn:hover::after {
    transform: translateX(5px);
}

/* ===== PROFESSIONAL ARTICLE CARDS IN GRID ===== */
.articles-grid .card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpCard 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.articles-grid .card.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.articles-grid .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.articles-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.articles-grid .card:hover::before {
    transform: scaleX(1);
}

.articles-grid .card h3 {
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    color: var(--primary-color);
    line-height: 1.5;
    min-height: 3.5rem;
    max-height: 4.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
    letter-spacing: -0.01em;
}

.articles-grid .card p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    flex-grow: 1;
    min-height: 4.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.articles-grid .card small {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 1.25rem 0;
    display: block;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.articles-grid .card .read-more-btn,
.articles-grid .card a {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    width: fit-content;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.articles-grid .card .read-more-btn:hover,
.articles-grid .card a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* ===== FULL ARTICLE VIEW ===== */
/* Когато articles-grid съдържа article-full-container, показвай само една колона */
.articles-grid:has(.article-full-container) {
    grid-template-columns: 1fr;
    max-width: 100%;
}

.article-full-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.back-link {
    display: inline-block;
    padding: 1.25rem 2rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    background: var(--bg-light);
}

.back-link:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.article-full-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: var(--bg-gray);
    position: relative;
}

.article-full-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-full-content {
    padding: 3rem 4rem;
    max-width: 100%;
    margin: 0 auto;
}

.article-full-header {
    margin-bottom: 2rem;
}

.article-full-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-full-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.article-full-meta .article-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-full-summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.article-full-body {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1.125rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

.article-full-body h1,
.article-full-body h2,
.article-full-body h3,
.article-full-body h4,
.article-full-body h5,
.article-full-body h6 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-full-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.article-full-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.article-full-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
}

.article-full-body ul,
.article-full-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.article-full-body li {
    margin-bottom: 0.75rem;
}

.article-full-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-full-body a:hover {
    color: var(--primary-dark);
}

.article-full-body code {
    background: var(--bg-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-full-body pre {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-full-body pre code {
    background: none;
    padding: 0;
}

.article-full-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-full-body table th,
.article-full-body table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-full-body table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== FORMS ===== */
.tribune-form,
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 58, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group button {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
}

.form-group button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== HISTORY PAGE ===== */
.history-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.history-image {
    margin-bottom: 2rem;
    text-align: center;
}

.history-image img,
.history-image-img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: block;
    margin: 0 auto;
    width: 50%;
    object-fit: contain;
}

.history-image-placeholder {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.history-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.history-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== CONTACTS PAGE ===== */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

/* Contact page animations */
.hero-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-form-section {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.contact-form .form-group {
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.contact-form .form-group:nth-child(1) {
    animation-delay: 0.5s;
}

.contact-form .form-group:nth-child(2) {
    animation-delay: 0.6s;
}

.contact-form .form-group:nth-child(3) {
    animation-delay: 0.7s;
}

.contact-form .form-group:nth-child(4) {
    animation-delay: 0.8s;
}

.contact-form .form-group:nth-child(5) {
    animation-delay: 0.9s;
}

.hero-top-section {
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.hero-main-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

.hero-name-section {
    margin: 0.25rem 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
}

.hero-portrait {
    text-align: center;
    margin: 0.5rem 0;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease-out 0.9s forwards;
}

.hero-portrait img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-portrait:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.hero-defender {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.1s forwards;
}

.hero-contact {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

.hero-contact p {
    margin: 0.25rem 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease-out forwards;
}

.hero-contact .contact-address {
    animation-delay: 1.3s;
}

.hero-contact .contact-email {
    animation-delay: 1.4s;
}

.hero-contact .contact-website {
    animation-delay: 1.5s;
}

.hero-contact .contact-reception {
    animation-delay: 1.6s;
}

.hero-quote {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--accent-color);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.7s forwards;
    transition: transform 0.3s ease;
}

.hero-quote:hover {
    transform: translateY(-2px);
}

.hero-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.contact-form-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Form input animations */
.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.15);
}

.contact-form input:not(:placeholder-shown):valid,
.contact-form textarea:not(:placeholder-shown):valid {
    border-color: #28a745;
}

.contact-form button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.2);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Keyframe animations for contacts page */
@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 fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-top-section {
    margin-bottom: 0.25rem;
}

.hero-name-section {
    margin: 0.25rem 0;
}

.greeting-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin: 0;
}

.defining-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
}

.citizens-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 2px;
    margin: 0;
}

.hero-main-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.hero-main-text p {
    margin: 0;
    font-size: 0.75rem;
}

.hero-main-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-name:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
}

.hero-personal {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-align: center;
    font-style: italic;
    margin: 0;
}

.hero-portrait {
    text-align: center;
    margin: 0.5rem 0;
}

.hero-portrait img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.defender-text {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
    font-style: italic;
    font-weight: 600;
    margin: 0;
}

.hero-contact {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.contact-address,
.contact-email,
.contact-website,
.contact-reception {
    margin: 0.25rem 0;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: default;
}

.contact-email:hover,
.contact-website:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.contact-reception:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

.hero-quote {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--accent-color);
}

.quote-text {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}


/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== PROFESSIONAL ANIMATIONS ===== */
/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@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;
    }
}

/* Fade In Up Animation - GPU accelerated */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ripple Animation for buttons */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1);
    }
}

/* Slide In From Left Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Slide In From Right Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Shake Animation for Filter Buttons */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Base animation classes */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.animate-on-scroll.animated,
.animate-on-scroll.fade-in-up {
    opacity: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Enhanced hover effects with GPU acceleration */
.service-card,
.stat-card,
.process-step,
.cards .card,
.article-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover,
.stat-card:hover,
.process-step:hover,
.cards .card:hover,
.article-card:hover {
    transform: translate3d(0, -5px, 0) scale3d(1.02, 1.02, 1);
}

/* Button animations */
.btn,
.slide-btn,
.read-more-btn {
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover,
.slide-btn:hover,
.read-more-btn:hover {
    transform: translateY(-2px);
}

.btn:active,
.slide-btn:active,
.read-more-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Icon animations */
.service-icon,
.step-number {
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    animation: pulse 2s ease-in-out infinite;
}

/* Carousel animations */
.carousel-slide {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Counter animation */
.stat-number.counted {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .animate-on-scroll.animated,
    .animate-on-scroll.fade-in-up {
        animation-duration: 0.5s;
    }
    
    .service-card:hover,
    .stat-card:hover,
    .process-step:hover {
        transform: translate3d(0, -3px, 0) !important;
    }
    
    /* Disable parallax on mobile */
    .carousel-section {
        transform: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .stat-card:hover,
    .process-step:hover,
    .cards .card:hover {
        transform: none;
    }
    
    .service-card:active,
    .stat-card:active,
    .process-step:active {
        transform: scale(0.98);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .hero-card {
        max-width: 100%;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .carousel-container {
        width: 80%;
        min-height: 400px;
    }
    
    .slide-image,
    .slide-image-placeholder {
        width: 80%;
        max-width: 450px;
        aspect-ratio: 5/3;
    }
    
    .slide-image-placeholder svg {
        width: 110px;
        height: 110px;
    }
    
    .slide-content {
        min-height: 350px;
    }
    
    .slide-text {
        width: 80%;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        min-height: 260px;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .article-full-container {
        width: 85%;
    }
}

/* Medium tablets */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .article-full-container {
        width: 90%;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .article-full-container {
        width: 90%;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .article-full-content {
        padding: 2rem 1.5rem;
    }
    
    .article-full-title {
        font-size: 1.75rem;
    }
    
    .article-full-body {
        font-size: 1rem;
        text-align: left;
    }
    
    
    .history-content {
        padding: 1.5rem;
    }
    
    .history-image {
        margin-bottom: 1.5rem;
    }
    
    .history-image img,
    .history-image-img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .history-image-placeholder {
        width: 100% !important;
    }
    
    .history-text h3 {
        margin-top: 1.5rem;
    }
    
    header {
        position: fixed;
        top: 0;
        z-index: 1000;
    }
    
    main {
        padding-top: calc(2rem + 65px); /* Компенсация за фиксирания header на mobile */
    }
    
    /* ===== MOBILE NAVIGATION ===== */
    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.875rem 1.25rem;
        position: relative;
        min-height: 65px;
    }
    
    .logo-container {
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 0.5rem !important;
        min-width: 0;
        align-items: center;
        max-width: calc(100% - 120px);
    }
    
    .logo {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }
    
    header h1 {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }
    
    /* ===== MOBILE NAVIGATION ===== */
    .main-nav {
        width: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
    }
    
    /* Show menu button on mobile */
    .menu-toggle-btn {
        display: flex;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .menu-toggle-btn span {
        font-size: 0.8125rem;
    }
    
    .menu-toggle-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Mobile: Dropdown menu */
    .nav-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        flex-direction: column;
        gap: 0;
        min-width: 200px;
        max-width: calc(100vw - 2rem);
        padding: 0.5rem 0;
        background: var(--bg-white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border: 1px solid var(--border-color);
        overflow: hidden;
    }
    
    .nav-menu.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
        border-radius: 0;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--primary-color);
        transition: width 0.3s ease;
        display: block;
    }
    
    .nav-menu a:hover::before,
    .nav-menu a.active::before {
        width: 4px;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        padding-left: 1.5rem;
        background: rgba(26, 58, 95, 0.05);
    }
    
    .nav-menu a.active {
        background: rgba(26, 58, 95, 0.08);
    }
    
    /* Гражданска трибуна - винаги подчертано на mobile */
    .nav-menu a[href="pages/tribune.html"],
    .nav-menu a[href="/pages/tribune.html"],
    .nav-menu a[href="../pages/tribune.html"] {
        color: var(--primary-color);
        font-weight: 600;
        background: rgba(26, 58, 95, 0.08);
        padding-left: 1.5rem;
    }
    
    .nav-menu a[href="pages/tribune.html"]::before,
    .nav-menu a[href="/pages/tribune.html"]::before,
    .nav-menu a[href="../pages/tribune.html"]::before {
        width: 4px;
    }
    
    .carousel-container {
        width: 80%;
        min-height: 380px;
        padding: 1.75rem 1.5rem;
    }
    
    .slide-content {
        min-height: 320px;
        gap: 1.25rem;
        width: 100%;
    }
    
    .slide-image,
    .slide-image-placeholder {
        width: 80%;
        max-width: 420px;
        aspect-ratio: 5/3;
    }
    
    .slide-image-placeholder svg {
        width: 100px;
        height: 100px;
    }
    
    .slide-text {
        width: 80%;
        padding: 0.875rem;
    }
    
    
    .slide-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .carousel-dots {
        bottom: 80px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stats-grid,
    .process-steps,
    .cards,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .cards {
        width: 100%;
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .cards .card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    
    .stats {
        padding: 1.5rem 0;
    }
    
    .stats h2 {
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .archive-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        padding: 0;
        gap: 0.5rem;
    }
    
    .archive-list a {
        font-size: 0.95rem;
        padding: 0.625rem 0.875rem;
    }
    
    .tribune-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tribune-filters {
        justify-content: center;
    }
    
    .tribune-search-archive {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    
}

/* Large mobile phones (480px - 600px) */
@media (max-width: 600px) {
    header .container {
        padding: 0.875rem 1.25rem;
        min-height: 68px;
        gap: 0.625rem;
    }
    
    .logo-container {
        gap: 0.625rem;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    header h1 {
        font-size: 1rem !important;
        max-width: 100%;
    }
    
    header .logo {
        width: 38px !important;
        height: 38px !important;
    }
    
    header .logo-container {
        gap: 0.5rem !important;
    }
    
    .main-nav {
        padding: 0.375rem;
    }
    
    .main-nav a {
        padding: 0.625rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .carousel-container {
        width: 80%;
        min-height: 350px;
        padding: 1.5rem 1.25rem;
    }
    
    .slide-image,
    .slide-image-placeholder {
        width: 80%;
        max-width: 360px;
        aspect-ratio: 5/3;
    }
    
    .slide-image-placeholder svg {
        width: 90px;
        height: 90px;
    }
    
    .slide-content {
        min-height: 300px;
        gap: 1rem;
        width: 100%;
    }
    
    .slide-text {
        width: 80%;
    }
    
    
    .archive-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .archive-list a {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .stats {
        padding: 1.25rem 0;
    }
    
    .stats h2 {
        margin-bottom: 1.25rem;
    }
    
    .stats-grid {
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Medium mobile phones (375px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    header .container {
        padding: 0.75rem 1rem;
        min-height: 65px;
        gap: 0.5rem;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo {
        width: 46px;
        height: 46px;
    }
    
    header h1 {
        font-size: 0.9375rem !important;
        max-width: 100%;
    }
    
    header .logo {
        width: 36px !important;
        height: 36px !important;
    }
    
    header .logo-container {
        gap: 0.375rem !important;
    }
    
    .main-nav a {
        padding: 0.625rem 0.25rem;
        font-size: 0.6875rem;
    }
    
    .article-full-container {
        width: 95%;
        border-radius: 8px;
        margin: 0 auto 1.5rem;
    }
    
    .article-full-content {
        padding: 1.5rem 1rem;
    }
    
    .article-full-title {
        font-size: 1.5rem;
    }
    
    .article-full-summary {
        padding: 1rem;
        font-size: 1rem;
    }
    
    
    .back-link {
        padding: 1rem;
    }
    
    .cards {
        width: 100%;
        gap: 1rem;
    }
    
    .cards .card {
        padding: 1.25rem;
    }
    
    .cards .card h3 {
        min-height: 2.5rem;
    }
    
    .cards .card p {
        min-height: 4rem;
    }
    
    .cards .card a {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .history-content {
        padding: 1rem;
    }
    
    .history-image {
        margin-bottom: 1rem;
    }
    
    .history-image img,
    .history-image-img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .history-image-placeholder {
        width: 100% !important;
    }
    
    .history-text h3 {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .history-text p {
        margin-bottom: 1rem;
    }
    
    header .container {
        padding: 0.875rem 1rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    header h1 {
        font-size: 0.9375rem !important;
    }
    
    header .logo {
        width: 36px !important;
        height: 36px !important;
    }
    
    header .logo-container {
        gap: 0.375rem !important;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.625rem 0.25rem;
        font-size: 0.6875rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 90px;
    }
    
    .carousel-container {
        width: 80%;
        min-height: 330px;
        padding: 1.25rem 1rem;
    }
    
    .slide-image,
    .slide-image-placeholder {
        width: 80%;
        max-width: 300px;
        aspect-ratio: 5/3;
    }
    
    .slide-image-placeholder svg {
        width: 75px;
        height: 75px;
    }
    
    .slide-content {
        min-height: 280px;
        gap: 0.875rem;
        width: 100%;
    }
    
    .slide-text {
        width: 80%;
        padding: 0.625rem;
    }
    
    
    .slide-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .archive {
        padding: 1.5rem 0;
    }
    
    .archive h2 {
        margin-bottom: 1rem;
    }
    
    .archive-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0;
    }
    
    .archive-list a {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .stats {
        padding: 1rem 0;
    }
    
    .stats h2 {
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}

/* Small mobile phones (up to 375px) */
@media (max-width: 375px) {
    header .container {
        padding: 0.75rem 0.875rem;
        min-height: 62px;
        gap: 0.5rem;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo {
        width: 44px;
        height: 44px;
    }
    
    header h1 {
        font-size: 0.875rem !important;
        max-width: 100%;
        line-height: 1.1;
    }
    
    header .logo {
        width: 34px !important;
        height: 34px !important;
    }
    
    header .logo-container {
        gap: 0.375rem !important;
    }
    
    .main-nav {
        padding: 0.25rem;
    }
    
    .main-nav ul {
        gap: 0.25rem;
    }
    
    .main-nav a {
        padding: 0.5rem 0.25rem;
        font-size: 0.625rem;
    }
    .carousel-container {
        width: 80%;
        min-height: 320px;
        padding: 1rem 0.75rem;
    }
    
    .slide-image,
    .slide-image-placeholder {
        width: 80%;
        max-width: 280px;
        aspect-ratio: 5/3;
    }
    
    .slide-image-placeholder svg {
        width: 65px;
        height: 65px;
    }
    
    .slide-content {
        min-height: 270px;
        gap: 0.75rem;
        width: 100%;
    }
    
    .slide-text {
        width: 80%;
    }
    
    
    .slide-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .archive {
        padding: 1.25rem 0;
    }
    
    .archive h2 {
        margin-bottom: 0.875rem;
    }
    
    .archive-list {
        gap: 0.5rem;
    }
    
    .archive-list a {
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
    }
    
    .stats {
        padding: 0.875rem 0;
    }
    
    .stats h2 {
        margin-bottom: 0.875rem;
    }
    
    .stats-grid {
        gap: 0.625rem;
    }
    
    .stat-card {
        padding: 0.625rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 8px;
    }
    
    .carousel-btn.next {
        right: 8px;
    }
    
    .carousel-dots {
        bottom: 100px;
    }
    
    .service-card,
    .process-step,
    .cards .card {
        padding: 1.5rem;
    }
    
    .tribune-form,
    .contact-form {
        padding: 1.5rem;
    }
    
    .history-image img,
    .history-image-img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .history-image-placeholder {
        width: 100% !important;
    }
}

