/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7DD1C9;
    --secondary-color: #00b4d8;
    --accent-color: #e63946;
    --light-blue: #caf0f8;
    --dark-blue: #023e8a;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #fff;
    --gray: #eee;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.primary-btn:hover {
    background-color: #7DD1C9;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #7DD1C9;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: #7DD1C9;
    color: var(--white);
    overflow: visible; /* Предотвращаем обрезку иконки */
}

.icon-box.blue {
    background-color: #7DD1C9;
}

.icon-box i {
    font-size: 40px; /* Увеличиваем размер иконки */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-expanded .container {
    max-width: 1400px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7DD1C9;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 40px;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #7DD1C9;
}

/* Language Switcher */
.language-switcher {
    margin-left: auto;
}

.language-switcher select {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--white);
    font-size: 14px;
    cursor: pointer;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background-color: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #E4B047;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #7DD1C9;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* News Section */
.news-scroll-container {
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Скрыть скроллбар в Firefox */
}

.news-scroll-container::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар в WebKit-браузерах */
}

.news-scroll-container::-webkit-scrollbar-track {
    background: #e0e0e0; /* Цвет фона скроллбара */
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #7DD1C9; /* Цвет ползунка */
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #5ab8b0; /* Цвет ползунка при наведении */
}

.news-scroll {
    display: flex; /* Располагаем карточки в одну строку */
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
    gap: 20px; /* Расстояние между карточками */
    padding-bottom: 10px; /* Отступ снизу для скроллбара */
}

.news-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
    flex: 0 0 250px; /* Фиксированная ширина карточки */
    min-width: 250px; /* Минимальная ширина карточки */
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

.news-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-title {
    font-size: 1.2rem;
    margin: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #007bff;
}

.news-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 10px 10px;
    line-height: 1.4;
}

.newsa.news-meta {
    display: flex;
    justify-content: flex-start;
    font-size: 0.8rem;
    color: #999;
    margin: 0 10px 10px;
}

.news-date i {
    margin-right: 5px;
    color: #7DD1C9; /* Цвет иконки календаря */
}

.news-footer {
    text-align: center;
    margin-top: 20px;
}

.news-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 20px 0;
}

.news-content {
    margin: 20px 0;
    line-height: 1.6;
}

/* News Categories (оставляем, если используете) */
.news-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.news-category .icon-box {
    margin: 0 auto 1.5rem;
}

.news-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.news-category:hover {
    transform: translateY(-5px);
}

.news-category h3 {
    margin: 15px 0;
    color: #7DD1C9;
}

/* About Section */
.about-content {
    display: flex;
    align-items: flex-start; /* Выравниваем элементы по верхнему краю */
    gap: 50px;
}

.about-image {
    flex: 1;
    text-align: center; /* Центрируем логотип */
}

.about-image img {
    max-width: 400px; /* Ограничиваем размер логотипа */
    margin-bottom: 20px; /* Отступ снизу для текста */
}

.about-desc {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
}

.about-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Два столбца */
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-content {
    margin-left: 20px;
    flex: 1;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Mission Section */
.mission-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.mission-item p {
    text-align: center;
}

.mission-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px; /* Даем достаточно места */
}

.mission-item h3 {
    margin: 15px 0 10px;
    color: var(--primary-color);
}

/* Education Section */
.education-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.education-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.education-item h3 {
    margin-bottom: 10px;
    color: #7DD1C9;
}

/* Partners Section */
.partner-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.partner-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-item h3 {
    margin: 15px 0;
    color: var(--primary-color);
}

.partner-item .icon-box {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    margin: 15px 0;
    color: var(--primary-color);
}

.social-links {
    text-align: center;
    margin-bottom: 40px;
}

.social-links a {
    margin: 0 10px;
    font-size: 18px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

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

.contact-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    margin-bottom: 10px;
    color: #7DD1C9;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--light-blue);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white);
}

.footer-column ul li a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
}

/* Shift the icon-box to the right in the Contact Section */
#contact .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Keep the overall content centered */
}

#contact .contact-item .icon-box {
    margin-left: auto; /* Push the icon-box to the right */
    margin-right: 0; /* Ensure no right margin to align fully to the right */
}

/* Shift the icon-box to the right with a specific offset */
#contact .contact-item .icon-box {
    margin-left: 4px; /* Adjust this value to control how far right the icon moves */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Navbar */
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 40px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    /* News Section */
    .news-card {
        flex: 0 0 200px;
        min-width: 200px;
    }

    /* General Adjustments */
    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box i {
        font-size: 30px;
    }

    /* Grid Layouts */
    .news-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .mission-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-items {
        grid-template-columns: 1fr;
    }

    .partner-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Buttons */
    .btn {
        padding: 8px 15px;
    }

    /* News Section */
    .news-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    /* Grid Layouts */
    .news-categories {
        grid-template-columns: 1fr;
    }

    .mission-items {
        grid-template-columns: 1fr;
    }

    .partner-items {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}