:root {
    --primary-color: #2C3E50;
    --accent-green: #2ECC71;
    --accent-blue: #3498DB;
    --accent-orange: #F39C12;
    --light-bg: #ECF0F1;
    --dark-bg: #2C3E50;
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
    --border-light: #BDC3C7;
}

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

html, body {
    height: 100%;
    font-family: 'Open Sans', 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-muted) !important;
    line-height: 1.6;
}

.navbar-dark {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: 1px;
}

.nav-link {
    color: #E8E8E8 !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
}

.hero-overlay {
    max-width: 600px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    color: #F0F0F0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

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

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card-text {
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #2980B9 !important;
    border-color: #2980B9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #27AE60 !important;
    border-color: #27AE60 !important;
}

.btn-secondary {
    background-color: var(--text-muted) !important;
    border-color: var(--text-muted) !important;
    color: white !important;
}

.btn-outline-light {
    color: white !important;
    border-color: white !important;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.btn-outline-secondary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.table {
    margin-top: 2rem;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table thead th {
    border-color: var(--primary-color);
    font-weight: 700;
    padding: 1rem;
}

.table tbody td {
    padding: 0.8rem 1rem;
    border-color: var(--border-light);
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

.table tbody tr:nth-child(even) {
    background-color: #F8F9FA;
}

.alert {
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-light {
    background-color: #F8F9FA;
    color: var(--text-dark);
}

.alert-light.border-left {
    border-left-color: var(--accent-orange) !important;
}

.alert-warning {
    background-color: #FEF5E7;
    border-color: var(--accent-orange);
    color: var(--text-dark);
}

.alert-info {
    background-color: #EBF5FB;
    border-color: var(--accent-blue);
    color: var(--text-dark);
}

.alert-heading {
    color: var(--accent-orange);
    font-weight: 700;
}

img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.container {
    max-width: 1200px;
}

footer {
    background-color: var(--primary-color) !important;
    color: white;
    margin-top: auto;
}

footer h5 {
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

footer a {
    color: #BDC3C7;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

footer a:hover {
    color: var(--accent-green);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.cookie-banner {
    border-top: 1px solid var(--border-light);
    animation: slideUp 0.3s ease;
}

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

.form-control {
    border-color: var(--border-light);
    border-radius: 5px;
    padding: 0.7rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25) !important;
}

label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
}

.text-danger {
    color: #E74C3C !important;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.row {
    margin-bottom: 2rem;
}

hr {
    border-color: var(--border-light);
    margin: 2rem 0;
}

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-section {
        min-height: 350px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table thead th, .table tbody td {
        padding: 0.6rem 0.4rem;
    }

    .flex-row-reverse {
        flex-direction: column-reverse !important;
    }

    .btn {
        display: block;
        margin-bottom: 0.5rem;
    }

    .btn-block + .btn-block {
        margin-left: 0;
    }

    .cookie-banner .row {
        flex-direction: column;
    }

    .cookie-banner button,
    .cookie-banner a {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    footer h5 {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}
