/*
Theme Name: Jāzepa Vīri v2
Theme URI: https://jazepaviri.lv
Author: Jāzepa Vīri
Description: Pielāgota WordPress tēma Jāzepa Vīru kopienas mājaslapai.
Version: 1.0
Text Domain: jazepaviri
*/

/* ==========================================
   BAZES STILI UN ATIESTATĪŠANA
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
}

/*====================
virs headera
==== */
.top-bar {
    background-color: #8b1d13; 
    color: #ffffff;
    padding: 1px 0;
    font-size: 0.875rem; /* ~14px */
    font-weight: 500;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end; /* Līdzina saturu pa labi */
    align-items: center;
}

.top-bar-contacts {
    display: flex;
    align-items: center;
    gap: 20px; /* Atstarpe starp tālruni un e-pastu */
}

.top-bar-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Atstarpe starp ikonu un tekstu */
    transition: opacity 0.2s ease;
}

.top-bar-link:hover {
    opacity: 0.85;
    color: #ffffff;
}

.top-bar-icon {
    flex-shrink: 0;
}



/* ==========================================
   NAVIGĀCIJA (HEADER)
   ========================================== */
.main-header {
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #eaeaea;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    color: #333333;
    font-size: 17px;
    font-weight: 400;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #8b2619;
}

.btn-calendar {
    display: inline-block;
    background-color: #606f7b;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.btn-calendar:hover {
    background-color: #4b5761;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.mobile-only-cta { 
    display: none; 
}

/* ==========================================
   HERO SLAIDERIS (DESKTOP)
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    background-color: #1a1a1a;
    overflow: hidden;
}

.slider-description {
    font-size: 1.25rem; /* ~20px */
    font-weight: 700; /* Biezs/Bold */
    text-transform: uppercase;
    letter-spacing: 0.2em; /* Lielas atstarpes starp burtiem */
    color: #ffffff;
    margin-top: 8px;
    margin-bottom: 24px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.slide.show {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    /* Kad slaids kļūst neaktīvs, tālummaiņa atgriežas ātri (sinhroni ar izbalēšanu), nevis uzreiz uzlec */
    transition: transform 0.8s ease-out;
}



/* Vieglā "Ken Burns" tālummaiņa aktīvajam slaidam — lēna tālummaiņa, kamēr slaids redzams */
.slide.show .slide-bg {
    transform: scale(1.08);
    transition: transform 6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .slide,
    .slide-bg {
        transition: none !important;
    }
}

.slide-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.slider-sub-title {
    display: block;
    font-size: 1.1rem; /* ~17-18px */
    font-weight: 700; /* Biezs/Bold */
    text-transform: uppercase;
    letter-spacing: 0.25em; /* Lielas atstarpes starp burtiem */
    color: #ffffff;
    margin-bottom: 12px;
}

.slider-main-title {
    font-size: 2.8rem; /* Liels, izteikts virsraksts */
    font-weight: 900; /* Extra bold / Black */
    line-height: 1.15; /* Ciešākas rindas */
    color: #ffffff;
    margin: 0 auto 16px auto;
    max-width: 800px; /* Nodrošina, ka teksts pārlūzt 2 rindās pareizajās vietās */
}

