/* O Projektu Page Styles - 2 Column Grid Layout */

/* White background */
body.page-template-page-o-projektu,
body[class*="o-projektu"] {
    background: #fff !important;
}

html {
    background: #fff !important;
}

/* Override theme wrappers */
body.page-template-page-o-projektu #page,
body.page-template-page-o-projektu .site,
body.page-template-page-o-projektu .site-content,
body.page-template-page-o-projektu main {
    max-width: 100% !important;
    width: 100% !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.o-projektu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    background: #fff;
}

/* 2-Column Grid Layout */
.o-projektu-item {
    display: grid;
    grid-template-columns: 2fr 3fr; /* 40/60 split like abecedni seznam */
    gap: 60px;
    margin-bottom: 80px;
    padding-bottom: 60px;
}

/* Left Sidebar */
.o-projektu-sidebar {
    width: 100%;
}

.page-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.3;
    font-family: 'Work Sans', sans-serif;
}

/* Expandable Section (kolofon) */
.expandable-section {
    margin-bottom: 2px;
}

.expand-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
}

.expand-toggle:hover {
    color: #333;
}

.expand-toggle::before {
    content: '+';
    font-size: 1.1em;
    font-weight: bold;
    display: inline-block;
    width: 16px;
    flex-shrink: 0;
}

.expand-toggle.active::before {
    content: '−';
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 22px;
}

.expandable-content.active {
    max-height: none !important;
    overflow: visible !important;
    margin-top: 12px;
}

.kolofon-text {
    font-size: 0.85em; /* Same as literatura-list in Abecedni Seznam */
    line-height: 1.7;
    color: #333; /* Changed to match literatura (#333) */
    font-family: 'Work Sans', sans-serif;
}

.kolofon-text p {
    margin-bottom: 12px; /* Same as literatura-list */
}

/* Right Content Area */
.o-projektu-content {
    min-width: 0;
    font-family: 'Work Sans', sans-serif;
}

.o-projektu-content p {
    margin-bottom: 1.2em;
    line-height: 1.7;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

.o-projektu-content strong {
    font-weight: 600;
}

.o-projektu-content em {
    font-style: italic;
}

.o-projektu-content a {
    color: #000;
    text-decoration: underline;
}

.o-projektu-content a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .o-projektu-item {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .o-projektu-sidebar {
        width: 100%;
    }

    .page-name {
        font-size: 1.5em;
    }
}

/* Footnote References - matching Abecedni Seznam */
.references {
    margin-top: 25px;
    padding-top: 0;
    /* No border */
    font-size: 0.8em;
    color: #000; /* Black text like Abecedni Seznam */
    font-family: 'Work Sans', sans-serif;
    text-align: left;
}

.reference {
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    padding-left: 20px;
    text-indent: -20px;
    color: #000; /* Black text */
}

.reference sup {
    font-weight: 600;
    margin-right: 4px;
}

.reference em {
    font-style: italic;
}

/* Superscript in main text */
.o-projektu-content sup {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 1px;
}
/* Remove margin from the Spletna stran paragraph in kolofon */
.kolofon-text p:nth-child(2) {
    margin-bottom: 0;
}