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

body {
    font-family: 'Lato', 'Helvetica', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #626262;
    background-color: #ffffff;
}

a {
    color: #0d6526;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0089f7;
}

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

.container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(180deg, #d4eef3 0%, #e6f5f8 100%);
    padding: 0;
    margin-bottom: 40px;
}

.hero-banner .logo-link {
    display: block;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Layout */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Left Content - News Section */
.left-content {
    padding-right: 20px;
}

.page-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 48px;
    font-weight: 300;
    color: #5cb85c;
    margin-bottom: 40px;
    text-align: center;
}

/* News Items */
.news-item {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.news-link {
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
}

.news-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.news-link:hover .news-image {
    transform: scale(1.05);
}

.news-content h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-title {
    color: #333;
}

.news-title:hover {
    color: #5cb85c;
}

.news-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.news-author {
    color: #999;
    font-size: 13px;
}

.read-more {
    background-color: #5cb85c;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #4a9d4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(92, 184, 92, 0.3);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5cb85c;
}

/* Main Menu Widget */
.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 12px;
}

.menu-list a {
    display: block;
    padding: 10px 15px;
    background-color: #5cb85c;
    color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-list a:hover {
    background-color: #4a9d4a;
    padding-left: 20px;
}

/* Search Widget */
.search-form {
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #5cb85c;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #4a9d4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(92, 184, 92, 0.3);
}

.search-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Recent News Widget */
.recent-list {
    list-style: none;
}

.recent-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.recent-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.recent-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.recent-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.recent-item:hover h4 {
    color: #5cb85c;
}

.recent-item span {
    font-size: 12px;
    color: #999;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e8f5e9;
    color: #5cb85c;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #5cb85c;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #2d5f3f;
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-logo {
    width: 202px;
    height: auto;
    margin-bottom: 20px;
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: #5cb85c;
    font-size: 28px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-contact {
    color: #e0e0e0;
    line-height: 1.8;
}

.footer-contact a {
    color: #5cb85c;
}

.footer-contact a:hover {
    color: #ffffff;
}

/* Footer News */
.footer-news {
    list-style: none;
}

.footer-news li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-news li:last-child {
    border-bottom: none;
}

.footer-news a {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #e0e0e0;
}

.footer-news img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.footer-news h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 8px;
}

.footer-news a:hover h4 {
    color: #5cb85c;
}

.footer-news span {
    font-size: 12px;
    color: #999;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 3px;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.photo-gallery a:hover img {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #1f4430;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #999;
    font-size: 13px;
}

.footer-bottom a {
    color: #5cb85c;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    min-width: 600px; /* ширина для прокрутки на мобільних */
}

/* Прокрутка на мобільних пристроях */
@media (max-width: 768px) {
    .payment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Заголовки таблиці */
.payment-table thead {
    background-color: #f5f5f5;
}

.payment-table th, .payment-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Чередування рядків */
.payment-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Заголовки */
.payment-table th {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-title {
        font-size: 36px;
    }

    .news-content h2 {
        font-size: 24px;
    }

    .footer-content {
        gap: 30px;
    }

    .hero-banner {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .news-content h2 {
        font-size: 20px;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }
}