:root {
    --red-brand: #c0392b; 
    --dark-bg: #2c3e50;    
    --light-bg: #ecf0f1;   
    --white: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

aside {
    background-color: var(--dark-bg);
    color: var(--white);
    width: 320px;
    padding: 40px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
}

.logo-area h1 { font-family: 'Merriweather', serif; font-size: 2.2rem; line-height: 1.2; margin-bottom: 10px; }
.logo-area span { color: var(--red-brand); }
.logo-sub { font-size: 0.8rem; color: #bdc3c7; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid #7f8c8d; padding-bottom: 20px; margin-bottom: 30px; }

nav ul { list-style: none; }
nav li { margin-bottom: 15px; }
nav a { color: #ecf0f1; text-decoration: none; font-size: 1.1rem; transition: 0.3s; display: block; }
nav a:hover { color: var(--red-brand); padding-left: 10px; }
nav a.active { color: var(--red-brand) !important; font-weight: 600; border-left: 3px solid var(--red-brand); padding-left: 10px; }
.sidebar-footer { font-size: 0.8rem; color: #95a5a6; }

.creator-credit {
    font-size: 0.7rem; /* Ještě menší písmo */
    color: #7f8c8d; /* Tmavší, méně kontrastní barva */
    margin-top: 15px;
    display: block;
}

.creator-link {
    color: inherit; /* Dědí barvu z rodiče */
    text-decoration: none; /* Bez podtržení */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.creator-link:hover {
    color: #bdc3c7; /* Mírně světlejší při najetí myší */
    text-decoration: underline; /* Podtržení při najetí myší */
}

/* MAIN */
main { margin-left: 320px; flex: 1; padding: 60px 80px; max-width: 1300px; }

section { margin-bottom: 60px; background: var(--white); padding: 40px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--red-brand); }

h2 { font-family: 'Merriweather', serif; color: var(--text-main); font-size: 2rem; margin-bottom: 30px; border-bottom: 2px solid var(--light-bg); padding-bottom: 10px; }
h3 { font-family: 'Merriweather', serif; font-size: 1.3rem; margin-top: 25px; margin-bottom: 10px; color: var(--dark-bg); }
h4 { font-weight: bold; color: #000; margin-bottom: 5px; font-size: 1rem; }

p { line-height: 1.8; margin-bottom: 15px; text-align: justify; }
ul { margin-left: 20px; margin-bottom: 20px; }
li { margin-bottom: 5px; line-height: 1.6; }

/* COMPONENTS */
.alert-box { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 20px; margin-bottom: 40px; border-radius: 4px; font-family: 'Merriweather', serif; display: flex; align-items: center; }
.person-card { background: #f9f9f9; padding: 30px; border-radius: 4px; margin-bottom: 30px; }
.quote { font-family: 'Merriweather', serif; font-style: italic; color: #555; border-left: 4px solid var(--red-brand); padding-left: 20px; margin: 20px 0; background: #fff; padding: 20px; font-size: 1.1rem; }

/* DETAILS */
details { background-color: #f8f9fa; margin-bottom: 15px; border-radius: 4px; border: 1px solid #e9ecef; overflow: hidden; }
summary { padding: 15px 20px; cursor: pointer; font-weight: 600; background-color: #fff; display: flex; justify-content: space-between; align-items: center; }
summary:after { content: '+'; font-size: 1.5rem; color: var(--red-brand); }
details[open] summary:after { content: '-'; }
details[open] summary { border-bottom: 1px solid #e9ecef; background-color: #f1f1f1; }
.project-content { padding: 25px; font-size: 0.95rem; color: #444; background: #fff; }

/* DATA TABLE */
.meta-table { width: 100%; margin-bottom: 20px; border-collapse: collapse; font-size: 0.9rem; }
.meta-table td { padding: 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.meta-table td:first-child { font-weight: bold; width: 180px; color: #555; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.service-item { background: #f4f4f4; padding: 20px; border-radius: 4px; border-left: 3px solid #bdc3c7; }
.service-item:hover { border-left-color: var(--red-brand); background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* NEW STYLES FOR SEMANTIC ELEMENTS */
header {
    background-color: var(--dark-bg);
    color: var(--white);
    width: 320px;
    padding: 40px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
}


/* EXPERTS GRID */
.experts-heading {
    margin-top: 20px;
    color: var(--red-brand);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.experts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

/* LEGISLATION GRID */
.legislation-grid {
    column-count: 2;
    column-gap: 40px;
}

/* SERVICES HEADING */
.services-heading {
    margin-top: 30px;
}

/* CONTACT CARD */
.contact-card {
    background: var(--dark-bg);
    color: #fff;
    padding: 30px;
    border-radius: 4px;
    display: inline-block;
    min-width: 350px;
}

.contact-title {
    color: #fff;
    margin-top: 0;
    border: none;
    margin-bottom: 20px;
}

.contact-status {
    font-style: italic;
}

.contact-info {
    color: #ecf0f1;
    margin-top: 15px;
}

.contact-email-section {
    border-top: 1px solid #7f8c8d;
    padding-top: 15px;
    margin-top: 15px;
}

.contact-email {
    margin-bottom: 5px;
}

.contact-email:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    body { flex-direction: column; }
    header { width: 100%; height: auto; position: relative; }
    main { margin-left: 0; padding: 20px; }
    nav { display: none; }
}