.logo,
nav ul {
    display: flex
}

.read-more,
nav a {
    font-weight: 700;
    text-decoration: none
}

.btn,
footer,
header {
    text-align: center
}

.read-more:hover {
    text-decoration: underline
}

.btn,
.read-more,
nav a {
    text-decoration: none
}

.content {
    line-height: 1.6
}


/* Global responsive resets */
* , *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* prevent horizontal scroll from any overflowing child */
}

img, picture, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Avoid layout shift from scrollbars on desktop */
@media (min-width: 769px) {
    html {
        overflow-y: scroll;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #212529;
}

/* Respect iOS safe areas and keep content centered */
@supports (padding:max(0px)) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* match viewport width to avoid subpixel overflow */
    height: 100vh;
    background-image: url('/IMG/mountains.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: -1
}

.btn,
.btn-ornament,
.container,
header,
nav,
nav .dropdown,
nav li {
    position: relative
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px; /* keep content off the edges on small screens */
    border-radius: 16px;
    overflow: hidden; /* prevent child backgrounds from bleeding outside */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.contact-info,
.contact-section,
.social-card {
    background-color: rgba(255, 255, 255, .8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1)
}

header {
    background-color: green;
    padding: 20px
}

.site-title {
    color: #fff;
    font-size: 26px;
    margin: 0;
    padding: 10px 0
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center
}

.logo img {
    width: 84px;
    margin-right: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, .2)
}

nav {
    background: linear-gradient(135deg, #006400, #004d00);
    border-bottom: 3px solid #006400;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
    position: sticky;
    top: 0; /* keep nav pinned and aligned to page */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav li {
    margin: 0;
    position: relative;
}

nav a {
    color: #ffffff;
    padding: 15px 20px;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hover/tap animation for all nav buttons */
nav a:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.15s;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    min-width: 200px;
    width: min(90vw, 280px);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 101;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .dropdown:hover .dropdown-content {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

nav .dropdown .dropdown-content {
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

nav .dropdown-content a {
    padding: 15px 20px;
    display: block;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
    transition: all 0.3s ease;
    position: relative;
}

nav .dropdown-content a:last-child {
    border-bottom: none;
}

nav .dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #006400;
    transition: width 0.3s ease;
}

nav .dropdown-content a:hover {
    background: #006400;
    color: #ffffff;
    transform: none; /* avoid horizontal shift that can cause overflow */
    padding-left: 20px;
}

nav .dropdown-content a:hover::before {
    width: 5px;
}

.about-section p,
.contact-info p,
.content p {
    color: #222;
    line-height: 1.6;
    margin-bottom: 15px
}

.about-section h3,
.content h2,
.content h3 {
    color: #006400;
    margin-top: 20px;
    margin-bottom: 15px
}

main {
    padding: 20px;
    background-color: rgba(255, 255, 255, .9);
    min-height: 400px
}

h1,
h2,
h3 {
    color: #006400
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #006400
}

footer {
    background-color: #333;
    color: #fff;
    padding: 15px;
    font-size: .9em
}

/* Поиск в навигации */
.search-nav-item {
    margin-left: auto;
}

.search-toggle-btn {
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s;
}

.search-toggle-btn:hover {
    opacity: 0.8;
}

.nav-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-search-container {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.nav-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1em;
    padding: 8px;
    color: var(--text-primary);
    outline: none;
}

.nav-search-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.nav-search-close:hover {
    color: var(--text-primary);
}

.nav-search-results {
    max-height: 400px;
    overflow-y: auto;
}

.nav-search-result {
    display: block;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.3s;
}

.nav-search-result:hover {
    background-color: var(--bg-secondary);
}

.search-result-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.search-result-snippet {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.4;
}

.search-no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Кнопки социальных сетей */
.social-share {
    margin: 20px 0;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.2em;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-telegram {
    background-color: #2AABEE;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-vk {
    background-color: #4680C2;
}

.share-facebook {
    background-color: #1877F2;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-copy {
    background-color: var(--accent-color);
    border: none;
    cursor: pointer;
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Стили для формы контактов */
.contact-form-section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006400;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.required {
    color: #d32f2f;
}

.error-message {
    display: none;
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
}

.error-message.show {
    display: block;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-status.success {
    background-color: #4caf50;
    color: white;
    display: block;
}

.form-status.error {
    background-color: #f44336;
    color: white;
    display: block;
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9;
    border-left: 4px solid #006400;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.form-note a {
    color: #006400;
    font-weight: bold;
    text-decoration: underline;
}

.form-note a:hover {
    color: #004d00;
}

/* Элементы управления навигацией */
.nav-controls-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

/* Простые улучшенные кнопки */
.enhanced-btn {
    background-color: var(--accent-color);
    border: none;
    color: var(--text-inverse);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 100, 0, 0.2);
}

.enhanced-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.3);
}

/* Простые анимации для иконок */
.animated-icon {
    transition: all 0.3s ease;
}

.enhanced-btn:hover .animated-icon {
    transform: scale(1.1);
}

/* Стили для переключателя языков */
.language-switcher {
    position: relative;
}

.lang-toggle {
    background-color: #17a2b8;
    border: none;
    color: var(--text-inverse);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.lang-toggle:hover {
    background-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.current-lang {
    font-weight: bold;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 5px;
    min-width: 150px;
    box-shadow: 0 4px 10px var(--shadow-color);
    display: none;
    z-index: 1000;
}

.language-switcher:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}

.lang-option:hover {
    background: var(--bg-secondary);
}

.lang-option.active {
    background: var(--bg-secondary);
    font-weight: bold;
}

.lang-flag {
    font-size: 20px;
}



/* Стили для поиска */
.search-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.search-close:hover {
    color: #000;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form input:focus {
    outline: none;
    border-color: #006400;
}

.search-form button {
    padding: 12px 24px;
    background: #006400;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #004d00;
}

.search-results {
    margin-top: 20px;
}

.results-count {
    color: #666;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px;
}

.search-result-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h3 {
    margin: 0 0 10px;
}

.search-result-item h3 a {
    color: #006400;
    text-decoration: none;
}

.search-result-item h3 a:hover {
    text-decoration: underline;
}

.search-result-item p {
    color: #666;
    margin: 0;
}

.search-result-item mark {
    background: #ffeb3b;
    padding: 2px;
}



/* Мобильная адаптация */
@media (max-width: 768px) {
    /* Remove decorative background on mobile to avoid any perceived shift and use full width */
    .page-background { display: none; }
    body { background-color: #ffffff; }

    /* Make container edge-to-edge on small screens */
    .container {
        max-width: 100%;
        margin: 0; /* edge to edge */
        border-radius: 0;
        padding: 12px 16px;
        box-shadow: none;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: stretch; /* make children fill width */
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    /* ensure container is perfectly centered and not shifted */
    .container {
        margin: 10px auto;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nav-controls-container {
        width: 100%;
        margin-left: 0;
    }
    
    .nav-controls {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        padding: 15px;
        gap: 10px;
    }
    
    .enhanced-btn {
        flex: 1;
        min-width: 60px;
        justify-content: center;
    }
    
    .lang-toggle {
        padding: 10px 12px;
    }
    
    .current-lang {
        display: none;
    }
    
    .nav-search-form {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        z-index: 2000;
    }
    
    .nav-search-form.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .lang-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 250px;
        z-index: 2000;
    }
    
    .language-switcher:hover .lang-dropdown {
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* Улучшения для мобильных устройств */
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    nav a {
        padding: 12px 15px;
        text-align: center;
    }
    
    .dropdown-content {
        position: relative;
        display: none;
        margin-top: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.1);
    }
    nav .dropdown-content a { padding-left: 16px; padding-right: 16px; }
    
    .dropdown:hover .dropdown-content {
        display: block;
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* Always show About submenu on mobile */
    nav .about-dropdown .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-controls {
        padding: 10px;
        gap: 8px;
    }
    
    .enhanced-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .lang-flag {
        font-size: 16px;
    }
}

.social-links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0
}

.social-card {
    display: flex;
    border-radius: 8px;
    padding: 20px;
    transition: transform .3s, box-shadow .3s
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .15)
}

.social-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    margin-right: 20px
}

.btn,
.timeline-date span {
    display: inline-block;
    font-weight: 700
}

.social-icon-large.telegram {
    background-color: #08c
}

.social-icon-large.youtube {
    background-color: red
}

.mission-content,
.social-info {
    flex: 1
}

.social-info h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px
}

.social-info p {
    color: #666;
    margin-bottom: 15px
}

.contact-info,
.contact-section {
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0
}

.contact-info h3,
.cta-section h3 {
    color: #006400;
    margin-top: 0
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s, transform .8s
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0)
}

.delay-1 {
    transition-delay: 0.1s
}

.delay-2 {
    transition-delay: 0.3s
}

.delay-3 {
    transition-delay: 0.5s
}

.delay-4 {
    transition-delay: 0.7s
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

.btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1) rotate(5deg);
}


.btn-primary {
    background: linear-gradient(135deg, #006400, #004d00);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #004d00;
    border-color: #004d00;
}

.btn-secondary {
    background: linear-gradient(135deg, transparent, rgba(0, 100, 0, 0.1));
    color: #006400;
    border: 2px solid #006400;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: #006400;
    color: #ffffff;
}

.btn-glow {
    background-color: #ff6b6b;
    color: #ffffff;
    border: 2px solid #ff6b6b;
}

.btn-glow:hover {
    background-color: #ee5a24;
    border-color: #ee5a24;
}

.btn-ornament::after,
.btn-ornament::before {
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #fff, transparent, #fff, transparent, #fff);
    opacity: 0;
    transition: opacity .3s;
    content: '';
    position: absolute
}

.btn-glow {
    background-color: #070;
    color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(0, 119, 0, .5)
}

.btn-glow:hover {
    animation: 1.5s infinite alternate glow;
    transform: translateY(-3px)
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(0, 119, 0, .5)
    }

    to {
        box-shadow: 0 0 20px rgba(0, 119, 0, .8)
    }
}

.btn-ornament {
    background-color: #006400;
    color: #fff;
    border: 2px solid #006400
}

.btn-ornament::before {
    top: 0
}

.btn-ornament::after {
    bottom: 0
}

.btn-ornament:hover::after,
.btn-ornament:hover::before {
    opacity: .6
}

.btn-ornament:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 77, 0, .3)
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px
}

.about-section,
.actions-section {
    background-color: rgba(255, 255, 255, .8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1)
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0
}

.actions-section {
    margin: 30px 0
}

.about-section h3,
.actions-section h3 {
    color: #006400;
    margin-bottom: 10px
}

.about-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px
}

