/* CSS Reset & Basics */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    line-height: 1.6;
}

@font-face {
    font-family: 'Calibri';
    src: url('/fonts/calibri.eot');
    /* IE9 Compat Modes */
    src: url('/fonts/calibri.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('/fonts/calibri.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('/fonts/calibri.svg#svgFontName') format('svg');
    /* Legacy iOS */
}

/* Layout Containers */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

/* Palielināt satura platumu platos ekrānos */
@media (min-width: 1600px) {
    .main-container {
        max-width: 1600px;
        padding: 0 20px;
    }
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
}

.column-left,
.column-center,
.column-facebook,
.column-right {
    flex: 1;
    min-width: 280px;
}

.column-left {
    flex: 1.2;
}

.column-center {
    flex: 1.05;
    /* Slightly narrower center to give more room to the left */
    min-width: 0;
}

.column-facebook {
    flex: 0.9;
    min-width: 250px;
    max-width: 400px;
}

/* Ensure Facebook iframe doesn't overflow column */
.column-center iframe,
.column-facebook iframe {
    max-width: 100%;
    box-sizing: border-box;
}

.column-right {
    flex: 0.8;
    max-width: 200px;
    min-width: 180px;
}

.column-right img {
    max-width: 150px;
    height: auto;
}

.homepage-mobile-image {
    display: none;
}

/* Typography & Links */
.logs p {
    font-weight: normal;
    font-size: 16px;
    color: #000000;
    margin-bottom: 15px;
}

.logs a {
    font-weight: bold;
    color: #000064;
    letter-spacing: 1px;
    text-decoration: none;
}

.logs a:hover {
    color: red;
}

.logs h1 {
    margin: 0;
    padding: 8px 10px 2px 10px;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 1px;
    color: #ffffff;
    background-image: linear-gradient(to right, #194664, #AA2841, #FFC80F);
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Mazāka atstarpe jaunumu sadaļai */
.column-center .block:first-child h1 {
    margin-bottom: 8px;
    padding-bottom: 2px;
}

.column-center .block:first-child .news-title {
    margin-top: 0;
    margin-bottom: 14px;
}

/* Izlīdzināt h1 elementus visās kolonnās vienā līmenī */
.column-left h1:first-of-type,
.column-center h1:first-of-type,
.column-facebook h1:first-of-type,
.column-right h1:first-of-type {
    margin-top: 16px;
}

/* Samazināt padding-top uz h1 vidējā un labajā kolonnā */
.column-center h1:first-of-type,
.column-facebook h1:first-of-type,
.column-right h1:first-of-type {
    padding-top: 8px;
    padding-bottom: 2px;
}

.column-right h1 {
    padding-left: 8px;
    padding-right: 8px;
}

.logs h2 {
    font-weight: bold;
    font-size: 22px;
    color: #004040;
}

.logs h3 {
    margin: 0 0 12px 0;
}

.logs .news-title {
    text-align: center;
    margin: 0 0 14px 0;
    font-weight: bold;
}

.logs .news-text {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #222222;
    line-height: 1.5;
}

.logs .news-links {
    margin: 0 0 18px 0;
    text-align: center;
}

.logs .news-image {
    text-align: center;
    margin: 6px 0 0 0;
}

.logs .news-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.meridians-approach {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.8fr);
    gap: 24px;
    align-items: start;
    margin: 18px 0 24px 0;
    padding: 18px;
    border-left: 5px solid #aa2841;
    border-radius: 8px;
    background: #f4f8fb;
}

.meridians-approach__place h3 {
    margin-top: 0;
    color: #15354d;
}

.meridians-approach__place .news-text:last-child {
    margin-bottom: 0;
}

.logs .meridians-approach__map {
    margin: 0;
}

.logs .meridians-approach__map img {
    display: block;
    width: 100%;
    max-width: 835px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(21, 53, 77, 0.14);
}

.meridians-approach__map figcaption {
    margin-top: 8px;
    color: #53616b;
    font-size: 14px;
    line-height: 1.4;
}

.logs .news-hero-image {
    text-align: center;
    margin: 8px 0 14px 0;
}

.logs .news-hero-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.logs .interreg-hero-image img {
    max-width: 860px;
}

.meness-page .column-center {
    flex: 1;
    max-width: none;
}

.meness-nolikums {
    max-width: none;
    margin: 0;
}

.meness-section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    margin: 0 0 18px 0;
    align-items: start;
}

.meness-page .logs .meness-section h3 {
    margin: 0;
    color: #000000;
    font-size: 18px;
    line-height: 1.25;
}

.meness-section p {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.meness-section ul {
    margin: 0 0 8px 0;
    padding-left: 18px;
}

.meness-section li {
    font-size: 18px;
    line-height: 1.3;
}

.meness-map {
    margin: 18px 0 0 0;
}

.meness-map img {
    display: block;
    width: min(100%, 320px);
    height: auto;
}

.meness-page .logs h2 {
    margin: 0 0 14px 0;
    font-size: 29px;
    line-height: 1.15;
    color: #12344d;
}

.meness-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
    margin: 8px 0 24px 0;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #dbe6ee;
}

.meness-kicker {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8f2744;
}

.meness-hero-card__content .news-text {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.65;
}

.meness-hero-card__image {
    margin: 0;
}

.meness-hero-card__image img {
    max-width: 360px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(18, 52, 77, 0.10);
}

.meness-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.meness-fact {
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbe6ee;
}

.meness-fact__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #657889;
}

.meness-fact__value {
    font-size: 16px;
    font-weight: bold;
    color: #12344d;
}

.meness-supporters {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #dbe6ee;
}

.meness-supporters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
    gap: 18px;
    align-items: stretch;
}

.meness-supporter {
    display: flex;
    min-height: 126px;
    padding: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 52, 77, 0.07);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.meness-supporter:hover,