.btn-slider-join { 
    display: inline-block; 
    background-color: #8b2619; 
    color: #ffffff; 
    text-decoration: none; 
    padding: 14px 40px; 
    font-size: 14px; 
    font-weight: 700; 
    border-radius: 4px; 
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(139, 38, 25, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Punktu indikatori */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: #8b2619;
    border-color: #8b2619;
    transform: scale(1.2);
}

/* ==========================================
   PAR MUMS / KALPOŠANA (DESKTOP)
   ========================================== */
.about-section {
    background-color: #f0f4f8;
    padding: 20px 20px;
    width: 100%;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-block {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

/* Datora bilžu izkārtojums */
.desktop-about-img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: 550px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mobile-about-images-wrapper {
    display: none; /* Paslēpjam dubultās bildes uz datora */
}

.about-text-block {
    flex: 0 0 60%;
}

.about-text-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.about-sub-title {
    display: block;
    color: #8b2619;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.about-main-title {
    color: #1a1a1a;
    font-family: "Poppins", sans-serif;
    font-size: 45px;
    font-weight: 700;
    max-width: 450px;
    margin-bottom: 25px;
}

.about-quote-box {
    border-left: 2px solid #1a1a1a;
    padding-left: 20px;
    margin-bottom: 35px;
}

.about-quote-box p {
    color: #555555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.btn-about-more {
    display: inline-flex;
    align-items: center;
    background-color: #8b2619;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-about-more:hover {
    background-color: #a32f20;
    transform: translateY(-1px);
}

.arrow-icon {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.btn-about-more:hover .arrow-icon {
    transform: translateX(4px);
}

/* ==========================================
   SATURA SEKCIJA (APAKŠLAPĀM: PAR KUSTĪBU U.C.)
   ========================================== */
.page-content-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.page-content-container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.page-content-text {
    flex: 0 0 45%;
}

.page-content-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.page-content-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 25px;
}

.btn-page-join {
    display: inline-block;
    background-color: #8b2619;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 14px 26px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.btn-page-join:hover {
    background-color: #a32f20;
}

.page-content-image {
    flex: 0 0 50%;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
}

.page-content-image img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.page-content-extra {
    max-width: 1200px;
    margin: 0 auto;
}

.page-content-extra p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a4a;
}

/* ==========================================
   LIECĪBAS LAPA
   ========================================== */
.testimonials-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.testimonials-header::before,
.testimonials-header::after {
    content: '';
    height: 1px;
    width: 100px;
    background-color: #8b2619;
}

.testimonials-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

.testimonials-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    background-color: #f0f4f8;
    border-radius: 14px;
    padding: 40px;
}

.testimonials-intro-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.testimonials-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 14px;
}

.testimonials-intro p:last-child {
    margin-bottom: 0;
}

