* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}

/* Header */
.site-header {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #4cb700;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    color: #4cb700;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4cb700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Maintenance Mode */
.maintenance-mode {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-bottom: 3px solid #ffc107;
}

.maintenance-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.maintenance-content h1 {
    font-size: 36px;
    color: #856404;
    margin-bottom: 20px;
    font-weight: 700;
}

.maintenance-content p {
    font-size: 16px;
    color: #856404;
    line-height: 1.8;
    margin: 0;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f9fb 0%, #fff 100%);
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 20px 0;
    color: #4cb700;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 32px;
    margin: 0 0 40px 0;
    color: #4cb700;
    text-align: center;
}

section h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #333;
}

/* Cards */
.news-grid,
.gallery-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card,
.gallery-item,
.service-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.news-card:hover,
.gallery-item:hover,
.service-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card img,
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.news-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    flex: 1;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.service-card {
    padding: 30px 25px;
    text-align: center;
}

.service-card h3 {
    color: #4cb700;
}

.service-card p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4cb700;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #4cb700;
}

.btn-secondary {
    background: #e5e5e5;
    color: #333;
}

.btn-secondary:hover {
    background: #d5d5d5;
}

/* About Section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #666;
    line-height: 1.8;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.contact-item h4 {
    color: #4cb700;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* Gallery Lightbox */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 93, 120, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    color: #ccc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1d5d78;
    color: #fff;
    border-color: #1d5d78;
}

.pagination .active {
    background: #1d5d78;
    color: #fff;
    border-color: #1d5d78;
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 50px 0 30px 0;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #4cb700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    color: #999;
    font-size: 13px;
}

/* Article Page */
.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 36px;
    margin: 0 0 15px 0;
    color: #4cb700;
}

.article-meta {
    color: #999;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
    display: block;
}

.article-content {
    max-width: 800px;
    color: #555;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #1d5d78;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4cb700;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Responsive */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-bottom: 1px solid #e5e5e5;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-inner {
        min-height: 70px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .news-grid,
    .gallery-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-header h1 {
        font-size: 24px;
    }

}

@media (max-width: 480px) {

    .logo {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    section h2 {
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

}