.contact-form {
    display: grid;
    gap: 20px;
    margin-top: 20px
}

.form-group {
    display: flex;
    flex-direction: column
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 700;
    color: #333
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: border-color .3s, box-shadow .3s
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #006400;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, .2);
    outline: 0
}

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

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 700
}

.success {
    background-color: rgba(76, 175, 80, .2);
    border: 1px solid #4caf50;
    color: #2e7d32
}

.error {
    background-color: rgba(244, 67, 54, .2);
    border: 1px solid #f44336;
    color: #c62828
}

.featured-box,
.hero-section {
    background-color: rgba(255, 255, 255, .8);
    border-radius: 8px;
    text-align: center
}

.faq-section {
    margin: 30px 0
}

.hero-section {
    padding: 24px 16px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1)
}

.featured-box,
.mission-point {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s
}

.hero-section h2 {
    color: #006400;
    font-size: clamp(1.3rem, 5vw, 2rem);
    margin-bottom: 15px
}

.hero-text {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 25px
}

.activities-grid,
.featured-content,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0
}

.featured-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.activity-card:hover,
.featured-box:hover,
.mission-point:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15)
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 100, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #006400
}

.featured-box h3 {
    color: #006400;
    margin-bottom: 12px
}

.featured-box p {
    flex-grow: 1;
    margin-bottom: 20px
}

