* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #8B4545 0%, #A64646 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.language {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.language:hover {
    background: rgba(255,255,255,0.1);
}

.search-bar {
    margin-top: 15px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    color: #333;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.breadcrumbs {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #8B4545;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #A64646;
}

/* Article */
.article {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.article-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author {
    font-weight: 500;
    color: #333;
}

.date {
    font-size: 14px;
    color: #999;
}

.content {
    font-size: 16px;
    line-height: 1.8;
}

.content p {
    margin-bottom: 20px;
}

.steps {
    margin: 30px 0;
}

.step {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid #8B4545;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.step p {
    color: #555;
    margin-bottom: 0;
}

.highlight {
    color: #A64646;
    font-weight: 600;
}

.highlight-link {
    color: #A64646;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #A64646;
    transition: all 0.3s;
    cursor: pointer;
}

.highlight-link:hover {
    color: #8B4545;
    border-bottom-color: #8B4545;
    background: rgba(139, 69, 69, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.important-box {
    background: #FFF9F0;
    border-left: 4px solid #FFA500;
    padding: 20px;
    margin: 30px 0;
    border-radius: 6px;
}

.important-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.important-box p {
    margin-bottom: 0;
    color: #555;
}

.mission, .community, .open-policy {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.apply-button-container {
    text-align: center;
    margin: 40px 0;
}

.apply-button {
    background: linear-gradient(135deg, #8B4545 0%, #A64646 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(139, 69, 69, 0.3);
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 69, 0.4);
}

.apply-button:active {
    transform: translateY(0);
}

.feedback {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.feedback p {
    font-size: 16px;
    margin-bottom: 15px;
}

.emoji-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.emoji {
    background: none;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.emoji:hover {
    border-color: #8B4545;
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

.modal-subtitle {
    padding: 15px 30px 0;
    color: #666;
    font-size: 14px;
}

.close {
    color: #aaa;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: #333;
}

form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: #8B4545;
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #8B4545;
}

.checkbox-counter {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

#additionalAnswers {
    margin-bottom: 25px;
}

.additional-question {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: slideIn 0.3s;
}

.additional-question label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.additional-question textarea,
.additional-question input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #8B4545 0%, #A64646 100%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 69, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-modal h2 {
    color: #222;
    margin-bottom: 15px;
}

.success-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ok-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.ok-button:hover {
    background: #45a049;
}

/* Responsive */
@media (max-width: 768px) {
    .article {
        padding: 25px 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    form {
        padding: 20px;
    }
    
    .footer-links {
        gap: 20px;
    }
}

