/* styles.css - Основные стили для всего сайта */

.img_hero {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} 

.motto-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Styles */
.content-article {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    padding: 2rem 0;
}

.main-content {
    padding: 2rem 0;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 1.5rem;
    background-color: #5a5a5b !important;
}

.card-title {
    color: #f5faff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Contact Info Styles */
.contact-info {
    padding: 1rem 0;
}

.contact-item {
    padding: 1px;
    transition: transform 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-decoration-none {
    text-decoration: none;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-primary {
    background-color: #007bff !important;
}
.bg-primary-sidebar-news {
    background-color: #007bff !important;
}

.text-primary {
    color: #007bff !important;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: #f5f5f5 !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

/* =========================================
   Unified Dropdown & Select Styles
   ========================================= */

/* Dropdown Menu - Glassmorphism & Animation */
.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; /* Soft, modern rounding */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: rgba(30, 41, 59, 0.95); /* Dark transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem;
    margin-top: 12px !important; /* Spacing from toggle */
    animation: dropdownFadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden; /* Contains hover effects */
}

/* Animation Keyframes */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown Items */
.dropdown-item {
    border-radius: 10px; /* Soft, modern rounding */
    padding: 1.75rem 1rem;
    font-weight: 500;
    background-color: transparent;
    color: #ffffff;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

/* Hover State for Dropdown Items */
.dropdown-item:hover, .dropdown-item:focus {
    background-color: #ffffff; /* Light background */
    color: #1a1a1a; /* Dark text */
    transform: translateX(4px); /* Subtle shift */
    padding-left: 1.25rem; /* Dynamic padding change */
}

/* Icons inside Dropdown Items */
.dropdown-item i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: #ffffff; /* White icon */
    transition: color 0.25s ease;
    font-size: 0.95em;
}

.dropdown-item:hover i {
    color: #1a1a1a; /* Dark icon on hover */
}

/* Active State */
.dropdown-item.active, .dropdown-item:active {
    background-color: #007bff;
    color: #fff;
}

.dropdown-item.active i, .dropdown-item:active i {
    color: #fff;
}

/* Divider */
.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0.5rem;
}

/* =========================================
   Unified Form Select Styles
   ========================================= */
select.form-select, select.form-control {
    appearance: none; /* Remove default arrow to style commonly if needed, or keep for simplicity */
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem; /* Space for the arrow */
}

select.form-select:hover, select.form-control:hover {
    border-color: #ced4da;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

select.form-select:focus, select.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
    outline: none;
}