/* Stranica pojedinacne analize (/analize/{kategorija}/{podkategorija}/{analiza})
   Sadrzaj: analize/analiza-sadrzaj.php. Stil uskladjen sa style/cenovnik.css. */

.an-section {
    background-color: #f4f5f7;
    padding: 40px 0 60px;
}

/* ---------- kartice ---------- */
.an-card {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #df0024;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}
.an-card-body {
    padding: 20px;
}
.an-section .an-card-title {
    margin: 0;
    padding: 12px 20px;
    background-color: #3e4c66;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

/* ---------- naslov i cena ---------- */
.an-head {
    padding: 20px 20px 18px;
}
.an-title {
    margin: 0 0 14px;
    color: #3e4c66;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.an-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: #f4f5f7;
    border-top: 2px solid #d5d9e0;
    border-radius: 0 0 4px 4px;
}
.an-price {
    display: flex;
    align-items: baseline;
    margin: 4px 16px 4px 0;
}
.an-price-label {
    margin-right: 12px;
    font-size: 15px;
    color: #555;
}
.an-price-value {
    font-size: 26px;
    font-weight: 700;
    color: #3e4c66;
    white-space: nowrap;
}
.an-price-na {
    font-weight: 400;
    font-style: italic;
    color: #777;
}
.an-price-value.an-price-na {
    font-size: 20px;
}
.an-btn {
    display: inline-block;
    margin: 4px 0;
    padding: 10px 18px;
    border: 2px solid #df0024;
    border-radius: 4px;
    background: #df0024;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.an-btn:hover,
.an-btn:focus {
    background: #b8001e;
    border-color: #b8001e;
    color: #fff;
    text-decoration: none;
}
.an-btn-outline {
    background: #fff;
    color: #df0024;
}
.an-btn-outline:hover,
.an-btn-outline:focus {
    background: #df0024;
    color: #fff;
}
.an-btn .fas {
    margin-right: 6px;
}

/* ---------- podaci o analizi: tabela od dve kolone ---------- */
.an-fields {
    width: 100%;
    border-collapse: collapse;
}
.an-fields th,
.an-fields td {
    padding: 12px 20px;
    vertical-align: top;
    border-top: 1px solid #ececec;
    line-height: 1.5;
}
.an-fields tr:first-child th,
.an-fields tr:first-child td {
    border-top: 0;
}
.an-fields th {
    width: 34%;
    color: #3e4c66;
    font-weight: 700;
    text-align: left;
}
.an-fields td {
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
/* tabele i liste koje dolaze iz podataka */
.an-fields td table {
    width: 100%;
    margin: 4px 0;
    border-collapse: collapse;
    font-size: 13px;
}
.an-fields td table td,
.an-fields td table th {
    width: auto;
    padding: 4px 6px;
    border: 1px solid #e3e3e3;
}
.an-section .an-fields td ul,
.an-section .an-fields td ol {
    margin: 4px 0;
    padding-left: 18px;
}
.an-section .an-fields td li {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: inherit;
    list-style: disc;
}

/* nepostojeca analiza ili podkategorija (HTTP 404) */
.an-404 {
    margin: 10px 15px 30px;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #df0024;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    text-align: center;
}
.an-main .an-404 {
    margin: 0 0 20px;
}
.an-404 .an-404-title {
    margin: 0 0 10px;
    color: #3e4c66;
    font-size: 24px;
}
.an-404 p {
    margin: 0;
    color: #555;
}
.an-404 a {
    color: #df0024;
    font-weight: 700;
}

.an-nodata {
    color: #555;
}
.an-nodata a {
    color: #df0024;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- ostale analize iz iste podkategorije ---------- */
.an-other-row {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border-top: 1px solid #ececec;
    color: #333;
    text-decoration: none;
}
.an-others-list .an-other-row:first-child {
    border-top: 0;
}
.an-other-row:hover,
.an-other-row:focus {
    background-color: #f7f8fa;
    color: #df0024;
    text-decoration: none;
}
.an-other-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.an-other-price {
    flex: 0 0 auto;
    margin-left: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #333;
}

/* ---------- kontakt traka ---------- */
.an-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 20px;
    border-radius: 4px;
    background-color: #3e4c66;
    color: #fff;
}
.an-contact a {
    margin: 4px 24px 4px 0;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}
.an-contact a:hover,
.an-contact a:focus {
    color: #fff;
    text-decoration: underline;
}
.an-contact .fas {
    margin-right: 6px;
    color: #ff8a9b;
}
.an-contact-note {
    margin: 4px 0;
    color: rgba(255, 255, 255, .85);
}

/* ---------- bocni meni ---------- */
.an-side-toggle {
    display: none;
}
.an-side-cat {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #df0024;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}
.an-side-cat-head {
    display: block;
    padding: 12px 15px;
    color: #3e4c66;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
.an-side-cat-head:hover,
.an-side-cat-head:focus {
    color: #df0024;
    text-decoration: none;
}
.an-side-cat.is-open .an-side-cat-head {
    background-color: #3e4c66;
    color: #fff;
}
.an-section .an-side-subs {
    margin: 0;
    padding: 0;
    list-style: none;
}
.an-section .an-side-subs li {
    line-height: 1.4;
}
.an-side-subs li a {
    display: block;
    padding: 9px 15px 9px 18px;
    border-top: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    color: #333;
    text-decoration: none;
}
.an-side-subs li:first-child a {
    border-top: 0;
}
.an-side-subs li a:hover,
.an-side-subs li a:focus {
    background-color: #f7f8fa;
    color: #df0024;
}
.an-side-subs li a.is-current {
    border-left-color: #df0024;
    background-color: #fdf0f2;
    color: #df0024;
    font-weight: 700;
}

/* desktop i tablet: meni uvek otvoren */
@media (min-width: 768px) {
    .an-side-body.collapse {
        display: block;
        height: auto !important;
        visibility: visible;
    }
}

/* ---------- mobilni ---------- */
@media (max-width: 767px) {
    .an-section {
        padding: 24px 0 40px;
    }
    .an-section > .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .an-section > .container > .row {
        margin-left: 0;
        margin-right: 0;
    }
    .an-section .an-main,
    .an-section .an-side {
        padding-left: 0;
        padding-right: 0;
    }
    .an-title {
        font-size: 22px;
    }
    .an-head {
        padding: 16px 14px 14px;
    }
    .an-price-block {
        padding: 12px;
    }
    .an-price-value {
        font-size: 22px;
    }
    .an-btn {
        width: 100%;
        padding: 12px 16px;
        text-align: center;
    }
    .an-fields th,
    .an-fields td {
        padding: 10px 12px;
        font-size: 14px;
    }
    .an-fields th {
        width: 38%;
    }
    .an-other-row {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 14px;
    }
    .an-section .an-card-title {
        padding: 12px;
    }
    .an-contact {
        margin-bottom: 20px;
        padding: 12px 14px;
    }

    .an-side-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        margin-bottom: 10px;
        padding: 10px 15px;
        border: 1px solid #e3e3e3;
        border-left: 4px solid #df0024;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
        color: #3e4c66;
        font-size: 16px;
        font-weight: 700;
        text-align: left;
    }
    .an-side-toggle .fas {
        color: #df0024;
        transition: transform .2s;
    }
    .an-side-toggle[aria-expanded="true"] .fas {
        transform: rotate(180deg);
    }
    .an-side-cat-head {
        padding: 14px 15px;
    }
    .an-side-subs li a {
        padding: 12px 15px 12px 18px;
    }
}