.meness-supporter:focus-visible {
    border-color: #a9bfce;
    box-shadow: 0 9px 22px rgba(18, 52, 77, 0.13);
    transform: translateY(-2px);
}

.meness-supporter img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 112px;
    height: auto;
    object-fit: contain;
}

.meness-supporter--portrait img {
    max-height: 150px;
}

.meness-supporter--unlinked {
    cursor: default;
}

.meness-section .cesu-rudens-nature__content {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.cesu-rudens-nature__sign {
    margin: 0;
    text-align: center;
}

.cesu-rudens-nature__sign a {
    display: block;
}

.cesu-rudens-nature__sign img {
    display: block;
    width: min(100%, 135px);
    height: auto;
    margin: 0 auto;
}

.meness-section .cesu-rudens-nature__notice {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid #4eac38;
    background: #f4f9f1;
    color: #15354d;
    font-size: 20px;
    line-height: 1.45;
}

.interreg-page .logs .news-text {
    text-align: justify;
}

.projekti-page .column-center {
    padding-top: 28px;
}

.projekti-page #augsa {
    display: block;
    scroll-margin-top: 48px;
}

.meridians-season-page .column-center {
    flex: 1;
    max-width: none;
}

.meridians-season-page .logs h2 {
    margin: 0 0 14px 0;
    font-size: 30px;
    line-height: 1.12;
    color: #15354d;
}

.meridians-season-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: center;
    margin: 8px 0 24px 0;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4fbff 0%, #fff6e3 100%);
    border: 1px solid #d8e5ee;
}

.night-training-hero,
.meridians-season-hero--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.night-training-signup {
    margin: 18px 0 0 0;
    padding: 18px 20px;
    border-radius: 10px;
    background: #fff8eb;
    border: 2px solid #f0a40c;
    color: #102333;
    text-align: center;
}

.night-training-signup__label {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: bold;
}

.night-training-signup__button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    background: #f0a40c;
    color: #102333;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
}

.night-training-signup__button:hover {
    background: #ffbd31;
    color: #102333;
}

.night-training-signup__note {
    margin: 12px 0 0 0;
    font-size: 14px;
    color: #374b5c;
}

.onedela-image {
    margin: 0 0 22px 0;
}

.onedela-image img {
    max-width: 360px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(21, 53, 77, 0.12);
}

.meridians-season-kicker {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8f2744;
}

.meridians-season-hero__content .news-text {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.65;
}

.meridians-season-hero__image {
    margin: 0;
}

.meridians-season-hero__image img {
    max-width: 420px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(21, 53, 77, 0.12);
}

.meridians-season-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.meridians-season-fact {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dde7ee;
}

.meridians-season-fact__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c7f8c;
}

.meridians-season-fact__value {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    color: #20323f;
}

.meridians-season-highlight {
    margin: 10px 0 24px 0;
    padding: 18px 20px;
    border-left: 5px solid #f0a40c;
    border-radius: 10px;
    background: #fff8eb;
}

.meridians-season-highlight .news-text {
    margin: 0;
}

.meridians-season-list {
    margin: 0 0 22px 0;
    padding-left: 22px;
}

.meridians-season-list li {
    margin-bottom: 10px;
    color: #222222;
    line-height: 1.55;
}

.season-awards { margin: 32px 0; }
.season-awards h4 { margin: 28px 0 10px; font-size: 1.2em; }
.season-awards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.season-awards__card { background: #f6f8f3; border: 1px solid #dce6d5; border-radius: 10px; padding: 16px 18px; }
.season-awards__card h5 { margin: 0 0 10px; font-size: 1.1em; color: #315c31; }
.season-awards__card h5 span { float: right; font-size: .75em; font-weight: normal; color: #59685a; }
.season-awards__card ul, .season-awards__card ol { margin: 0; padding-left: 20px; }
.season-awards__card li { margin: 5px 0; line-height: 1.4; }
.season-awards__card .season-awards__medals { list-style: none; padding-left: 0; }

.meridians-season-table-wrap {
    margin: 8px 0 24px 0;
    max-width: 620px;
    overflow-x: auto;
}

.meridians-season-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d9e3eb;
}

.meridians-season-table th:nth-child(1),
.meridians-season-table td:nth-child(1) {
    width: 13%;
}

.meridians-season-table th:nth-child(2),
.meridians-season-table td:nth-child(2) {
    width: 32%;
}

.meridians-season-table th:nth-child(3),
.meridians-season-table td:nth-child(3) {
    width: 22%;
}

.meridians-season-table th,
.meridians-season-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5edf3;
}

.meridians-season-table th {
    background: #194664;
    color: #ffffff;
}

.meridians-season-table tr:nth-child(even) td {
    background: #f7fafc;
}

.gaujas-ziema-page .column-center {
    flex: 1;
    max-width: none;
}

.gaujas-ziema-snow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.gaujas-ziema-snow span {
    position: absolute;
    top: -12vh;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
    animation: gaujas-ziema-snowfall linear infinite;
}

.gaujas-ziema-snow span:nth-child(1)  { left: 4%;  width: 5px;  height: 5px;  animation-duration: 12s; animation-delay: -1s;  --drift: 22px; }
.gaujas-ziema-snow span:nth-child(2)  { left: 11%; width: 7px;  height: 7px;  animation-duration: 15s; animation-delay: -6s;  --drift: -18px; }
.gaujas-ziema-snow span:nth-child(3)  { left: 18%; width: 4px;  height: 4px;  animation-duration: 10s; animation-delay: -3s;  --drift: 16px; }
.gaujas-ziema-snow span:nth-child(4)  { left: 27%; width: 8px;  height: 8px;  animation-duration: 16s; animation-delay: -8s;  --drift: -24px; }
.gaujas-ziema-snow span:nth-child(5)  { left: 34%; width: 6px;  height: 6px;  animation-duration: 11s; animation-delay: -2s;  --drift: 18px; }
.gaujas-ziema-snow span:nth-child(6)  { left: 41%; width: 9px;  height: 9px;  animation-duration: 17s; animation-delay: -10s; --drift: -14px; }
.gaujas-ziema-snow span:nth-child(7)  { left: 49%; width: 5px;  height: 5px;  animation-duration: 13s; animation-delay: -7s;  --drift: 20px; }
.gaujas-ziema-snow span:nth-child(8)  { left: 57%; width: 7px;  height: 7px;  animation-duration: 14s; animation-delay: -4s;  --drift: -20px; }
.gaujas-ziema-snow span:nth-child(9)  { left: 63%; width: 4px;  height: 4px;  animation-duration: 9s;  animation-delay: -5s;  --drift: 14px; }
.gaujas-ziema-snow span:nth-child(10) { left: 69%; width: 8px;  height: 8px;  animation-duration: 18s; animation-delay: -12s; --drift: -28px; }
.gaujas-ziema-snow span:nth-child(11) { left: 74%; width: 6px;  height: 6px;  animation-duration: 12s; animation-delay: -9s;  --drift: 18px; }
.gaujas-ziema-snow span:nth-child(12) { left: 81%; width: 5px;  height: 5px;  animation-duration: 10s; animation-delay: -1.5s; --drift: -12px; }
.gaujas-ziema-snow span:nth-child(13) { left: 86%; width: 9px;  height: 9px;  animation-duration: 19s; animation-delay: -11s; --drift: 24px; }
.gaujas-ziema-snow span:nth-child(14) { left: 91%; width: 6px;  height: 6px;  animation-duration: 13s; animation-delay: -6.5s; --drift: -16px; }
.gaujas-ziema-snow span:nth-child(15) { left: 96%; width: 4px;  height: 4px;  animation-duration: 8s;  animation-delay: -2.5s; --drift: 10px; }
.gaujas-ziema-snow span:nth-child(16) { left: 52%; width: 10px; height: 10px; animation-duration: 20s; animation-delay: -14s; --drift: -22px; }

@keyframes gaujas-ziema-snowfall {
    0% {
        transform: translate3d(0, -12vh, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--drift, 18px), 110vh, 0);
        opacity: 0.9;
    }
}

