:root {
    --primary-color: #228B22;
    --secondary-color: #FF8C00;
    --accent-color: #1a2d5e;
    --text-dark: #3a3a3a;
    --text-muted: #777777;
    --bg-white: #ffffff;
    --bg-light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--accent-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a6b1a;
    border-color: #1a6b1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #E67E00;
    border-color: #E67E00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.hero-section {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section-small {
    position: relative;
    height: 250px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
}

.hero-overlay-small {
    text-align: center;
}

.hero-title-small {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-subtitle-small {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-white {
    background-color: var(--bg-white);
}

.section-light-gray {
    background-color: var(--bg-light-gray);
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-product {
    overflow: hidden;
}

.card-product .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-product:hover .card-img-top {
    transform: scale(1.05);
}

.card-product .card-body {
    padding: 1.25rem;
}

.card-product .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-product .card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    min-height: 40px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.product-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-specs .badge {
    background-color: var(--bg-light-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.badge-light-blue {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.badge-info {
    background-color: #1a2d5e;
    color: white;
}

.badge-secondary {
    background-color: #757575;
    color: white;
}

.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light-gray);
    border-radius: 8px;
}

.legend-item {
    flex: 1;
    min-width: 150px;
    font-size: 0.9rem;
}

.card-list-example {
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 8px;
}

.info-box {
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.info-narrow {
    max-width: 600px;
    margin: 0 auto;
}

.structure-item {
    display: flex;
    flex-direction: column;
}

.table-dark {
    background-color: var(--accent-color);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--bg-light-gray);
}

.table-hover > tbody > tr:hover {
    background-color: #eeeeee;
}

table {
    margin-bottom: 0;
}

.qa-block {
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.qa-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-block h5 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qa-block p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.rule-block {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rule-block:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(34, 139, 34, 0.1);
}

.rule-block p {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.section-with-bg .container {
    position: relative;
    z-index: 1;
}

.thesis {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.contact-info h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form .form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border-color: var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.25);
}

.contact-form .form-check-label {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.footer {
    background-color: #2c2c2c;
    margin-top: 3rem;
}

.footer h6 {
    color: white;
}

.footer p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer .text-muted {
    color: #666666 !important;
}

.bg-light-gray {
    background-color: var(--bg-light-gray) !important;
}

.bg-dark {
    background-color: #2c2c2c !important;
}

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 2px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.consent-content p {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 40px;
    }

    .legend-row {
        flex-direction: column;
        gap: 1rem;
    }

    .legend-item {
        flex: 1 1 100%;
    }

    .hero-title-small {
        font-size: 1.75rem;
    }

    .hero-subtitle-small {
        font-size: 0.9rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .consent-content {
        flex-direction: column;
        text-align: center;
    }

    .consent-content p {
        margin-bottom: 1rem;
    }

    body {
        font-size: 15px;
    }
}
