/* Simple CSS Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #ddd;
    --background-color: #fff;
    --spacer: 1rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    width: 100%;
    overflow-x: hidden;
}

/* Override inline reset styles for navigation */
nav, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Main Layout */
#main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacer);
}

/* Navigation Menu */
.main-menu {
    background: var(--primary-color);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.main-menu-left {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    gap: 2rem;
    flex: 1;
    margin: 0;
    padding: 0;
}

.main-menu-right {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.current-language {
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.language-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu .language-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu .language-link:hover {
    background: #f8f9fa;
    color: var(--text-color) !important;
    text-decoration: none;
}

/* Content Styles */
.main-content {
    margin: 0 auto;
}

.content-description {
    margin-top: 1rem;
    line-height: 1.7;
    font-size: 16px;
}

/* Common Content Styles */
.label-block {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.list-block {
    margin-top: 2rem;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-article {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

.date-wrapper {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-wrapper i {
    color: var(--primary-color);
}

.image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.image-wrapper .image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.description-wrapper {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 2rem 0;
}

.description-wrapper p {
    margin-bottom: 1rem;
}

.description-wrapper h2,
.description-wrapper h3,
.description-wrapper h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.description-wrapper ul,
.description-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.description-wrapper li {
    margin-bottom: 0.5rem;
}

/* 404 Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 500px;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

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

.btn-primary:hover {
    background: #0056b3;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

/* Utility Classes */
.clear {
    clear: both;
}

.d-n {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-menu-left {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .main-menu-right {
        justify-content: center;
    }
    
    .dropdown-toggle {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        min-width: 100px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .language-dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .content-article {
        padding: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #main {
        padding: 0.5rem;
    }
    
    .main-menu {
        padding: 0.5rem 0;
    }
    
    .main-menu-left {
        padding: 0 0.5rem;
    }
    
    .dropdown-toggle {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .error-code {
        font-size: 3rem;
    }
}

/* ===============================================
   ARTICLE SLIDER STYLES
   =============================================== */

.article-slider-container {
    position: relative;
    margin: 2rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.article-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    pointer-events: none;
}

.article-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.article-slide.active a {
    pointer-events: auto;
    cursor: pointer;
}

.article-slide-content {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    align-items: center;
}

.article-slide-image {
    flex: 0 0 40%;
    max-width: 500px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-slide-image:hover img {
    transform: scale(1.05);
}

.article-slide-text {
    flex: 1;
    padding: 1rem 0;
}

.article-slide-title {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-slide-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-slide-title a:hover {
    color: var(--primary-color);
}

.article-slide-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-slide-date i {
    font-size: 1rem;
}

.article-slide-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.article-slide-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.article-slide-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Slider Controls */
.article-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.slider-prev:disabled,
.slider-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Slider Dots */
.article-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-slider-wrapper {
        height: 500px;
    }
    
    .article-slide-content {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .article-slide-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 200px;
    }
    
    .article-slide-title {
        font-size: 1.5rem;
    }
    
    .article-slide-description {
        font-size: 1rem;
    }
    
    .article-slider-controls {
        padding: 0 0.5rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .article-slider-wrapper {
        height: 450px;
    }
    
    .article-slide-content {
        padding: 0.5rem;
    }
    
    .article-slide-image {
        height: 150px;
    }
    
    .article-slide-title {
        font-size: 1.3rem;
    }
    
    .article-slide-description {
        font-size: 0.9rem;
    }
}