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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

.navbar {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0066cc !important;
}

.navbar-nav .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #0066cc;
}

.hero-section {
    background-color: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.hero-section p {
    color: #6c757d;
    font-size: 1.1rem;
}

.search-box {
    margin-top: 1.5rem;
}

.search-box input {
    border-radius: 4px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.search-box input:focus {
    border-color: #0066cc;
    box-shadow: none;
}

.thread-list {
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.thread-item {
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

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

.thread-item:hover {
    background-color: #f8f9fa;
}

.thread-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.thread-title:hover {
    color: #0052a3;
    text-decoration: underline;
}

.thread-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.thread-description {
    color: #495057;
    margin-top: 0.5rem;
}

.badge-topic {
    background-color: #0066cc;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.badge-new {
    background-color: #ff6b35;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-popular {
    background-color: #ff6b35;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #6c757d;
    font-size: 0.875rem;
}

.featured-thread {
    background-color: #fff;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.featured-thread h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.answer-block {
    background-color: #f8f9fa;
    border-left: 3px solid #0066cc;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.answer-author {
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.product-insert {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0,102,204,0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
}

.btn-primary-custom {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #0052a3;
    color: #fff;
    text-decoration: none;
}

.btn-secondary-custom {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background-color: #5a6268;
    color: #fff;
    text-decoration: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0066cc;
}

.recent-answers {
    background-color: #fff;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.answer-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.faq-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid #0066cc;
}

.faq-question {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #495057;
}

.footer {
    background-color: #fff;
    border-top: 2px solid #e9ecef;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.footer-info {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: #adb5bd;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.content-section {
    background-color: #fff;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.table-responsive {
    margin: 1.5rem 0;
}

.table {
    background-color: #fff;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #0066cc;
    color: #212529;
    font-weight: 600;
}

.form-group label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.custom-checkbox {
    margin: 1rem 0;
}

.thank-you-message {
    background-color: #fff;
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thank-you-message h1 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 2px solid #e9ecef;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    color: #495057;
    font-size: 0.875rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
}

.legal-content {
    background-color: #fff;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: #495057;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .product-insert {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .footer-links a {
        display: block;
        margin-bottom: 0.5rem;
    }
}
