* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-dark: #2C3E50;
    --text-light: #5D6D7E;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ШАПКА */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 3.5rem;
    animation: rotate 20s linear infinite;
    display: inline-block;
    line-height: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* КНОПКИ ДЛЯ СЛАБОВИДЯЩИХ */
.a11y-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.a11y-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s ease;
}

.a11y-btn:hover {
    background: #333;
    transform: scale(1.05);
}

/* КНОПКА АККАУНТА */
.auth-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #3dbdb5;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.nav {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-color);
    color: var(--white);
}

/* ГЛАВНЫЙ ЭКРАН */
.hero {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.hero::before { width: 300px; height: 300px; top: -100px; left: -100px; }
.hero::after { width: 400px; height: 400px; bottom: -150px; right: -100px; }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-text {
    font-size: 1.1rem;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* СЕКЦИИ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ПРЕИМУЩЕСТВА */
.features { background: var(--white); }

.features-grid, .news-grid, .links-grid {
    display: grid;
    gap: 30px;
}

.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.links-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-card, .news-card, .link-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card { text-align: center; border: 1px solid #f0f0f0; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.feature-icon { font-size: 3.5rem; margin-bottom: 15px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* НОВОСТИ */
.news { background: var(--bg-light); }
.news-card { border: 1px solid #eee; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--secondary-color); }

.news-date {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}
.news-date .day { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.news-date .month { color: var(--text-light); font-size: 0.9rem; text-transform: capitalize; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; flex-grow: 1; }
.news-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.read-more { color: var(--secondary-color); font-weight: 700; font-size: 0.95rem; }
.read-more:hover { color: var(--primary-color); }

/* БЫСТРЫЕ ССЫЛКИ */
.quick-links { background: var(--white); }
.link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border: 1px solid #eee;
}
.link-card:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateX(5px);
}
.link-icon { font-size: 1.8rem; }

/* КОНТАКТЫ */
.contacts { background: var(--bg-light); }

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-block {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.contact-block h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-color); }
.contact-block p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 5px; }

.map {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e0e0e0;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ФУТЕР */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info h3 { color: var(--accent-color); margin-bottom: 5px; font-size: 1.3rem; }
.footer-info p { opacity: 0.8; font-size: 0.9rem; margin-bottom: 3px; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { opacity: 0.8; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; color: var(--accent-color); }

/* РАЗМЕР ШРИФТА */
html {
    font-size: 16px;
    transition: font-size 0.3s ease;
}

html.font-size-small { font-size: 14px; }
html.font-size-normal { font-size: 16px; }
html.font-size-medium { font-size: 18px; }
html.font-size-large { font-size: 22px; }
html.font-size-xlarge { font-size: 26px; }

/* РЕЖИМ ДЛЯ СЛАБОВИДЯЩИХ */
body.accessibility-mode {
    background: #fff !important;
    color: #000 !important;
}

body.accessibility-mode .header,
body.accessibility-mode .feature-card,
body.accessibility-mode .news-card,
body.accessibility-mode .link-card,
body.accessibility-mode .contact-block,
body.accessibility-mode .footer {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
}

body.accessibility-mode h1, 
body.accessibility-mode h2, 
body.accessibility-mode h3, 
body.accessibility-mode p, 
body.accessibility-mode a,
body.accessibility-mode .logo-text p,
body.accessibility-mode .contact-item,
body.accessibility-mode .news-date .month,
body.accessibility-mode .footer-info p,
body.accessibility-mode .footer-links a {
    color: #000 !important;
}

body.accessibility-mode .logo-text h1 {
    color: #000 !important;
}

body.accessibility-mode .hero {
    background: #fff !important;
    color: #000 !important;
}

body.accessibility-mode .hero-title span {
    color: #000 !important;
    text-decoration: underline;
}

body.accessibility-mode .btn {
    background: #fff !important;
    color: #000 !important;
    border: 3px solid #000 !important;
}

body.accessibility-mode .feature-icon,
body.accessibility-mode .link-icon,
body.accessibility-mode .logo-icon {
    filter: grayscale(100%);
}

body.accessibility-mode .a11y-btn {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover { color: var(--primary-color); }

.modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.auth-action-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.login-btn:hover { border-color: var(--secondary-color); background: #f0fffe; }
.register-btn:hover { border-color: var(--primary-color); background: #fff0f0; }

.btn-icon { font-size: 1.5rem; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ПРОФИЛЬ */
.account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 25px;
    color: var(--white);
}

.account-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.account-header h2 {
    text-align: left;
    margin-bottom: 5px;
    color: var(--white);
    font-size: 1.3rem;
}

.account-role {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    color: var(--text-dark);
    text-align: left;
}

.account-menu-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.account-menu-btn.logout:hover { border-color: #ffa500; background: #fff8f0; }
.account-menu-btn.delete:hover { border-color: var(--primary-color); background: #fff0f0; color: var(--primary-color); }

.menu-icon { font-size: 1.3rem; }

/* Кнопка сообщений */
.account-menu-btn.messages {
    border-color: #4ECDC4;
    background: #f0fffe;
}

.account-menu-btn.messages:hover {
    border-color: #4ECDC4;
    background: #e0fffd;
    transform: translateX(5px);
}

/* Панель управления */
.admin-panel {
    max-width: 700px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.admin-tab {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.admin-tab.active {
    background: var(--secondary-color);
    color: white;
}

.admin-tab:hover:not(.active) {
    background: #e0e0e0;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.admin-item h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.admin-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-item-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #4ECDC4;
    color: white;
}

.btn-delete {
    background: #FF6B6B;
    color: white;
}

.btn-approve {
    background: #51cf66;
    color: white;
}

.btn-reject {
    background: #ffa94d;
    color: white;
}

.btn-promote {
    background: #339af0;
    color: white;
}

.btn-diminish {
    background: #845ef7;
    color: white;
}

/* Шаблоны объявлений */
.template-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
    border: 1px solid #b3d9ff;
}

.template-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.template-selector select {
    width: 100%;
    padding: 10px;
    border: 2px solid #b3d9ff;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
}

#announcement-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    resize: vertical;
}

/* Сообщения */
.messages-panel {
    max-width: 800px;
}

.messages-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    height: 500px;
}

.messages-sidebar {
    border-right: 2px solid #eee;
    padding-right: 15px;
    overflow-y: auto;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conversation-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.conversation-item:hover {
    background: #e0f7fa;
    border-color: var(--secondary-color);
}

.conversation-item.active {
    background: var(--secondary-color);
    color: white;
}

.conversation-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.conversation-preview {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-main {
    display: flex;
    flex-direction: column;
}

.no-conversation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    text-align: center;
}

.conversation-header {
    padding: 15px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-badge {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message-bubble.sent {
    align-self: flex-end;
    background: var(--secondary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background: #f0f0f0;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

.send-message-form {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 2px solid #eee;
}

.send-message-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
}

.send-btn {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: #3dbdb5;
    transform: scale(1.1);
}
/* Модальное окно возможностей */
.features-panel {
    max-width: 600px;
}

.features-content {
    padding: 20px 0;
}

.feature-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.feature-section h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.feature-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
}

.feature-note::before {
    content: '💡 ';
}
/* НОВОСТИ - ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА */
.news { background: var(--bg-light); }

.news-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 30px 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}

/* Красивый скроллбар */
.news-grid::-webkit-scrollbar {
    height: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.news-grid::-webkit-scrollbar-thumb:hover {
    background: #3dbdb5;
}

.news-card {
    flex: 0 0 320px; /* Фиксированная ширина карточки, не сжимается */
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}
.news-date .day { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.news-date .month { color: var(--text-light); font-size: 0.9rem; text-transform: capitalize; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; flex-grow: 1; }
.news-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.read-more { color: var(--secondary-color); font-weight: 700; font-size: 0.95rem; }
.read-more:hover { color: var(--primary-color); }

/* Адаптивность сообщений */
@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .messages-sidebar {
        border-right: none;
        border-bottom: 2px solid #eee;
        padding-right: 0;
        padding-bottom: 15px;
        max-height: 200px;
    }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .contacts-wrapper { grid-template-columns: 1fr; }
    .map { height: 350px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .header-contacts { display: none; }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-top: 1px solid #eee;
    }
    
    .nav.active { display: flex; }
    .nav-link { width: 100%; text-align: center; padding: 12px; }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero { padding: 70px 20px; }
    .section-title { font-size: 1.8rem; }
    
    .footer-content { flex-direction: column; text-align: center; }
    
    .modal-content { margin: 10% auto; padding: 25px; }
}

@media (max-width: 480px) {
    .logo-text h1 { font-size: 1.2rem; }
    .logo-icon { font-size: 2.5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .map { height: 250px; }
}
@media (max-width: 768px) {
    .news-card {
        flex: 0 0 280px; /* Чуть меньше на телефонах */
    }
}

@media (max-width: 480px) {
    .news-card {
        flex: 0 0 260px; /* Ещё меньше на маленьких экранах */
    }
}
/* Модальное окно просмотра объявления */
.announcement-view {
    max-width: 700px;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.announcement-category {
    background: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.announcement-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.announcement-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.announcement-date .month {
    color: var(--text-light);
    font-size: 0.9rem;
}

.announcement-view h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.announcement-image-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f8f9fa;
}

.announcement-image-container img {
    width: 100%;
    height: auto; /* Убираем ограничение по высоте */
    max-height: none; /* Убираем максимальную высоту */
    object-fit: contain; /* Показываем картинку полностью */
    display: block;
}

.image-caption {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

.announcement-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-wrap; /* Сохраняет переносы строк */
    margin-bottom: 20px;
}

.announcement-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: var(--text-light);
}

/* Кнопка "Подробнее" в карточке */
.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

.read-more-btn:hover {
    background: #3dbdb5;
    transform: translateX(5px);
}

/* Миниатюра в карточке объявления */
.news-card-image {
    width: 100%;
    height: auto; /* Убираем фиксированную высоту */
    max-height: 250px; /* Ограничение только для карточки, чтобы не была огромной */
    object-fit: contain; /* Показываем полностью */
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .announcement-view h2 {
        font-size: 1.4rem;
    }
    
    .announcement-content {
        font-size: 1rem;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
#image-preview {
    position: relative;
    display: inline-block;
}
#preview-img {
    border: 2px solid #e0e0e0;
}
/* ========================================== */
/* КРАСИВЫЕ СООБЩЕНИЯ                         */
/* ========================================== */
.messages-panel {
    max-width: 900px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.messages-layout {
    display: flex;
    height: 100%;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.messages-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.messages-sidebar .submit-btn {
    margin-bottom: 15px;
    font-size: 0.9rem;
    padding: 10px;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 12px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.conversation-item:hover {
    background: #e0f7fa;
    border-color: var(--secondary-color);
    transform: translateX(3px);
}

.conversation-item.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.conversation-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.conversation-preview {
    font-size: 0.8rem;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.no-conversation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    text-align: center;
    font-size: 1.1rem;
}

.conversation-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.role-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f5f5f5;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.send-message-form {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.send-message-form input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.send-message-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.send-btn {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: #3dbdb5;
    transform: scale(1.1);
}

/* Адаптивность сообщений */
@media (max-width: 768px) {
    .messages-layout {
        flex-direction: column;
    }
    
    .messages-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        max-height: 200px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}
/* ========================================== */
/* УКРАШЕННЫЙ ФОН СЕКЦИИ НОВОСТЕЙ             */
/* ========================================== */
.news {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.news::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.news::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.news .container {
    position: relative;
    z-index: 1;
}

/* Декоративные элементы на фоне */
.news-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

.news-decoration:nth-child(1) { top: 10%; left: 5%; font-size: 4rem; }
.news-decoration:nth-child(2) { top: 60%; right: 8%; font-size: 3.5rem; }
.news-decoration:nth-child(3) { bottom: 15%; left: 15%; font-size: 2.5rem; }
.news-decoration:nth-child(4) { top: 20%; right: 20%; font-size: 3rem; }

/* ========================================== */
/* СООБЩЕНИЯ С КАРТИНКАМИ                     */
/* ========================================== */
.message-bubble img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.message-bubble img:hover {
    transform: scale(1.02);
}

.message-image-container {
    position: relative;
    display: inline-block;
    margin-top: 8px;
    width: 100%;
}

.message-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Превью изображения в форме */
#message-image-preview {
    position: relative;
}

#message-preview-img {
    display: block;
}

/* Кнопка "Написать" */
#new-message-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

#new-message-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
/* Отступ и оформление для надписи "Нет сообщений" */
.conversations-list > p {
    padding-left: 65px;
    padding-top: 10px;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}
/* ========================================== */
/* СЕКЦИЯ МЕНЮ ПИТАНИЯ                        */
/* ========================================== */
.menu-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 50%, #ffd4d4 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы на фоне */
.menu-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
    animation: float 6s ease-in-out infinite;
}

.menu-decoration:nth-child(1) { top: 5%; left: 5%; font-size: 4rem; animation-delay: 0s; }
.menu-decoration:nth-child(2) { top: 15%; right: 10%; font-size: 3.5rem; animation-delay: 1s; }
.menu-decoration:nth-child(3) { top: 30%; left: 15%; font-size: 3rem; animation-delay: 2s; }
.menu-decoration:nth-child(4) { top: 45%; right: 5%; font-size: 4.5rem; animation-delay: 3s; }
.menu-decoration:nth-child(5) { bottom: 30%; left: 8%; font-size: 3.5rem; animation-delay: 4s; }
.menu-decoration:nth-child(6) { bottom: 20%; right: 15%; font-size: 3rem; animation-delay: 5s; }
.menu-decoration:nth-child(7) { bottom: 10%; left: 20%; font-size: 4rem; animation-delay: 1.5s; }
.menu-decoration:nth-child(8) { top: 60%; left: 50%; font-size: 3.5rem; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.menu-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.menu-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.menu-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.menu-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.menu-day {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-day.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.meal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.meal-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.meal-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.meal-info {
    flex: 1;
}

.meal-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.meal-info p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .menu-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .meal-card {
        padding: 15px;
    }
    
    .meal-icon {
        font-size: 2rem;
    }
    
    .menu-decoration {
        font-size: 2rem !important;
        opacity: 0.08;
    }
}
/* Кликабельные карточки преимуществ */
.feature-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.feature-card:active {
    transform: translateY(-5px);
}
/* ========================================== */
/* УНИВЕРСАЛЬНЫЕ СЕКЦИИ (Педагоги, Занятия, Безопасность) */
/* ========================================== */
.themed-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.teachers-section { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.activities-section { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.safety-section { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }

.section-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    animation: float 6s ease-in-out infinite;
}
.section-decoration:nth-child(1) { top: 5%; left: 5%; font-size: 4rem; animation-delay: 0s; }
.section-decoration:nth-child(2) { top: 15%; right: 10%; font-size: 3.5rem; animation-delay: 1s; }
.section-decoration:nth-child(3) { top: 30%; left: 15%; font-size: 3rem; animation-delay: 2s; }
.section-decoration:nth-child(4) { top: 45%; right: 5%; font-size: 4.5rem; animation-delay: 3s; }
.section-decoration:nth-child(5) { bottom: 30%; left: 8%; font-size: 3.5rem; animation-delay: 4s; }
.section-decoration:nth-child(6) { bottom: 20%; right: 15%; font-size: 3rem; animation-delay: 5s; }
.section-decoration:nth-child(7) { bottom: 10%; left: 20%; font-size: 4rem; animation-delay: 1.5s; }
.section-decoration:nth-child(8) { top: 60%; left: 50%; font-size: 3.5rem; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.section-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-tab {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.section-tab:hover { transform: translateY(-2px); }
.section-tab.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.teachers-section .section-tab.active { background: #0ea5e9; border-color: #0ea5e9; }
.activities-section .section-tab.active { background: #f59e0b; border-color: #f59e0b; }
.safety-section .section-tab.active { background: #22c55e; border-color: #22c55e; }

.section-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.section-day { display: none; animation: fadeIn 0.4s ease; }
.section-day.active { display: block; }

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.info-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }

.info-icon { font-size: 2.5rem; flex-shrink: 0; }
.info-text { flex: 1; }
.info-text h4 { margin-bottom: 5px; color: var(--text-dark); font-size: 1.05rem; }
.info-text p { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; margin: 0; }

@media (max-width: 768px) {
    .section-tab { padding: 10px 16px; font-size: 0.85rem; }
    .info-card { padding: 15px; }
    .info-icon { font-size: 2rem; }
    .section-decoration { font-size: 2rem !important; opacity: 0.06; }
}
/* ========================================== */
/* КНОПКИ РЕДАКТИРОВАНИЯ В НОВОСТЯХ           */
/* ========================================== */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.news-header .section-title {
    margin-bottom: 0;
}

.news-header .section-title::after {
    display: none;
}

.add-news-btn {
    width: 50px;
    height: 50px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.add-news-btn:hover {
    background: #ff5252;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.news-card {
    position: relative;
}

.news-card-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(78, 205, 196, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-card-edit-btn:hover {
    background: #3dbdb5;
    transform: scale(1.15);
}

.news-card-delete-btn {
    position: absolute;
    top: 10px;
    right: 50px;
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-card-delete-btn:hover {
    background: #ff5252;
    transform: scale(1.15);
}
/* ========================================== */
/* КНОПКИ РЕДАКТИРОВАНИЯ В НОВОСТЯХ           */
/* ========================================== */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.news-header .section-title {
    margin-bottom: 0;
}

.news-header .section-title::after {
    display: none;
}

.add-news-btn {
    width: 50px;
    height: 50px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.add-news-btn:hover {
    background: #ff5252;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.news-card {
    position: relative;
}

.news-card-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(78, 205, 196, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-card-edit-btn:hover {
    background: #3dbdb5;
    transform: scale(1.15);
}

.news-card-delete-btn {
    position: absolute;
    top: 10px;
    right: 50px;
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-card-delete-btn:hover {
    background: #ff5252;
    transform: scale(1.15);
}