.nav-toggle {
    display: none;
    background: rgba(0,0,0,0.45);
    border: 2px solid rgba(255,255,255,0.75);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-section,
.mission-point {
    background-color: rgba(255, 255, 255, .8);
    border-radius: 8px
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    border-left: 4px solid #006400;
    padding-left: 20px
}

.mission-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0
}

.mission-point {
    display: flex;
    padding: 25px
}

.mission-content h3 {
    color: #006400;
    margin-top: 0;
    margin-bottom: 15px
}

.mission-point .icon-wrapper {
    margin-right: 20px;
    margin-bottom: 0
}

.cta-section {
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1)
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 4px;
    height: 100%;
    background: darkgreen;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    z-index: 1;
}

.timeline-date {
    margin-bottom: 15px;
}

.timeline-date span {
    display: inline-block;
    padding: 8px 12px;
    background-color: darkgreen;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: darkgreen;
    border-radius: 50%;
    left: -44px;
    top: 30px;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.2);
}

.timeline-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: darkgreen;
    margin-top: 0;
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 20px
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.activities-grid,
.featured-content,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0
}

.featured-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.activity-card:hover,
.featured-box:hover,
.mission-point:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15)
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 100, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #006400
}

.featured-box h3 {
    color: #006400;
    margin-bottom: 12px
}

