/* Inner pages */
/* Jaunumi hero — kā kontakti (live: bg_1.jpg, padding 150/0/60, title 34px, desc 18px/25px #F5F5F5) */
.news-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 300px;
    margin-top: -200px;
    padding: 196px 20px 60px;
    text-align: center;
}

.news-hero h1,
.news-hero-title {
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 20px;
}

.news-hero-desc {
    font-size: 18px;
    line-height: 25px;
    color: #F5F5F5;
    margin: 0;
}

/* Projekti hero — live: bg_2.jpg, container 600px, title balts + mb 20px, desc 18px/25px */
.projects-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: -200px;
    padding: 196px 20px 60px;
    text-align: center;
}

.projects-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 20px;
}

.projects-hero-desc {
    font-size: 18px;
    line-height: 25px;
    color: #F5F5F5;
    max-width: 600px;
    margin: 0 auto;
}

/* Projekti saraksts — live: fons #F5F5F5, sekcijas padding 70/100, filtri 20px uppercase (#7A7A7A, aktīvs #1F32B5), grid 2 kolonnas (mobilais 1), starps 3px, attēla prop. 0.8, hover overlay #1F32B5 69% + title 18px */
.projects-body {
    position: relative;
    padding: 0px 0 100px;
}

/* pelēkais fons stiepjas līdz footer — pārklāj main#content.content-section padding-bottom (60px) + .site-footer margin-top (60px) */
.projects-body::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 120px;
    background-color: #F5F5F5;
}

/* Projekta detail — live: hero bg_1.jpg (bottom center, 700px konteiners, 160/70) h2 balts + breadcrumb;
   pelēkā sekcija (50px 0 0): title 29px/600 #1F32B5, h3 20px/30px, atdalītājs 1px #1F32B5; saturs 2 kolonnas */
.project-detail-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    margin-top: -200px;
    padding: 196px 20px 70px;
    text-align: center;
}

.project-detail-hero h2 {
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 15px;
}

.project-detail-crumb {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    text-decoration: none;
}

.project-detail-crumb:hover {
    color: #fff;
}

.project-detail-head {
    background-color: #F5F5F5;
    padding: 50px 0 20px 0;
}

.project-detail-title {
    font-size: 29px;
    font-weight: 600;
    line-height: 1.3;
    color: #1F32B5;
    margin: 7px 0 24px;
}

/* ALTUM ievads ("Ēka renovēta …") — virsraksta stilā, kā live */
.project-detail-desc {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #4B4F58;
    margin: 0 0 20px;
}

/* ESKO ievads — pilna rindkopa parasta teksta izmērā */
.project-detail-intro {
    font-size: 15px;
    line-height: 1.75;
    color: #54595f;
    margin: 0 0 32px;
}

.project-detail-divider {
    border-top: 1px solid #1F32B5;
    margin-bottom: 15px;
}

/* Satura + galerijas bloks baltā panelī, kā live (margin-bottom 0 — navigācija tieši zem paneļa) */
.project-detail.detail-page {
    margin-bottom: 0;
}

.project-detail {
    background-color: #fff;
    margin: 15px 20px 0;
    padding: 50px 0 60px;
}

.project-detail .detail-content {
    font-size: 15px;
    line-height: 1.7;
    color: #54595f;
    margin-top: 0;
}

.project-cost {
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 24px !important;
}

.project-works {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e7eb;
}

.project-works li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-weight: 600;
    color: #3a3a3a;
}

.project-works li + li {
    border-top: 1px solid #e5e7eb;
}

.project-works i {
    color: #1F32B5;
    font-size: 18px;
}

/* Iepriekšējais / nākamais ieraksts (projekti, jaunumi) — partials/detail-pager.php */
.detail-pager {
    padding: 24px 0 10px;
}

.detail-pager-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.detail-pager-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #54595f;
    max-width: 48%;
}

.detail-pager-next {
    text-align: right;
    margin-left: auto;
}

.detail-pager-link > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.detail-pager-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #1F32B5;
}