.gaujas-ziema-snow--winter span {
    background: radial-gradient(circle at 35% 30%, #fff, #e4f2f8);
    box-shadow: 0 0 5px rgba(79, 133, 160, 0.35);
    animation-name: gaujas-ziema-winter-wind;
}

.gaujas-ziema-snow--winter span:nth-child(3n) {
    filter: blur(1px);
}

@keyframes gaujas-ziema-winter-wind {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    12% {
        opacity: 0.7;
    }
    30% {
        transform: translate3d(var(--drift, 20px), 36vh, 0);
    }
    60% {
        transform: translate3d(calc(var(--drift, 20px) * -1), 72vh, 0);
    }
    85% {
        opacity: 0.65;
    }
    100% {
        transform: translate3d(var(--drift, 20px), 115vh, 0);
        opacity: 0;
    }
}

@media (max-width: 650px) {
    .gaujas-ziema-snow--winter span:nth-child(even) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce), print {
    .gaujas-ziema-snow--winter {
        display: none;
    }
}

.cesu-rudens-leaves {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.cesu-rudens-leaves span {
    position: absolute;
    top: -12vh;
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: var(--leaf-size, 22px);
    line-height: 1;
    opacity: 0;
    will-change: transform, opacity;
    animation: cesu-rudens-leaffall linear infinite;
}

.cesu-rudens-leaves span:nth-child(1)  { left: 4%;  --leaf-size: 18px; animation-duration: 20s; animation-delay: -3s;  --drift: 80px;  --turn: 520deg; }
.cesu-rudens-leaves span:nth-child(2)  { left: 13%; --leaf-size: 24px; animation-duration: 25s; animation-delay: -11s; --drift: -110px; --turn: -620deg; }
.cesu-rudens-leaves span:nth-child(3)  { left: 22%; --leaf-size: 16px; animation-duration: 18s; animation-delay: -7s;  --drift: 65px;  --turn: 460deg; }
.cesu-rudens-leaves span:nth-child(4)  { left: 31%; --leaf-size: 22px; animation-duration: 23s; animation-delay: -15s; --drift: -90px;  --turn: -540deg; }
.cesu-rudens-leaves span:nth-child(5)  { left: 40%; --leaf-size: 19px; animation-duration: 21s; animation-delay: -5s;  --drift: 105px; --turn: 600deg; }
.cesu-rudens-leaves span:nth-child(6)  { left: 50%; --leaf-size: 26px; animation-duration: 27s; animation-delay: -19s; --drift: -75px;  --turn: -680deg; }
.cesu-rudens-leaves span:nth-child(7)  { left: 59%; --leaf-size: 17px; animation-duration: 19s; animation-delay: -9s;  --drift: 85px;  --turn: 500deg; }
.cesu-rudens-leaves span:nth-child(8)  { left: 67%; --leaf-size: 23px; animation-duration: 24s; animation-delay: -13s; --drift: -100px; --turn: -570deg; }
.cesu-rudens-leaves span:nth-child(9)  { left: 75%; --leaf-size: 18px; animation-duration: 22s; animation-delay: -2s;  --drift: 70px;  --turn: 550deg; }
.cesu-rudens-leaves span:nth-child(10) { left: 84%; --leaf-size: 25px; animation-duration: 26s; animation-delay: -17s; --drift: -95px;  --turn: -650deg; }
.cesu-rudens-leaves span:nth-child(11) { left: 91%; --leaf-size: 16px; animation-duration: 18s; animation-delay: -12s; --drift: 60px;  --turn: 430deg; }
.cesu-rudens-leaves span:nth-child(12) { left: 97%; --leaf-size: 21px; animation-duration: 23s; animation-delay: -8s;  --drift: -80px;  --turn: -510deg; }

@keyframes cesu-rudens-leaffall {
    0% {
        transform: translate3d(0, -12vh, 0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.9;
    }
    88% {
        opacity: 0.85;
    }
    100% {
        transform: translate3d(var(--drift, 75px), 110vh, 0) rotate(var(--turn, 540deg));
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cesu-rudens-leaves {
        display: none;
    }
}

.gaujas-ziema-page .logs h2 {
    margin: 0 0 14px 0;
    font-size: 29px;
    line-height: 1.15;
    color: #12344d;
}

.gaujas-ziema-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
    margin: 8px 0 24px 0;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #dbe6ee;
}

.gaujas-ziema-kicker {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8f2744;
}

.gaujas-ziema-hero__content .news-text {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.65;
}

.gaujas-ziema-hero__image {
    margin: 0;
}

.gaujas-ziema-hero__image img {
    max-width: 360px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(18, 52, 77, 0.10);
}

.gaujas-ziema-facts {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.gaujas-ziema-fact {
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dde7ee;
}

.gaujas-ziema-fact__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d7f8c;
}

.gaujas-ziema-fact__value {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    color: #20323f;
}

.gaujas-ziema-highlight {
    margin: 0 0 24px 0;
    padding: 16px 18px;
    border-left: 4px solid #aa2841;
    border-radius: 10px;
    background: #fffaf0;
}

.gaujas-ziema-highlight .news-text {
    margin: 0;
}

.gaujas-ziema-count {
    display: block;
    margin: 0 0 14px 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #12344d;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
}

.gaujas-ziema-page .logs h3 {
    margin: 8px 0 16px 0;
    font-size: 23px;
    color: #12344d;
}

.gaujas-ziema-table-wrap {
    margin: 0 0 20px 0;
    overflow-x: auto;
}

.gaujas-ziema-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #dbe5ec;
}

.gaujas-ziema-table th,
.gaujas-ziema-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e3ebf1;
    text-align: left;
    font-size: 15px;
}

.gaujas-ziema-table th {
    background: #edf4f8;
    color: #12344d;
    font-weight: bold;
}

.gaujas-ziema-table tbody tr:nth-child(even) {
    background: #f9fcfe;
}

.gaujas-ziema-table tbody tr:hover {
    background: #f2f7fb;
}

.gaujas-ziema-table td:nth-child(2),
.gaujas-ziema-table td:nth-child(3),
.gaujas-ziema-table th:nth-child(2),
.gaujas-ziema-table th:nth-child(3) {
    width: 150px;
    text-align: center;
}

.logs .news-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.logs .news-gallery .news-image {
    margin: 0;
}

.logs .news-gallery .news-image img {
    max-width: 100%;
}

.logs .news-text-with-image {
    overflow: hidden;
}

.logs .news-related-event {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d9e1e5;
}

.logs .news-image-inline {
    float: left;
    margin: 0 12px 6px 0;
    display: block;
    max-width: 200px;
}

.logs .news-image-inline img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

.board-access-form {
    margin: 0 0 18px 0;
    padding: 16px;
    border: 1px solid #d7dbe3;
    border-radius: 4px;
    background: #f7f9fc;
}

.board-access-form__label {
    display: block;
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #194664;
}

.board-access-form__row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.board-access-form__input {
    flex: 1 1 260px;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid #9ea9bb;
    border-radius: 4px;
    font: inherit;
    text-transform: uppercase;
}

.board-access-form__submit {
    border: 0;
    border-radius: 4px;
    padding: 10px 16px;
    background: #194664;
    color: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.board-access-form__submit:hover {
    background: #aa2841;
}

.board-access-message {
    margin: 0 0 18px 0;
    padding: 10px 12px;
    border-radius: 4px;
}

.board-access-message--error {
    background: #fde8e8;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.board-document-list {
    margin: 0 0 15px 0;
    padding-left: 22px;
}

.board-document-list li {
    margin-bottom: 16px;
    color: #000000;
    font-size: 16px;
}

.board-document-list__form {
    display: inline;
    margin: 0;
}

.board-document-list__link {
    font-weight: bold;
}

.interreg-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 14px 0 4px 0;
}

.interreg-logo img {
    width: auto;
    max-width: 200px;
    max-height: 100px;
    height: auto;
}

.interreg-logo-partner img {
    max-width: 120px;
    max-height: 70px;
}

.interreg-logo-wide img {
    max-width: 420px;
}

.interreg-logo-wide a {
    display: inline-flex;
    align-items: center;
}

.interreg-logo-kobras,
.interreg-camp-logos .kobras-brand {
    display: flex;
    align-items: center;
}

.kobras-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #70501e;
    line-height: 1;
    text-align: left;
    text-decoration: none;
}