/* Liecību karuselis */
.testimonial-carousel {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-card {
    flex: 1;
    min-height: 260px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.2s ease;
}

.testimonial-quote-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #8b2619;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.7;
    color: #333333;
    font-style: italic;
    max-width: 560px;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testimonial-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.testimonial-location {
    font-size: 12px;
    font-weight: 700;
    color: #8b2619;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f4f8;
    border: none;
    color: #1a1a1a;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.testimonial-arrow:hover {
    background-color: #8b2619;
    color: #ffffff;
    transform: scale(1.08);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #8b2619;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.testimonial-dot:hover {
    background-color: rgba(139, 38, 25, 0.3);
}

.testimonial-dot.active {
    background-color: #8b2619;
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .testimonials-title {
        font-size: 26px;
    }

    .testimonials-header::before,
    .testimonials-header::after {
        width: 40px;
    }

    .testimonials-intro {
        padding: 26px 22px;
    }

    .testimonial-carousel {
        gap: 10px;
    }

    .testimonial-card {
        min-height: 240px;
        padding: 32px 18px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-arrow {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}


.events-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Virsraksta centrēšana ar līnijām */
.events-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
    width: 100%;
}

.events-header::before,
.events-header::after {
    content: '';
    height: 1px;
    width: 100px;
    background-color: #8b2619;
}

.events-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

/* Režģis un centrēšana */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* Kartītes dizains no tavas bildes */
.event-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    max-width: 380px; /* Lai smuki turas proporcijās */
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.event-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.event-card-content {
    padding: 25px;
    text-align: left;
}

.event-card-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.event-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.event-location {
    font-size: 14px;
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Atpakaļskaitīšanas stili */
.event-countdown {
    display: flex;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.countdown-item {
    background-color: #f5f7fa;
    border-radius: 50px; /* Apaļi bumbuļi */
    padding: 10px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 60px;
    aspect-ratio: 1 / 1;
}

.countdown-item strong {
    font-size: 18px;
    color: #1a1a1a;
    display: block;
    line-height: 1;
}

.countdown-item span {
    font-size: 10px;
    color: #777777;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==========================================
   FŪTERA PAMATA STILI (DESKTOP)
   ========================================== */
.main-footer {
    background-color: #1a1a1a; /* Tumši pelēks/melns fons kā bildē */
    color: #aaaaaa; /* Maigāka teksta krāsa lasāmībai */
    padding: 80px 20px 0 20px;
    font-family: 'Arial', sans-serif;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column {
    flex: 1;
}

/* 1. Kolonnas stili (About) */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 65px;
    filter: brightness(0) invert(1); /* Pārvērš melno logo par baltu, ja nepieciešams */
}

.footer-logo span {
    color: #ffffff;
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
}

.footer-logo strong {
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-contacts p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #cccccc;
}

.footer-contacts strong {
    color: #ffffff;
}

.footer-contacts i {
    color: #ffffff;
    margin-right: 8px;
    width: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #444444;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #8b2619;
    border-color: #8b2619;
}

/* 2. un 3. Kolonnas virsraksti */
.footer-column h3 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Saziņas formas stili */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    background-color: #0c0c0c; /* Ļoti tumšas ievades kastes */
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: #8b2619;
}

.footer-form textarea {
    resize: none;
}

.btn-footer-send {
    background-color: #ffffff;
    color: #1a1a1a;
    border: none;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start; /* Poga neizstiepjas, paliek kreisajā malā */
    transition: background-color 0.2s ease;
}

.btn-footer-send:hover {
    background-color: #e0e0e0;
}

/* Bloga tukšā kolonna */
.footer-blog-list {
    list-style: none;
}

/* Apakšējā autortiesību josla */
.footer-bottom {
    border-top: 1px solid #252525;
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #777777;
}

.footer-bottom a {
    color: #8b2619;
    text-decoration: none;
}

/* ==========================================
   GALERIJAS LAPA
   ========================================== */
.gallery-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.gallery-header::before,
.gallery-header::after {
    content: '';
    height: 1px;
    width: 100px;
    background-color: #8b2619;
}

.gallery-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

.gallery-intro {
    max-width: 650px;
    margin: 0 auto 60px auto;
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
}

.gallery-event {
    margin-bottom: 60px;
}

.gallery-event:last-child {
    margin-bottom: 0;
}

.gallery-event-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    padding-left: 16px;
    border-left: 4px solid #8b2619;
    margin-bottom: 22px;
}

.gallery-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.35);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-thumb:hover .gallery-thumb-overlay {
    opacity: 1;
}

/* Pilnekrāna bilžu skatītājs (Lightbox) */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

#lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 78vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-arrow:hover {
    background: rgba(139, 38, 25, 0.85);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 26px;
    }

    .gallery-header::before,
    .gallery-header::after {
        width: 40px;
    }

    .gallery-thumb-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 12px;
        right: 15px;
        font-size: 30px;
    }
}

.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: #333333;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f0f4f8;
    color: #8b2619;
}

.join-form-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.join-form-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.join-form-subtitle {
    display: block;
    color: #8b2619;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.join-form-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
}

.join-form-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 40px;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.join-form-row {
    display: flex;
    gap: 18px;
}

.join-form input,
.join-form textarea {
    width: 100%;
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease;
}

.join-form input:focus,
.join-form textarea:focus {
    border-color: #8b2619;
}

.join-form textarea {
    resize: none;
}

