* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #dc2626;
    --light-bg: #f3f4f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header i Navbar */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar h1 {
    font-size: 1.8rem;
    margin-right: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Sekcije */
.section {
    padding: 50px 0;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    display: inline-block;
}

.section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Principi */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.principle h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Prava */
.rights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.right-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.right-item h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Kazne */
.penalties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.penalty-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.penalty-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.penalty-card strong {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.example {
    background: #fee2e2;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Important Box */
.important-box {
    background: #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.important-box h4 {
    color: #b45309;
    margin-bottom: 0.5rem;
}

.important-box p {
    color: #78350f;
}

/* Tips List */
.tips-list {
    list-style: none;
    margin-top: 2rem;
}

.tips-list li {
    background: white;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.tips-list strong {
    color: var(--primary-color);
}

/* FAQ */
.faq {
    margin-top: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .navbar h1 {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        justify-content: center;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section h3 {
        font-size: 1.8rem;
    }

    .content-grid,
    .principles,
    .rights,
    .penalties {
        grid-template-columns: 1fr;
    }

    .principle,
    .right-item,
    .card,
    .penalty-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section h3 {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