/* Garš virsraksts — vienā rindā ar "…" (pilns teksts title atribūtā), kā live */
.detail-pager-title {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "Visi jaunumi" — kontūrpoga zem navigācijas */
.detail-back {
    padding: 30px 0 10px;
}

.btn-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border: 2px solid #0170B9;
    border-radius: 999px;
    color: #0170B9;
    font-size: 17px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-detail-back:hover {
    background-color: #0170B9;
    color: #fff;
}

.detail-pager-link i {
    font-size: 20px;
    color: #c4c8cf;
}

.detail-pager-link:hover .detail-pager-title {
    color: #1F32B5;
}

@media (max-width: 767.98px) {
    .project-detail {
        margin: 15px 0 0;
        padding: 30px 0 40px;
    }

    .project-detail-desc {
        font-size: 20px;
    }

    .detail-pager-title {
        font-size: 15px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.projects-grid-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.projects-grid-item::before {
    content: "";
    display: block;
    padding-bottom: 80%;
}

.projects-grid-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-grid-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: rgba(31, 50, 181, 0.69);
    text-align: center;
    opacity: 0;
    transition: opacity 1s;
}

.projects-grid-item:hover .projects-grid-overlay {
    opacity: 1;
    transition: opacity 0.5s;
}

.projects-grid-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

/* Kompanija hero — live: bg_2.jpg, padding 200/0/30, h1 40px/400, desc 18px/25px #F5F5F5, 3 ikonu riņķi (60px ikona, 3px robeža, hover #AF006C) */
.kompanija-hero {
    --hero-accent: #AF006C;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: -200px;
    padding: 196px 20px 40px;
    text-align: center;
}

.kompanija-hero h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 20px;
}

.kompanija-hero-desc {
    font-size: 18px;
    line-height: 25px;
    color: #F5F5F5;
    max-width: 860px;
    margin: 0 auto 40px;
}

.kompanija-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 50px;
}

.kompanija-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.kompanija-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.kompanija-icon-circle img {
    width: 60px;
    height: 60px;
}

.kompanija-icon:hover .kompanija-icon-circle,
.kompanija-icon.active .kompanija-icon-circle {
    background-color: var(--hero-accent);
}

/* Pakalpojumu hero — live: tāds pats kā kompanija, bet 4 ikonu riņži; aktīvais + hover #00ABF7 (live --e-global-color-d63ee47) */
.kompanija-hero.pak-hero {
    --hero-accent: #00ABF7;
}

.kompanija-icons.kompanija-icons-4 {
    grid-template-columns: repeat(4, 1fr);
}

.kompanija-icon-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

/* Kompanija: saturā apakšā (live: fons #F5F5F5; h2 32px/1.3 #3a3a3a + 1px #AF006C atdalītājs, 15px virs/zem;
   saraksts — 30px ikona #AF006C + 10px, teksts 20px, rindu starps 20px; starpsekciju starps 100px) */
.kompanija-body {
    position: relative;
    background-color: #F5F5F5;
    padding: 70px 0 60px;
}

/* pelēkais fons stiepjas līdz footer — pārklāj main#content.content-section padding-bottom (60px) + .site-footer margin-top (60px) */
.kompanija-body::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 120px;
    background-color: #F5F5F5;
}

.kompanija-body .elementor-text-editor {
    color: #4B4F58;
}

.kompanija-body .elementor-text-editor h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    color: #3a3a3a;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #AF006C;
}

.kompanija-body .elementor-text-editor h2:not(:first-child) {
    margin-top: 100px;
}

.kompanija-body .elementor-text-editor h2 + * {
    margin-top: 15px;
}

.kompanija-body .elementor-text-editor ul {
    list-style: none;
    padding: 0;
}

.kompanija-body .elementor-text-editor ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.kompanija-body .elementor-text-editor ul li + li {
    margin-top: 20px;
}

.kompanija-body .elementor-text-editor ul li::before {
    content: "";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    background: url('../img/icon-check-circle.svg') center / contain no-repeat;
}

/* Pakalpojumi satura apakša — live (namu-parvaldisana 1813): h2 32px/41.6px/400 #3a3a3a + 1px #00ABF7 atdalītājs
   (15px zem h2, 20px pirms satura), starpsekciju starps 100px; saraksta ikonas 49px (katram savas, live fill #0170B9),
   gap 10px, rindu starps 30px, teksts 20px #4B4F58 */