.btn-join-send {
    align-self: center;
    background-color: #8b2619;
    color: #ffffff;
    border: none;
    padding: 14px 45px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.btn-join-send:hover {
    background-color: #a32f20;
}

.contact-map-section {
    width: 100%;
    line-height: 0; /* noņem iframe apakšējo baltās joslas atstarpi */
}

.contact-map {
    display: block;
    width: 100%;
    height: 450px;
}

/* ==========================================
   KONTAKTU LAPA - INFO + FORMA
   ========================================== */
.contact-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.contact-info,
.contact-form-block {
    flex: 1;
}

.contact-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 35px;
}

.contact-person,
.contact-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-phone {
    margin-bottom: 35px;
}

.contact-person i,
.contact-phone i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    color: #8b2619;
    border-radius: 50%;
    font-size: 16px;
}

.contact-person span {
    font-size: 15px;
    color: #333333;
    line-height: 1.4;
}

.contact-phone span {
    font-size: 15px;
    color: #333333;
    font-weight: 700;
}

.contact-directions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-direction-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f4f8;
    color: #1a1a1a;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-direction-link i {
    color: #8b2619;
    font-size: 16px;
}

.contact-direction-link:hover {
    background-color: #8b2619;
    color: #ffffff;
}

.contact-direction-link:hover i {
    color: #ffffff;
}

/* Labā puse - forma */
.contact-form-title {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8b2619;
}

.contact-form textarea {
    resize: none;
}

.btn-contact-send {
    align-self: flex-start;
    background-color: #8b2619;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-contact-send:hover {
    background-color: #a32f20;
}

/* Datorā: rāda ar hover */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-dropdown:hover .dropdown-arrow,
    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
}

.lokacijas-section {
	padding: 40px 20px;
	background-color: #fcfcfc; 
}

.lokacijas-container {
	max-width: 900px;
	margin: 0 auto;
}

.lokacijas-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lokacija-box {
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 16px;
	padding: 32px 36px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Viegla, mīksta ēna apakšā */
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #222222;
}

.lokacija-nosaukums {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 800;
	color: #111111;
	line-height: 1.2;
}

.lokacija-rinda {
	margin: 0 0 8px 0;
	font-size: 16px;
	line-height: 1.5;
	color: #444444;
}

.lokacija-rinda strong {
	color: #111111;
	font-weight: 700;
}

.darbalaiks-rinda {
	margin-top: 4px;
	margin-bottom: 20px;
	font-size: 17px;
}

.darbalaiks-rinda .bullet {
	font-size: 20px;
	margin-right: 6px;
	display: inline-block;
}

/* Kontaktu rinda apakšā */
.kontakts-rinda {
	margin-bottom: 0;
}

.lokacijas-title {
	text-align: center;      /* Nocentrē tekstu pa vidu */
	font-size: 32px;         /* Padara lielāku (pēc noklusējuma parasti ir ap 24px) */
	font-weight: 700;        /* Izceļ trekninātu */
	margin-bottom: 30px;     /* Iedod smuku atstarpi līdz kartītei */
	color: #111111;          /* Tumšs, izteiksmīgs tonis */
}

/* ==========================================
   ADAPTĪVAIS SKATS (RESPONSIVE TELEFONIEM)
   ========================================== */