.featured-box p {
    flex-grow: 1;
    margin-bottom: 20px
}

.nav-toggle {
    display: none;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px
}

.cta-section,
.mission-point {
    background-color: rgba(255, 255, 255, .8);
    border-radius: 8px
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    border-left: 4px solid #006400;
    padding-left: 20px
}

.mission-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0
}

.mission-point {
    display: flex;
    padding: 25px
}

.mission-content h3 {
    color: #006400;
    margin-top: 0;
    margin-bottom: 15px
}

.mission-point .icon-wrapper {
    margin-right: 20px;
    margin-bottom: 0
}

.cta-section {
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1)
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 4px;
    height: 100%;
    background: #006400;
    border-radius: 2px
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    z-index: 1
}

.timeline-date {
    min-width: 120px;
    text-align: right;
    padding-right: 20px;
    position: relative
}

.timeline-date span {
    padding: 8px 12px;
    background-color: #006400;
    color: #fff;
    border-radius: 4px;
    font-size: .9rem
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #006400;
    border-radius: 50%;
    left: -44px; /* align with vertical rail defined at 20px */
    top: 30px;   /* consistent offset within each item */
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, .2)
}

.timeline-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
    flex: 1;
    margin-left: 20px
}

.timeline-content h3 {
    color: #006400;
    margin-top: 0;
    margin-bottom: 10px
}

.activity-card,
.project-card {
    background-color: rgba(255, 255, 255, .8);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s
}

.activity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.projects-section {
    margin-top: 50px
}

.project-status {
    margin-top: 15px
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: #006400;
    color: #fff;
    border-radius: 4px;
    font-size: .85rem
}

@media (max-width:768px) {

    .button-group,
    .contact-buttons,
    .logo {
        flex-direction: column
    }

    .logo img {
        margin-right: 0;
        margin-bottom: 10px
    }

    .timeline-item,
    nav ul {
        flex-direction: column;
        align-items: center
    }

    nav li {
        margin: 5px 0;
        width: 100%;
        text-align: center
    }

    .mission-point,
    .social-card {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .mission-point .icon-wrapper,
    .social-icon-large {
        margin-right: 0;
        margin-bottom: 15px
    }

    .button-group a,
    .contact-buttons a {
        width: 100%
    }

    .about-sections,
    .activities-grid,
    .contact-form,
    .featured-content,
    .projects-grid {
        grid-template-columns: 1fr
    }

    .nav-toggle {
        display: block;
        position: fixed; /* keep visible regardless of flow */
        right: 10px;
        top: 10px;
        z-index: 2000; /* above everything */
    }
    nav { position: relative; }

    /* Normalize margins inside container to avoid visual right shift */
    .container > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    header, main, nav, footer {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px;
        background: linear-gradient(135deg, #006400, #004d00);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    nav ul.show {
        display: flex
    }

    nav .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        padding-left: 20px
    }

    .timeline-dot,
    .timeline::before { left: 15px; transform: none; }

    .timeline-date {
        min-width: auto;
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px
    }

    .timeline-dot { left: -29px; top: 30px; bottom: auto; }

    .timeline-content {
        margin-left: 0;
        width: 100%
    }

    .timeline { padding-left: 30px; width: 100%; overflow-x: hidden; }

    .timeline-dot { width: 16px; height: 16px; }

    .timeline-date span {
        font-size: 0.85rem;
        padding: 6px 10px
    }

    .timeline-content {
        padding: 15px
    }

    .timeline-content h3 {
        font-size: 1.2rem
    }

    .timeline-content p {
        font-size: 0.95rem
    }
}