.pak-body .elementor-text-editor h2 {
    border-bottom-color: #00ABF7;
}

.pak-body .elementor-text-editor h2 + * {
    margin-top: 20px;
}

.pak-body .elementor-text-editor ul li + li {
    margin-top: 30px;
}

.pak-body .elementor-text-editor ul li::before {
    width: 49px;
    height: 49px;
    background-image: none;
}

/* Saraksta ikonu kartē — ikona no live lapas (Elementor icon-list), nosaukums: pak-np1/np2/tp1/cp1 + pozīcija sarakstā */
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(1)::before { background-image: url('../img/icon-pak-np1-1.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(2)::before { background-image: url('../img/icon-pak-np1-2.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(3)::before { background-image: url('../img/icon-pak-np1-3.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(4)::before { background-image: url('../img/icon-pak-np1-4.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(5)::before { background-image: url('../img/icon-pak-np1-5.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(6)::before { background-image: url('../img/icon-pak-np1-6.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(7)::before { background-image: url('../img/icon-pak-np1-7.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(8)::before { background-image: url('../img/icon-pak-np1-8.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(9)::before { background-image: url('../img/icon-pak-np1-9.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(2) li:nth-child(1)::before { background-image: url('../img/icon-pak-np2-1.svg'); }
.pak-body[data-pak="namu-parvaldisana"] .elementor-text-editor ul:nth-of-type(2) li:nth-child(2)::before { background-image: url('../img/icon-pak-np2-2.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(1)::before { background-image: url('../img/icon-pak-tp1-1.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(2)::before { background-image: url('../img/icon-pak-tp1-2.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(3)::before { background-image: url('../img/icon-pak-tp1-3.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(4)::before { background-image: url('../img/icon-pak-tp1-4.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(5)::before { background-image: url('../img/icon-pak-tp1-5.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(6)::before { background-image: url('../img/icon-pak-tp1-6.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(7)::before { background-image: url('../img/icon-pak-tp1-7.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(8)::before { background-image: url('../img/icon-pak-tp1-8.svg'); }
.pak-body[data-pak="tehinska-uzturesana"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(9)::before { background-image: url('../img/icon-pak-tp1-9.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(1)::before { background-image: url('../img/icon-pak-cp1-1.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(2)::before { background-image: url('../img/icon-pak-cp1-2.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(3)::before { background-image: url('../img/icon-pak-cp1-3.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(4)::before { background-image: url('../img/icon-pak-cp1-4.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(5)::before { background-image: url('../img/icon-pak-cp1-5.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(6)::before { background-image: url('../img/icon-pak-cp1-6.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(7)::before { background-image: url('../img/icon-pak-cp1-7.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(8)::before { background-image: url('../img/icon-pak-cp1-8.svg'); }
.pak-body[data-pak="citi-pakalpojumi"] .elementor-text-editor ul:nth-of-type(1) li:nth-child(9)::before { background-image: url('../img/icon-pak-cp1-9.svg'); }

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

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card-content h2 a {
    color: #1a1a2e;
}

.news-card-content h2 a:hover {
    color: #f1592a;
}

.news-card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin: 20px 0 24px;
}

.news-filter {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--ast-global-color-7);
    color: var(--ast-global-color-0);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.news-filter:hover {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-8);
}

.news-filter.active {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-8);
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.project-city {
    font-weight: 600;
}

.project-category {
    background: #f1592a;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Atsauksmes hero — live: bg_2, h1 34px balts + desc 18px/25px #F5F5F5 (max-width 600px) */
.atsauksmes-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 300px;
    margin-top: -200px;
    padding: 196px 20px 60px;
    text-align: center;
}

.atsauksmes-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 20px;
}

.atsauksmes-hero-desc {
    font-size: 18px;
    line-height: 25px;
    color: #F5F5F5;
    max-width: 600px;
    margin: 0 auto;
}

/* Atsauksmes kartes — live: fons #F5F5F5, kartes baltešas ar maļu ēnu, teksts 16px/26px, vārds bold + datums pelēks */
.atsauksmes-body {
    position: relative;
    background-color: #F5F5F5;
    padding: 70px 0 60px;
}

/* pelēkais fons stiepjas līdz footer — pārklāj main#content.content-section padding-bottom (60px) + .site-footer margin-top (60px) */
.atsauksmes-body::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 120px;
    background-color: #F5F5F5;
}

.testimonial-card {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-content p {
    color: #4B4F58;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 26px;
}

.testimonial-author {
    font-size: 16px;
    color: #3a3a3a;
}

.testimonial-author span {
    display: block;
    color: #7A7A7A;
    font-size: 14px;
    margin-top: 4px;
}

/* ---------- Kontakti: hero (cdzp.lv: min-height 300, padding 150/18) ---------- */
.kontakti-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 300px;
    margin-top: -200px;
    padding: 196px 20px 56px;
    text-align: center;
}

.kontakti-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    margin: 0;
}

.kontakti-body {
    background-color: #f5f5f5;
    padding-bottom: 40px;
}

/* ---------- Live sekciju padding (Elementor konteineri) ---------- */
.kontakti-sec {
    padding-top: 40px;
}

.kontakti-sec-emergency {
    padding-bottom: 20px;
}

.kontakti-sec-contacts {
    padding-bottom: 48px;
}

.kontakti-sec-offices {
    padding-bottom: 48px;
}

/* Kolonnas zem lg ir viena zem otras — atstarpe starp tām (sadaļas :last-child margin ir 0) */
@media (max-width: 991.98px) {
    .kontakti-sec-contacts .row,
    .kontakti-sec-offices .row,
    .kontakti-sec-managers .row {
        row-gap: 48px;
    }
}

.kontakti-sec-managers {
    padding-bottom: 50px;
}

/* Kolonnu iekšējais starpens — vienāds visām sadaļām, lai virsraksti būtu vienā līnijā */
@media (min-width: 768px) {
    .kontakti-col-m60,
    .kontakti-col-m50 {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* ---------- Avārijas kartes (rozā, #AF006C, padding 24/20/24/30, radius 20) ---------- */
.emergency-card {
    background-color: #AF006C;
    border-radius: 20px;
    padding: 24px 28px 26px;
    margin-bottom: 20px;
    color: #fff;
}

.emergency-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.emergency-phone {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 12px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
}

.emergency-phone:hover {
    color: #fff;
    opacity: 0.85;
}

.emergency-phone i {
    font-size: 32px;
    line-height: 1;
}

/* ---------- Sadaļas: virsraksts + atdalītājs + ikonrindiņas ---------- */
.contact-section {
    margin-bottom: 48px;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.contact-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #3a3a3a;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Live atdalītājs: 1px, 15px virs un zem, krāsa = sadaļas krāsa */
.contact-divider {
    border-top: 1px solid #54595f;
    margin: 12px 0 16px;
}

.contact-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #54595f;
    margin-bottom: 14px;
}

.contact-list-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.contact-link {
    color: #54595f;
    text-decoration: none;
    overflow-wrap: anywhere; /* gari e-pasti šaurā kolonnā nepārsniedz ekrānu */
}

.contact-label {
    font-weight: 600;
    color: #3a3a3a;
    margin-right: -6px;
}

.contact-link:hover {
    color: #af006c;
}

.contact-text {
    color: #54595f;
}

/* Valdes loceklis: apaļa foto ar zilu kontūru (live image-box 25%, radius 50px) */
.ceo-card {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.ceo-photo {
    width: 88px;
    height: auto;
    border-radius: 50%;
    border: 1px solid #1F32B5;
    flex-shrink: 0;
}

.ceo-details {
    flex: 1;
    min-width: 0; /* ļauj flex elementam sarauties, lai e-pasts lūztu, nevis izietu ārā */
}

.ceo-details .contact-text {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Pārvaldnieki: lielāka atstarpe starp personām, ciešākas rindas vienas personas ietvaros — katrs cilvēks kā grupa */
.manager-block {
    margin-bottom: 32px;
}

.manager-block:last-child {
    margin-bottom: 0;
}

.manager-block .contact-list-item {
    margin-bottom: 8px;
}

.manager-block .contact-list-item:last-child {
    margin-bottom: 0;
}

.manager-name {
    font-size: 16px;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 8px;
}

@media (max-width: 991.98px) {
    .kontakti-hero {
        margin-top: -95px;
        padding: 130px 20px 40px;
    }

    .kontakti-hero h1 {
        font-size: 30px;
    }

    .news-hero {
        margin-top: -95px;
        padding: 130px 20px 80px;
    }

    .news-hero h1 {
        font-size: 30px;
    }

    .atsauksmes-hero {
        margin-top: -95px;
        padding: 130px 20px 40px;
    }

    .atsauksmes-hero h1 {
        font-size: 30px;
    }

    .kompanija-hero {
        margin-top: -95px;
        padding: 130px 20px 40px;
    }

    .kompanija-hero h1 {
        font-size: 30px;
    }

    .projects-hero {
        margin-top: -95px;
        padding: 130px 20px 80px;
    }

    .projects-hero h1 {
        font-size: 30px;
    }

    .projects-body {
        padding: 30px 25px 100px;
    }

    .project-detail-hero {
        margin-top: -95px;
        padding: 130px 20px 80px;
    }

    .project-detail-hero h2 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .kontakti-hero {
        margin-top: -80px;
        padding: 110px 15px 30px;
    }

    .news-hero {
        margin-top: -80px;
        padding: 110px 15px 80px;
    }

    .atsauksmes-hero {
        margin-top: -80px;
        padding: 110px 15px 30px;
    }

    .kompanija-hero {
        margin-top: -80px;
        padding: 110px 15px 40px;
    }

    .projects-hero {
        margin-top: -80px;
        padding: 110px 15px 80px;
    }

    .projects-body {
        padding: 25px 20px 50px;
    }

    .project-detail-hero {
        margin-top: -80px;
        padding: 110px 15px 80px;
    }

    .contact-list-item {
        font-size: 15px;
    }

    .contact-section-title {
        font-size: 20px;
    }

    .emergency-phone {
        font-size: 22px;
    }
}

/* Mobilajā hero ikonas (Par CDzP 3 / Pakalpojumi 4) nevis paslēptas, bet kompaktā rindā — navigācija starp apakšlapām */
@media (max-width: 767px) {
    .kompanija-icons,
    .kompanija-icons.kompanija-icons-4 {
        gap: 6px;
        padding: 0;
        margin-top: 24px;
    }

    .kompanija-icon {
        gap: 8px;
    }

    .kompanija-icon-circle {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }

    .kompanija-icon-circle img {
        width: 32px;
        height: 32px;
    }

    .kompanija-icon-title {
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.form-intro {
    margin-bottom: 30px;
}

.form-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.form-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.form-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

/* Detail lapas (news/project) */
.detail-page {
    margin-bottom: 60px;
}

.detail-date {
    font-size: 14px;
    color: #999;
    margin: -15px 0 25px;
}

.detail-meta {
    margin: -15px 0 25px;
}

.detail-hero {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.detail-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ast-global-color-3);
    margin-top: 15px;
}

.detail-content p {
    margin-bottom: 15px;
}

/* Projekta satura virsraksti — live: h5 20px/30px, #1F32B5 */
.project-detail .detail-content h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: #1F32B5;
    margin: 30px 0 20px;
}

.project-detail .detail-content h5:first-child {
    margin-top: 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.project-gallery figure {
    margin: 0;
}

.project-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.project-gallery figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .project-gallery { grid-template-columns: 1fr; }

    .project-gallery img {
        height: auto;
    }
}

/* Jaunuma galerija (carousel) */
.news-gallery {
    margin-top: 24px;
    height: 540px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0f1420;
}

.news-gallery .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-gallery .carousel-control-prev,
.news-gallery .carousel-control-next {
    width: 64px;
    opacity: 0.75;
}

.news-gallery .carousel-control-prev:hover,
.news-gallery .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .news-gallery {
        height: 260px;
    }

    .news-gallery .carousel-control-prev,
    .news-gallery .carousel-control-next {
        width: 40px;
    }
}

/* Projekta detail karusele — live: attēls dabīgā proporcijā (bez tumšā fona), punktiņi zem attēla */
.news-gallery.project-carousel {
    height: auto;
    margin-top: 0;
    background-color: transparent;
}

.news-gallery.project-carousel .carousel-item img {
    height: auto;
}

.news-gallery.project-carousel .carousel-indicators {
    position: static;
    margin-top: 12px;
    z-index: 15;
}

.news-gallery.project-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    padding: 0;
    margin: 0 3px;
    border-radius: 50%;
    background-color: #0f1420;
    border: 0;
}

.news-gallery.project-carousel .carousel-indicators .active {
    opacity: 1;
}

/* Breadcrumbs (child pages) */
.page-breadcrumb {
    font-size: 14px;
    color: #8a8f99;
    margin: 0 0 8px;
}
.page-breadcrumb a {
    color: var(--ast-global-color-0);
    text-decoration: none;
}
.page-breadcrumb a:hover {
    text-decoration: underline;
}
.page-breadcrumb span {
    margin: 0 6px;
    color: #c3c7cf;
}
.page-breadcrumb .page-breadcrumb-current {
    color: #555;
}

/* Lightbox */
img[data-lightbox] {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 15, 21, 0.92);
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
    color: #e9ecef;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
}

.lightbox-counter {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #adb5bd;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    padding: 11px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

@media (max-width: 767.98px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        padding: 9px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-img {
        max-width: 94vw;
    }
}

body.lightbox-open {
    overflow: hidden;
}

/* ---------- Noderīga informācija — hero (live: bg_2, h1 34px balts centrā) + 2-kolonnas sekcijas
   (live: fons #F5F5F5; h2 32px/400 #3a3a3a + 1px atdalītājs sadaļas krāsā; rindas — external-link ikona
   22px + 12px gap, teksts 20px/25px #4B4F58, rindu starps 12px) ---------- */
.nodi-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 300px;
    margin-top: -200px;
    padding: 196px 20px 56px;
    text-align: center;
}

.nodi-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    margin: 0;
}

.nodi-body {
    position: relative;
    background-color: #F5F5F5;
    padding: 70px 0 60px;
}

/* pelēkais fons stiepjas līdz footer — pārklāj main#content.content-section padding-bottom (60px) + .site-footer margin-top (60px) */
.nodi-body::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 120px;
    background-color: #F5F5F5;
}

.nodi-col {
    padding: 0 30px;
}

.nodi-section {
    --nodi-color: #AF006C;
}

.nodi-section.s-mk {
    --nodi-color: #1F32B5;
}

.nodi-section.s-cdzp {
    --nodi-color: #F76400;
}

.nodi-section.s-cesis {
    --nodi-color: #C73F3A;
}

.nodi-section h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    color: #3a3a3a;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--nodi-color);
}

.nodi-section + .nodi-section {
    margin-top: 88px;
}

.nodi-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.nodi-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 18px;
    line-height: 1.3;
    color: #4B4F58;
}

.nodi-section ul li + li {
    margin-top: 28px;
}

/* Ikona pēc saites veida (kā live, Font Awesome): ārēja saite / PDF fails / saite uz šo vietni */
.nodi-section ul li::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-color: var(--nodi-color);
    -webkit-mask: url('../img/icon-external-link.svg?v=2') center / contain no-repeat;
    mask: url('../img/icon-external-link.svg?v=2') center / contain no-repeat;
}

.nodi-section ul li:has(a[href$=".pdf" i])::before {
    -webkit-mask-image: url('../img/icon-file-pdf.svg?v=2');
    mask-image: url('../img/icon-file-pdf.svg?v=2');
}

.nodi-section ul li:has(a[href^="/"]:not([href$=".pdf" i]))::before {
    -webkit-mask-image: url('../img/icon-link.svg?v=2');
    mask-image: url('../img/icon-link.svg?v=2');
}

.nodi-section ul li a {
    color: inherit;
}

.nodi-section ul li a:hover {
    color: var(--nodi-color);
}

@media (max-width: 991.98px) {
    .nodi-hero {
        margin-top: -95px;
        padding: 130px 20px 40px;
    }

    .nodi-hero h1 {
        font-size: 30px;
    }

    .nodi-body {
        padding: 40px 0 60px;
    }

    .nodi-col {
        padding: 0 15px;
    }

    .nodi-col + .nodi-col {
        margin-top: 40px;
    }

    .nodi-section + .nodi-section {
        margin-top: 40px;
    }
}