@media (max-width: 768px) {

    .contact-map {
        height: 280px;
    }

    .contact-container {
        flex-direction: column;
        gap: 45px;
        /* Pamatstilā ir align-items: flex-start. Datorā (rindā) tas līdzina
           kolonnas pa augšu — pareizi. Bet šeit virziens ir kolonna, tāpēc tā
           pati rinda sāk vilkt saturu pa KREISI un sašaurina to līdz satura
           platumam: forma bija 287px platumā 335px vietā. stretch liek abiem
           blokiem aizpildīt platumu, un forma nostājas simetriski. */
        align-items: stretch;
    }

    /* Bija justify-content: center — garais vārds aizpildīja rindu un izskatījās
       pa kreisi, bet īsais numurs redzami centrējās. flex-start līdzina abus. */
    .contact-person,
    .contact-phone {
        justify-content: flex-start;
        text-align: left;
    }

    .contact-directions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-title,
    .contact-text,
    .contact-form-title {
        text-align: center;
    }

    .btn-contact-send {
        align-self: center;
    }

    .join-form-title {
        font-size: 26px;
    }

    .join-form-subtitle {
        font-size: 18px;
    }

    .join-form-row {
        flex-direction: column;
        gap: 18px;
    }

	.dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li a {
        font-size: 16px;
        padding: 12px 0;
        color: #555555;
    }

    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
	
	.footer-container {
        flex-direction: column;
        gap: 50px;
        padding-bottom: 40px;
    }

    .footer-column {
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .btn-footer-send {
        align-self: center; /* Telefonā nocentrējam arī nosūtīšanas pogu */
        width: 100%; /* Pēc izvēles: poga pa visu platumu mobilajā ērtākai nospiešanai */
        max-width: 200px;
    }
	
	.events-header::before,
    .events-header::after {
        width: 40px;
    }

    .events-title {
        font-size: 26px;
    }

    .events-grid {
        flex-direction: column;
        align-items: center;
    }

    .event-card {
        width: 90%;
        max-width: 100%;
    }

    /* Satura sekcija (apakšlapām) mobilajā skatā */
    .page-content-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-content-text,
    .page-content-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .page-content-title {
        font-size: 24px;
    }

    /* Navigācijas drawer / Hamburger */
    .desktop-only-cta {
        display: none;
    }

    .mobile-only-cta {
        display: block;
        margin-top: 20px;
    }

    .hamburger-btn {
        display: flex;
    }

    /* Logo centrēšana telefonā */
    .header-container {
        position: relative;
        justify-content: flex-start;
        min-height: 90px;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
        padding: 90px 30px 30px 30px;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 1000;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .nav-menu ul li a {
        font-size: 18px;
        font-weight: 500;
        display: block;
        width: 100%;
    }

    .hamburger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Kvadrātveida Hero Slaideris */
    .hero-slider {
        height: 100vw;
        min-height: auto;
    }

    .slide-bg {
        height: 100vw;
    }

    .slide-content {
        padding: 20px;
        bottom: 30px;
    }

    .slider-sub-title {
        font-size: 11px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .slider-main-title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .btn-slider-join {
        padding: 10px 22px;
        font-size: 13px;
    }

    /* Pilnībā noslēpjam bultiņas telefonā */
    .slider-arrow {
        display: none;
    }

    /* "Mūsu kalpošana" mobilā sadaļa */
    .about-container {
        flex-direction: column;
        gap: 35px;
        padding: 0 20px;
    }

    .about-image-block, 
    .about-text-block {
        flex: 0 0 100%;
        width: 100%;
    }

    /* Bilžu apmaiņa */
    .desktop-about-img {
        display: none;
    }

    .mobile-about-images-wrapper {
        display: block;
        position: relative;
        width: 100%;
        max-width: 400px;
  
    }

    .mobile-img-base {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .mobile-img-overlay {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 48%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 12px;
        border: 4px solid #f0f4f8; /* Saskaņots ar jauno sekcijas fonu */
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    }

    /* Teksta centrēšana un izkārtojums */
    .about-text-block {
        text-align: center;
    }

    .about-main-title {
        font-size: 26px;
        line-height: 1.3;
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .about-text-block p,
    .about-description,
    .about-quote-box p {
        text-align: center;
        width: 100%;
        max-width: 100%;
        font-size: 15px;
        line-height: 1.6;
        word-wrap: break-word;
        white-space: normal;
    }

    /* Citāta kastes transformācija telefonā */
    .about-quote-box {
        border-left: none;
        padding-left: 0;
        margin: 0 0 25px 0;
    }

    /* Pogas centrēšana */
    .btn-about-more {
        display: inline-flex;
        margin: 0 auto;
        padding: 12px 28px;
        font-size: 14px;
    }
}
/* ===== Hero labojumi ===== */
/* Teksts un poga uz augšu, lai neaizsedz bildi (bija vertikāli centrā). */
.hero-slider .slide {
    align-items: flex-start;
}
.hero-slider .slide-content {
    padding-top: 15vh;
    bottom: auto;
}

/* Mobilajā teksts un poga lielāki (bija grūti saredzami). */
@media (max-width: 768px) {
    .hero-slider .slide-content {
        padding-top: 2vh;
        bottom: auto;
    }
.slider-sub-title {
        font-size: 0.85rem;
        letter-spacing: 0.15em; /* Nedaudz mazāka starpa, lai ietilptu */
        margin-bottom: 8px;
    }

    /* Galvenais virsraksts (H1) */
    .slider-main-title {
        font-size: 1.65rem; /* Pielāgots izmērs, lai labi lasāms uz telefona */
        line-height: 1.25;
        margin-bottom: 12px;
        padding: 0 10px; /* Drošības atstarpe no ekrāna malām */
    }

    /* Apakšējā apraksta rinda */
    .slider-description {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
        margin-top: 6px;
        margin-bottom: 16px;
    }
    .btn-slider-join {
        font-size: 16px;
        padding: 14px 34px;
    }
}

/* ===== Pasākumu tukšā ziņa ===== */
.events-empty {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b2619;
    padding: 30px 20px 10px;
    margin: 0;
}



/* ===== Augšējā sarkanā josla — telefona versija =====
   Datorā rādām "Tālrunis: +371 ...", telefonā vietas nepietiek, tāpēc
   uzrakstu saīsinām uz "Tel:" un samazinām fontu, ikonas un atstarpes. */
.lbl-short {
    display: none;
}

@media (max-width: 600px) {
    .top-bar {
        font-size: 0.72rem;
        padding: 3px 0; /* Nedaudz gaisa virs un zem joslas */
    }

    /* Josla lieto to pašu .header-container klasi, kas telefonā dabū
       min-height: 90px (domāts logo rindai) — tāpēc sarkanā josla izauga
       par 92px augstu bloku. Šeit to atceļam. */
    .top-bar-container {
        justify-content: center; /* Šaurā ekrānā centrā izskatās labāk nekā pa labi */
        min-height: 0;
        padding: 5px 12px;
    }

    .top-bar-contacts {
        gap: 12px;
    }

    .top-bar-link {
        gap: 4px;
        white-space: nowrap; /* Numurs nedalās pa vidu */
        padding: 4px 2px;    /* Lielāks pieskāriena laukums pirkstam */
    }

    .top-bar-icon {
        width: 13px;
        height: 13px;
    }

    .lbl-long {
        display: none;
    }

    .lbl-short {
        display: inline;
    }
}

/* Pavisam šauri ekrāni — arī "Tel:" vairs neietilpst.
   Slieksnis 340px, nevis 380px: 375px ir visizplatītākais telefona platums
   (iPhone SE/13 mini), un tur "Tel:" vēl ērti ietilpst. */
@media (max-width: 340px) {
    .top-bar {
        font-size: 0.68rem;
    }

    .lbl-short {
        display: none; /* Ikona jau pasaka, ka tas ir telefons */
    }
}

/* ===== Botu slazds (honeypot) =====
   Lauks "Neaizpildiet šo lauku" JĀPALIEK HTML kodā — tas atsijā surogātpastu.
   Cilvēkam to nedrīkst rādīt, tāpēc aizbīdām ārpus ekrāna.

   Kāpēc nelietojam display: none vai type="hidden"? Boti tādus laukus prot
   atpazīt un izlaiž. Lauks, kas HTML kodā izskatās pilnīgi parasts un tikai
   atrodas ārpus redzamā laukuma, botu apmāna — tas to aizpilda un nodod sevi. */
.eltr-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