.kobras-brand img {
    width: 78px !important;
    max-width: 78px !important;
    max-height: none !important;
    height: auto;
}

.kobras-brand small,
.kobras-brand strong {
    display: block;
}

.kobras-brand small {
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kobras-brand strong {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.interreg-camp-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 26px 0 4px;
}

.interreg-camp-logos > img {
    width: 92px;
    height: auto;
}

.interreg-program-logo-link {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.interreg-camp-logos > a:not(.kobras-brand) img {
    width: 270px;
    max-width: 100%;
    height: auto;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    width: 100%;
}

.logo-container {
    text-align: left;
    padding: 0;
    margin: 0;
    overflow: hidden;
    /* Zilais fons labajā pusē, ja ekrāns ir platāks par bildi */
    background-color: #194664;
    position: relative;
}

.logo-container img {
    display: block;
    height: auto;
    /* Lielā versija - fiksēts platums, nogriešana no labās puses */
    width: 1200px;
    max-width: none;
}

/* Ja ekrāns ir šaurāks par bildi, bilde tiek nogriezta no labās puses */
/* Ja ekrāns ir platāks par bildi, labajā pusē ir zilais fons */

/* Navigation Menu */
.ddcolortabs {
    padding: 0;
    margin: 0;
    width: 100%;
    background: #194664;
    min-height: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ddcolortabs ul {
    font-size: 20px;
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
}

.ddcolortabs li {
    display: inline;
    padding: 0;
    text-transform: uppercase;
}

.ddcolortabs a {
    display: block;
    color: white;
    background: #194664;
    padding: 3px 14px;
    text-decoration: none;
    letter-spacing: 1.2px;
    transition: background-color 0.3s;
}

.ddcolortabs a:hover {
    background-color: #194664;
    color: #AA2841;
}

.ddcolortabs .selected a {
    background-color: #194664;
}

/* Hide submenu arrows on desktop */
.submenu-arrow {
    display: none;
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    order: -1;
}

/* Show hamburger menu when screen is too narrow for all items */
@media (max-width: 1200px) {
    .ddcolortabs {
        flex-wrap: nowrap;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        flex-shrink: 0;
        width: 100%;
        text-align: left;
        background-color: rgba(25, 70, 100, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-weight: 700;
        padding: 10px;
    }
    
    .menu-toggle.open {
        background-color: rgba(25, 70, 100, 0.4);
    }
    
    .ddcolortabs ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #194664;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .ddcolortabs ul.active {
        display: flex;
    }
    
    .ddcolortabs li {
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .ddcolortabs a {
        padding: 12px;
        font-weight: 700;
        width: 100%;
        box-sizing: border-box;
        font-size: 20px;
        font-family: 'Calibri', sans-serif;
    }
    
    /* Ensure dropdown menus work correctly in hamburger mode */
    .dropmenudiv_a {
        position: static !important;
        visibility: visible !important;
        width: 100% !important;
        display: none;
        border: none !important;
        border-top-width: 0 !important;
        background-color: rgba(10, 40, 60, 0.95) !important;
    }
    
    .dropmenudiv_a.submenu-active {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .dropmenudiv_a a {
        padding: 10px 12px 10px 32px !important;
        color: #ffffff !important;
        background-color: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        font-size: 18px;
        font-weight: 400;
        text-transform: none;
        text-indent: 0 !important;
    }
    
    .dropmenudiv_a a:hover {
        background-color: rgba(170, 40, 65, 0.5) !important;
        color: #FFC80F !important;
    }
    
    .dropmenudiv_a a:last-child {
        border-bottom: none !important;
    }

    /* Prevent submenu links from wrapping */
    .dropmenudiv_a a {
        white-space: nowrap;
    }

    /* Show submenu arrows in hamburger mode */
    .ddcolortabs li .submenu-arrow {
        display: inline-block !important;
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 14px !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        transition: transform 0.2s ease;
    }
    
    .ddcolortabs li.submenu-open > a .submenu-arrow {
        transform: translateY(-50%) rotate(0deg);
    }

    .ddcolortabs li:has(.submenu-arrow) > a {
        position: relative !important;
        padding-right: 35px !important;
    }

    .ddcolortabs li.submenu-open > a {
        color: #FFC80F;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #000064;
}

/* Dropdown Menu (Legacy support, might need JS adjustment) */
.dropmenudiv_a {
    position: absolute;
    top: 0;
    border: 1px solid #000064;
    border-top-width: 8px;
    border-bottom-width: 0;
    font-size: 20px;
    line-height: 18px;
    z-index: 100;
    background-color: white !important;
    width: 230px;
    visibility: hidden;
}

.dropmenudiv_a a {
    width: auto;
    display: block;
    text-indent: 5px;
    border-top: 0 solid #678b3f;
    border-bottom: 1px solid #678b3f;
    padding: 2px 0;
    text-decoration: none;
    color: #000064 !important;
    background-color: transparent !important;
    text-transform: none !important;
    font-weight: normal !important;
    white-space: nowrap;
}

.dropmenudiv_a a:hover {
    background-color: #194664 !important;
    color: #FFC80F !important;
}

/* Map sizing */
.column-left .block:nth-child(4) table,
.column-left .block:nth-child(4) #map {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure map table doesn't overflow in desktop version */
.block.map-block table {
    max-width: 100% !important;
    box-sizing: border-box !important;
    table-layout: fixed !important;
}

.block.map-block #map {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    .column-left .block:nth-child(4) table,
    .column-left .block:nth-child(4) #map {
        min-width: 0;
        max-width: 100% !important;
    }
    
    /* Hide small Gaujas Ziema image on desktop */
    .column-left .block:nth-child(5) p:first-child {
        display: none;
    }
}

/* 4 kolonnu izkārtojums tikai ļoti platos ekrānos */
@media (min-width: 1800px) {
    /* Show Facebook column on very wide screens */
    .column-facebook {
        display: block;
    }
    
    /* Hide Facebook in center column on very wide screens */
    .facebook-in-center {
        display: none;
    }
}

/* 3 kolonnu izkārtojums vidējos un lielos ekrānos */
/* Vidējā izmēra ekrāniem - 2 kolonnas */
@media (min-width: 769px) and (max-width: 1199px) {
    /* Hide Facebook column on medium screens */
    .column-facebook {
        display: none;
    }
    
    /* Show Facebook in center column on medium screens */
    .facebook-in-center {
        display: block;
    }
    
    /* Content wrapper ar flex-wrap, lai column-right varētu būt apakšā */
    .content-wrapper {
        flex-wrap: wrap;
    }
    
    /* 2 kolonnu izkārtojums - column-left un column-center */
    .column-left {
        flex: 1;
        max-width: 50%;
        min-width: 0;
    }
    
    .column-center {
        flex: 1;
        max-width: 50%;
        min-width: 0;
    }

    .leader-page .column-center,
    .interreg-page .column-center,
    .meness-page .column-center,
    .nolikums-page .column-center {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    /* column-right apakšā - pilns platums ar "Atbalstītāji" un "Partneri" */
    .column-right {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 20px;
        margin-top: 20px;
    }
    
    .column-right .block {
        flex: 1;
        max-width: calc(50% - 10px);
        min-width: 0;
    }
    
    /* Samazināt logo izmēru 2 kolonnu skatā */
    .column-right img {
        max-width: 100px !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Lielākiem ekrāniem - 3 kolonnas */
@media (min-width: 1200px) and (max-width: 1799px) {
    /* Hide Facebook column on large screens */
    .column-facebook {
        display: none;
    }
    
    /* Show Facebook in center column on large screens */
    .facebook-in-center {
        display: block;
    }
}

@media (max-width: 768px) {
    /* Mobilajā versijā - mazākā bilde (750px) */
    .logo-container img {
        width: 750px;
    }
    
    .main-container {
        padding: 0 12px;
    }

    .logs .news-gallery {
        grid-template-columns: 1fr;
    }

    .meridians-season-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }

    .meridians-approach {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 14px;
        padding: 14px;
    }

    .meridians-season-page .logs h2 {
        font-size: 26px;
    }

    .meridians-season-hero__content .news-text {
        font-size: 17px;
    }

    .meridians-season-facts {
        grid-template-columns: 1fr;
    }

    .meness-nolikums {
        max-width: 100%;
    }

    .meness-hero-card {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }

    .meness-page .logs h2 {
        font-size: 26px;
    }

    .meness-hero-card__content .news-text {
        font-size: 17px;
    }

    .meness-facts {
        grid-template-columns: 1fr;
    }

    .meness-section {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 20px;
    }

    .meness-section .cesu-rudens-nature__content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cesu-rudens-nature__sign img {
        width: min(100%, 120px);
    }

    .meness-section .cesu-rudens-nature__notice {
        padding: 14px 16px;
        font-size: 18px;
    }

    .meness-page .logs .meness-section h3,
    .meness-section p,
    .meness-section li {
        font-size: 17px;
    }

    .meridians-season-table th,
    .meridians-season-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .gaujas-ziema-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }

    .gaujas-ziema-page .logs h2 {
        font-size: 26px;
    }

    .gaujas-ziema-hero__content .news-text {
        font-size: 17px;
    }

    .gaujas-ziema-table th,
    .gaujas-ziema-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .gaujas-ziema-table td:nth-child(2),
    .gaujas-ziema-table td:nth-child(3),
    .gaujas-ziema-table th:nth-child(2),
    .gaujas-ziema-table th:nth-child(3) {
        width: 110px;
    }

    .interreg-logo img {
        max-width: 150px;
        max-height: 80px;
    }

    .interreg-logo-partner img {
        max-width: 92px;
        max-height: 56px;
    }

    .interreg-logo-wide img {
        max-width: 320px;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-top: 0px;
    }

    .column-left,
    .column-center,
    .column-facebook,
    .column-right {
        display: contents;
    }

    .logs h1 {
        font-size: 24px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .logs p,
    .logs .news-text {
        font-size: 18px;
    }
    
    /* Palielināt arī citus teksta elementus mobilajā versijā */
    body {
        font-size: 18px;
    }
    
    .logs h2 {
        font-size: 22px;
    }
    
    .ddcolortabs a {
        font-size: 22px;
    }

    .logs .block {
        width: 100%;
        flex: 1 1 100%;
        display: block;
        margin: 0;
        padding: 0;
    }

    .homepage-mobile-image {
        display: block;
    }
    
    /* h1 margin mobilajā versijā - vienāda atstarpe pēc visiem h1 */
    .logs h1 {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .valde-page .logs h1:first-of-type,
    .kauss-page .logs h1:first-of-type {
        margin-top: 8px !important;
    }
    
    /* Paragraph margin mobilajā versijā - atstarpe starp rindām */
    .logs p {
        margin-top: 4px !important;
        margin-bottom: 12px !important;
    }
    
    /* Visu paragraph margin mobilajā versijā - atstarpe starp rindām */
    p {
        margin-top: 4px !important;
        margin-bottom: 12px !important;
    }

    /* Ensure map block is visible and doesn't overflow */
    .block.map-block {
        display: block !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure map table doesn't overflow - override HTML width attribute */
    .block.map-block table {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        table-layout: fixed !important;
    }
    
    /* Ensure nested table in map header also doesn't overflow */
    .block.map-block table table {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        table-layout: fixed !important;
    }
    
    /* Ensure table cells don't cause overflow */
    .block.map-block table td {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Hide Gaujas Ziema image block on mobile */
    .column-left .block:nth-child(1) {
        display: none;
    }

    .column-left .block:nth-child(5) > p:first-child {
        display: none;
    }

    /* Map styling on mobile */
    .column-left .block.map-block #map {
        height: 320px !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure map header links are white on mobile */
    .column-left .block.map-block table tr:first-child td a,
    .column-left .block.map-block table tr:first-child td table td a {
        color: #FFFFFF !important;
    }

    /* Mobile bloku secība */
    /* 1) Rezultāti */
    .column-left .block:nth-child(5) {
        order: 1;
        margin-top: 10px;
    }
    
    /* 2) Nākamā kārta */
    .column-left .block:nth-child(3) {
        order: 2;
    }
    
    /* 3) Karte */
    .column-left .block:nth-child(4),
    .column-left .block.map-block {
        order: 3;
    }
    
    /* 4) Jaunumi */
    .column-center .block:nth-child(1) {
        order: 4;
        margin-top: 8px;
    }

    /* "Jaunumi" blokam mobilajā versijā - vienāda atstarpe kā citos blokos */
    .column-center .block:nth-child(1) h1 {
        margin-bottom: 16px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    
    /* Noņemt īpašos noteikumus news-title mobilajā versijā, lai būtu tāda pati atstarpe */
    .column-center .block:nth-child(1) .news-title {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }
    
    .logs .news-title {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }
    
    /* Noņemt margin no h3 un news-text mobilajā versijā, lai būtu tāda pati atstarpe */
    /* Tikai pirmajam h3 (pēc h1 "Jaunumi") - samazināt atstarpi */
    .logs h3:first-of-type {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transform: none !important;
    }
    
    /* Pārējiem h3 elementiem - normāla atstarpe */
    .logs h3:not(:first-of-type) {
        margin-top: 12px !important;
        margin-bottom: 0 !important;
        transform: none !important;
    }
    
    /* Atstarpe pirms otrā h3 - pielāgot .news-links margin */
    .logs .news-links {
        margin-bottom: 18px !important;
    }
    
    .logs .news-text {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Noņemt margin no news-links mobilajā versijā */
    .logs .news-links {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* 5) Jaunumi vairāk */
    .column-center .block:nth-child(3) {
        order: 5;
    }

    /* 6) Dinamiskā sākuma bilde */
    .homepage-mobile-image {
        order: 6;
    }
    
    /* 7) Facebook - pēc sākuma bildes, bet pirms "Nolikums" */
    .column-facebook .block:nth-child(1) {
        order: 7;
    }
    
    /* 8) Nolikums */
    .column-left .block:nth-child(6) {
        order: 8;
        margin-top: 8px;
    }
    
    /* Paslēpt hr elementu pirms "Nolikums" bloka mobilajā versijā */
    .column-left .block:nth-child(6) hr {
        display: none !important;
    }
    
    /* "Nolikums" blokā - izmantot standarta h1 margin */
    .column-left .block:nth-child(6) h1 {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .column-left .block:nth-child(6) p {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* 9) "Izvēlies atpūtu" */
    .column-left .block:nth-child(7) {
        order: 9;
    }
    
    /* Samazināt tukšumu "Izvēlies atpūtu" blokā */
    .column-left .block:nth-child(7) p {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .column-left .block:nth-child(7) p br {
        display: none;
    }
    
    /* Hide Facebook in center column on mobile - it's shown from column-facebook */
    .facebook-in-center {
        display: none !important;
    }
    
    /* Ensure Facebook iframe doesn't overflow */
    .column-center .block iframe,
    .column-facebook .block iframe {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent horizontal scroll on body */
    body {
        overflow-x: hidden;
    }
    
    /* Ensure main container doesn't overflow */
    .main-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Supporters (Right column) */
    .column-right .block {
        order: 9;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .column-right .block h1 {
        width: 100%;
        text-align: center;
    }
    
    /* Izlīdzināt un vienādot logotipus mobilajā versijā */
    .column-right .block p[align="center"] {
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .column-right img {
        max-width: 80px !important;
        width: auto !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

    /* Mobile Menu - Additional optimizations for small screens */
    /* Note: Base hamburger menu styles are defined in @media (max-width: 1200px) above */

    /* Mobile Accordion Submenu - arrow positioning for all states */
    .ddcolortabs li .submenu-arrow {
        display: inline-block !important;
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 14px !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        transition: transform 0.2s ease;
    }
    
    .ddcolortabs li.submenu-open > a .submenu-arrow {
        transform: translateY(-50%) rotate(0deg);
    }

    .ddcolortabs li:has(.submenu-arrow) > a {
        position: relative !important;
        padding-right: 35px !important;
    }

    .ddcolortabs li.submenu-open > a {
        color: #FFC80F;
    }

    .dropmenudiv_a {
        position: static !important;
        visibility: visible !important;
        width: 100% !important;
        display: none;
        border: none !important;
        border-top-width: 0 !important;
        background-color: rgba(10, 40, 60, 0.95) !important;
    }

    .dropmenudiv_a.submenu-active {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .dropmenudiv_a a {
        padding: 10px 12px 10px 32px !important;
        color: #ffffff !important;
        background-color: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        font-size: 18px;
        font-weight: 400;
        text-transform: none;
        text-indent: 0 !important;
        white-space: nowrap;
    }

    .dropmenudiv_a a:hover {
        background-color: rgba(170, 40, 65, 0.5) !important;
        color: #FFC80F !important;
    }

    .dropmenudiv_a a:last-child {
        border-bottom: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .telpu-page .column-center,
    .interreg-page .column-center,
    .meness-page .column-center {
        max-width: 100%;
    }
}

.gaujas-ziema-nolikums .gaujas-ziema-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gaujas-ziema-poster {
    width: 100%;
    max-width: 320px;
    justify-self: center;
}

.gaujas-ziema-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gaujas-ziema-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gaujas-ziema-calendar h3 {
    color: #194664;
    border-bottom: 2px solid #194664;
    padding-bottom: 8px;
}

.gaujas-ziema-calendar li {
    padding: 7px 0;
}

.gaujas-ziema-calendar time {
    white-space: nowrap;
}

.gaujas-ziema-note {
    line-height: 1.5;
}

@media (max-width: 650px) {
    .gaujas-ziema-nolikums .gaujas-ziema-facts,
    .gaujas-ziema-calendar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gaujas-ziema-poster {
        width: 100%;
        max-width: 280px;
        justify-self: center;
    }
}

/* Telpu orientēšanās nolikums - WordPress bloku līdzīgs noformējums */
.telpu-nolikums img {
    max-width: 100%;
    height: auto;
}

.rudens-nakts-page .column-center {
    flex: 1 1 100%;
    max-width: 100%;
}

.rudens-nakts-nolikums {
    max-width: none;
    margin: 0;
}

.rudens-nakts-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas: "calendar photo";
    align-items: center;
    gap: 24px;
}

.rudens-nakts-photo {
    grid-area: photo;
    width: 100%;
    max-width: 380px;
    justify-self: center;
    margin: 0;
}

.rudens-nakts-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 53, 77, 0.12);
}

.rudens-nakts-calendar {
    grid-area: calendar;
    min-width: 0;
}

.rudens-nakts-calendar h2 {
    margin-top: 0;
}

.rudens-nakts-calendar p:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .rudens-nakts-intro {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "calendar" "photo";
        gap: 22px;
        padding: 18px;
    }

    .rudens-nakts-photo {
        max-width: 320px;
        justify-self: center;
    }
}

.telpu-nolikums .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.telpu-nolikums .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.telpu-nolikums .wp-block-table table {
    min-width: 720px;
}

.telpu-nolikums .wp-block-table td,
.telpu-nolikums .wp-block-table th {
    border: 1px solid #c7cbd1;
    padding: 8px 10px;
    vertical-align: top;
}

.telpu-nolikums .wp-block-table.is-style-stripes table tr:nth-child(odd) {
    background: #f2f4f6;
}

.rudens-nakts-nolikums .izlozes-dalibnieki table {
    min-width: 0;
    table-layout: fixed;
}

.izlozes-dalibnieki caption {
    text-align: left;
    font-weight: bold;
    padding-bottom: 12px;
}

.izlozes-dalibnieki td {
    overflow-wrap: anywhere;
}

.telpu-nolikums .telpu-notice {
    margin: 14px 0 20px;
    padding: 14px 16px;
    border-left: 5px solid #cf2e2e;
    border-radius: 10px;
    background: #fff1f1;
    color: #7a1111;
    box-shadow: 0 8px 22px rgba(120, 17, 17, 0.08);
    font-weight: 600;
}

.telpu-nolikums .telpu-notice strong {
    color: #a40000;
}

.telpu-nolikums .telpu-important-info {
    margin: 16px 0 20px;
    padding: 16px 18px;
    border-left: 5px solid #ff8a00;
    border-radius: 10px;
    background: #fff4e8;
    box-shadow: 0 8px 22px rgba(156, 92, 0, 0.08);
}

.telpu-nolikums .telpu-important-info__title {
    margin: 0 0 10px;
    font-weight: 700;
}

.telpu-nolikums .telpu-important-info p:last-child {
    margin-bottom: 0;
}

.telpu-nolikums .telpu-transport-image {
    width: 100%;
    max-width: 1000px;
    border-radius: 8px;
    border: 1px solid #e6d3bd;
}

.telpu-nolikums .wp-block-media-text {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.telpu-nolikums .wp-block-media-text__media img {
    max-width: 160px;
    width: 100%;
}

.telpu-nolikums .wp-block-image.size-large img {
    max-width: 720px;
    width: 100%;
    display: block;
    margin: 0 auto;
}


.telpu-nolikums .wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.telpu-nolikums .wp-block-gallery img {
    max-width: 180px;
    height: auto;
}

.telpu-nolikums .iesildisanas-media {
    align-items: flex-start;
    gap: 22px;
    margin: 14px 0 24px;
}

.telpu-nolikums .iesildisanas-media .wp-block-media-text__media {
    flex: 0 0 260px;
    margin: 0;
}

.telpu-nolikums .iesildisanas-media .wp-block-media-text__media img {
    max-width: 260px;
    width: 100%;
    display: block;
    border-radius: 4px;
}

.telpu-nolikums .iesildisanas-media .wp-block-media-text__content {
    flex: 1 1 420px;
}

.telpu-nolikums .iesildisanas-media-reverse .wp-block-media-text__media {
    order: 2;
}

.telpu-nolikums .iesildisanas-media-reverse .wp-block-media-text__content {
    order: 1;
}

.telpu-nolikums .iesildisanas-calendar-media {
    flex-direction: column;
    align-items: flex-start;
    max-width: 920px;
    gap: 8px;
    margin-bottom: 10px;
}

.telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__media {
    flex: 0 0 220px;
}

.telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__media img {
    max-width: 220px;
}

.telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__content {
    flex: 0 1 auto;
}

@media (max-width: 980px) {
    .telpu-nolikums .iesildisanas-calendar-media {
        flex-direction: column;
        align-items: flex-start;
    }

    .telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__media {
        flex: 0 0 auto;
    }

    .telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__media,
    .telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__content {
        order: initial;
    }

    .telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__content {
        flex: 1 1 auto;
    }
}

.telpu-nolikums.iesildisanas-nolikums p,
.telpu-nolikums.iesildisanas-nolikums li {
    text-align: justify;
    text-justify: inter-word;
}

@media (max-width: 768px) {
    .telpu-nolikums .wp-block-media-text {
        flex-direction: column;
        align-items: flex-start;
    }

    .telpu-nolikums .iesildisanas-media {
        gap: 12px;
        margin: 10px 0 18px;
    }

    .telpu-nolikums .iesildisanas-media .wp-block-media-text__media {
        flex: 0 0 auto;
    }

    .telpu-nolikums .iesildisanas-media .wp-block-media-text__media img {
        max-width: 220px;
    }

    .telpu-nolikums .iesildisanas-media-reverse .wp-block-media-text__media,
    .telpu-nolikums .iesildisanas-media-reverse .wp-block-media-text__content {
        order: initial;
    }

    .telpu-nolikums .iesildisanas-calendar-media {
        margin-bottom: 6px;
    }

    .telpu-nolikums .iesildisanas-calendar-media .wp-block-media-text__content ol {
        margin-bottom: 12px;
    }

    .telpu-nolikums .wp-block-gallery img {
        max-width: 140px;
    }
}
