/* ===== MOBILO FIX: lai nekas neizspiež lapu platāku par ekrānu ===== */
*, *::before, *::after { box-sizing: border-box; }

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

/* mobilajam iedod container normālu “iekšējo” atstarpi */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 16px;
  }
}

/* ===== KALENDĀRA FIX: neļaut gridam / kartēm izspiesties ===== */
.calendar-grid,
.calendar,
.calendar-right,
.selected-day-panel,
.next-events {
  min-width: 0;
}

/* ===== KALENDĀRS: uz ļoti šauriem ekrāniem padari šūnas kompaktākas ===== */
@media (max-width: 420px) {
  .calendar { padding: 10px; gap: 5px; }
  .day { min-height: 52px; padding: 6px 5px; border-radius: 12px; }
  .day strong { width: 22px; height: 22px; font-size: 0.75rem; }

  /* ja gribi, uz telefona paslēp mini sarakstu šūnā (lai nekad neizplūst) */
  .day .day-events { display: none; }
}


/* ============================================
   VISPĀRĪGIE STILI
   ============================================ */

p {

    text-align: justify;
}



   html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}
/* Saturs aizņem visu brīvo vietu */
.page-content {
    flex: 1;
    padding: 20px;
}
.page-wrapper {
    flex: 1;
}
.page-jaunumi .page-wrapper {
    background-color: #ffffff;
}
.page-noderigi .page-wrapper{
    background-color: #fff;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.news-section .container form {
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   GALVENE (header + navigācija)
   ============================================ */
header {
    background-color: #124c78; /* Galvenes fons */  /* pamatkrāsa*/
    color: #fff;              /* Teksta krāsa galvenē */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* background-image: radial-gradient(#ffffff33 1px, transparent 1px);
background-size: 20px 20px;
background-color: #004f8c; */

}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    text-decoration: underline;
}
/* Hamburger poga – sākumā slēpta (redzama tikai mobilajās) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
}
/* ============================================
   SĀKUMS / HERO SADAĻA
   ============================================ */
.hero {
    background-color: #124c78; /* pamatkrāsa*/
    background-image: url('../images/header-bg.jpg');
    background-position: center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 20px 20px;
    /* background-image: radial-gradient(#ffffff33 1px, transparent 1px);
background-size: 20px 20px;
background-color: #0072c6; */



}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-button {
    background-color: white;
    color: #0072c6;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #005a99;
    color: #fff;
}

.cta-buttondark {
    background-color: #0072c6;
    color: white !important;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-buttondark:hover {
    background-color: white;
    color: #005a99 !important;
}

.hero-logo img { 
    width: 200px; /* vēlamais platums */
    height: auto; /* saglabā proporcijas */
}


/* ============================================
   AKTUALITĀTES / JAUNUMI
   ============================================ */
.news-section {
    background-color: white;
    color: white;
    padding: 60px 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #000000;
}

.news-header h2 {
    font-size: 2em;
    margin: 0;
}

.all-news-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.all-news-link:hover {
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #002266;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-item h3 {
    margin: 15px;
    font-size: 1.2em;
}

.news-item h3 a {
    color: #ffffff;
    text-decoration: none;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

.news-item p {
    margin: 0 15px 20px 15px;
    font-size: 0.95em;
    color: #d8e1ff;
}

/* ============================================
   PAR MUMS
   ============================================ */
.about-hero {
    background-color: #fff;
    padding: 60px 0;
}

.about-hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 6px;
}

.about-hero-text {
    flex: 1;
}

.about-hero-text h2 {
    color: #004f8c;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.about-hero-text p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Zilās kolonnas sadaļa */
.about-blue-section {
    background-color: #124c78; /* pamatkrāsa*/
    color: #fff;
    padding: 60px 0;
}

.blue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.blue-grid h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.blue-grid p {
    color: #dbe2ff;
    line-height: 1.6;
}

/* Misija */
.mission {
    background-color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.mission h4 {
    color: #0072c6;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.mission-text {
    font-size: 1.4em;
    color: #222;
    max-width: 700px;
    margin: 0 auto 10px;
}

.mission-author {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 50px;
}

.mission-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.mission-columns h3 {
    color: #004f8c;
    margin-bottom: 10px;
}

.mission-columns p {
    line-height: 1.6;
}

/* Komanda */
.team-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.team-section h2 {
    color: #004f8c;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    justify-items: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.team-member h4 {
    color: #004f8c;
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    font-size: 0.95em;
    text-align: center !important;
}

/* ============================================
   📍 KONTAKTI
   ============================================ */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 60px 0;
}

.contact-info h2 {
    color: #004f8c;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-info a {
    color: #0072c6;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cta-button2 {
    background-color: #0072c6;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button2:hover {
    background-color: #005a99;
    color: #fff;
}

/* ============================================
   KĀJENE
   ============================================ */
footer {
    background-color: #124c78; /* pamatkrāsa*/
    padding: 5px;
    margin-top: auto;  /* svarīgs sticky layout */
    position: static;  /* NOVĀC fixed */
}

footer p {
    color: white;
    text-align: center;
}


/* ============================================
   📱 RESPONSĪVAIS IZKĀRTOJUMS
   ============================================ */
@media (max-width: 768px) {

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    body {
        padding-top: 70px;
    }

    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between; /* <<< ŠIS SASTUMJ LOGO PA KREISI UN HAMBURGERI PA LABI */
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: #004f8c;
        width: 100%;
        z-index: 999;
    }

    nav ul {
        display: none;
        flex-direction: column;
        padding: 10px 0;
    }

    nav li {
        margin: 0;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 10px 20px;
    }

    header.nav-open nav ul {
        display: flex;
    }
}



/* ============================================
   📘 NODERĪGI
   ============================================ */

.useful-hero {
    background-color: #124c78; /* pamatkrāsa*/
    color: #fff;
    text-align: center;
    padding: 80px 20px 60px 20px;
}

.useful-hero h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.useful-hero p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.useful-section {
    background-color: #fff;
    padding: 80px 0;
}

.useful-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
}

.useful-column h2 {
    color: #004f8c;
    margin-bottom: 25px;
    font-size: 1.5em;
    border-bottom: 3px solid #0072c6;
    padding-bottom: 10px;
}

.useful-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.useful-list li {
    margin-bottom: 12px;
}

.useful-list a {
    text-decoration: none;
    color: #0072c6;
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s;
}

.useful-list a::before {
    content: "📄 ";
    font-size: 0.9em;
}

.useful-list a[href*="http"]::before {
    content: "🌐 ";
}

.useful-list a:hover {
    color: #124c78; /* pamatkrāsa*/
    text-decoration: underline;
}






/* === Expanding Card Grid (adaptēts) === */
:root{
  --light:#eceef1;
  --gray:#b9c3d0;      /* ~ darken(#eceef1, 30%) */
  --slate:#333a45;     /* ~ darken(#eceef1, 70%) */
  --turquoise:#2596be;
}

.fxgrid .wrapper{ margin:40px auto; max-width:1000px; background:#fff; box-shadow:0 0 5px rgba(0,0,0,.06); border-radius:8px; }
.fxgrid .cards{ padding:15px; display:flex; flex-flow:row wrap; }

.fxgrid .card{
  margin:15px;
  width:calc((100% / 3) - 30px);
  transition:all .25s ease-in-out;
}
@media (max-width:991px){ .fxgrid .card{ width:calc((100% / 2) - 30px);} }
@media (max-width:767px){ .fxgrid .card{ width:100%; } }

.fxgrid .card__inner{
  width:100%; 
  padding:18px; 
  position:relative; 
  cursor:pointer;
  background:#124c78;  /* pamatkrāsa*/
  color:#ffffff; 
  text-transform:none; 
  text-align:center;
  border-radius:10px; 
  transition:all .25s ease-in-out;
  padding: 10px;
}
.fxgrid .card__inner span{ display:block; margin-top:10px; font-weight:600; color:rgb(255, 255, 255); }
.fxgrid .card:hover .card__inner{ background:var(--turquoise); transform:scale(1.03); color:#fff; }
.fxgrid .card.is-expanded:hover .card__inner{ transform:none; }

.fxgrid .card__expander{
  transition:all .35s ease-in-out;
  background:#124c78; /* pamatkrāsa*/
  color:var(--light);
  width:100%; 
  position:relative; 
  display:flex; 
  justify-content:center; 
  align-items:flex-start;
  max-height:0; 
  min-height:0; 
  overflow:hidden; 
  margin-top:0; 
  opacity:0; 
  border-radius:10px;
}
.fxgrid .fx-expander-inner{ padding:24px; width:100%; }
.fxgrid .fx-expander-inner h3{ margin:0 0 10px; }

.fxgrid .fx-close{
  position:absolute; top:10px; right:12px; background:transparent; color:#fff;
  border:0; font-size:22px; cursor:pointer; line-height:1; padding:4px 6px;
  transition:transform .2s ease, opacity .2s ease;
}
.fxgrid .fx-close:hover{ transform:scale(1.15); opacity:.85; }

/* Atvērts stāvoklis */
.fxgrid .card.is-expanded .card__inner{
  background:var(--turquoise); color:#fff;
}
.fxgrid .card.is-expanded .card__expander{
  max-height:1000px; min-height:220px; overflow:visible; margin-top:16px; opacity:1;
}

/* “Rindas platuma” triks, lai ekspanders izstieptos visai rindai */
@media (min-width:992px){
  .fxgrid .card:nth-of-type(3n+2) .card__expander{ margin-left:calc(-100% - 30px); }
  .fxgrid .card:nth-of-type(3n+3) .card__expander{ margin-left:calc(-200% - 60px); }
  .fxgrid .card:nth-of-type(3n+4){ clear:left; }
  .fxgrid .card__expander{ width:calc(300% + 60px); }
}
@media (min-width:768px) and (max-width:991px){
  .fxgrid .card:nth-of-type(2n+2) .card__expander{ margin-left:calc(-100% - 30px); }
  .fxgrid .card:nth-of-type(2n+3){ clear:left; }
  .fxgrid .card__expander{ width:calc(200% + 30px); }
}

/* Lēnāka, gluda atvēršanās */
.fxgrid .card__expander{ transition: max-height .45s ease, opacity .45s ease, margin .45s ease; }

/* Lai scrollēšana “neieskrietu” zem sticky headera */
.fxgrid .card{ scroll-margin-top: 90px; }


@media (max-width: 530px){
  .fxgrid .wrapper{
    width: 100%;
    max-width: 100%;
    margin: 20px 0;     /* lai nav lieks tukšums */
    border-radius: 0;   /* optional – uz telefona bieži izskatās tīrāk */
  }

  .fxgrid .cards{
    padding: 10px;
  }

  .fxgrid .card{
    width: 100%;
    margin: 0 0 16px 0; /* atstarpes starp kartēm */
  }

  /* ja tev global .container ir width:90%, tad mobilajā to “atbloķē” */
  .container{
    width: 100%;
    padding: 0 16px;
  }
}

/*Reiņa pielikts*/
/* 1) Karte vienāda augstuma */



/* Preview virsraksts max 3 rindas + ... (tikai kartē) */
.fxgrid .card__inner > span{
  display:-webkit-box;
  min-height: 60px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow:hidden;
}

/* LAI PASVĪTROTU IZVĒLĒTO SADAĻU HEDERĪ */
/*  */
/*  */

/* Pasvītrojums + mazliet uzsvars aktīvajai sadaļai */
nav a.active {
    text-decoration: underline;
    text-underline-offset: 3px; /* vizuāli glītāks pasvītrojums */
}

/* Lai enkuru ritināšana “neieskrietu” zem sticky headera */
section[id], [id] {
    scroll-margin-top: 90px; /* ~ header augstums */
}

/*  */
/*  */


/* ============================================
   🖼️ GALERIJA KOLONNĀ (pielāgota dizainam)
   ============================================ */
.gallery-section {
    margin-top: 30px;
}

.gallery-section h2 {
    color: #124c78; /* pamatkrāsa*/
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid #0072c6;
    display: inline-block;
    padding-bottom: 5px;
}

/* Tīklojums — 3 bildes rindā lielos ekrānos, mazāk mazākos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    justify-items: center;
}

/* Katra bilde — iekļaujas kolonnā, ar noapaļotiem stūriem */
.gallery-grid a {
    display: block;
    width: 100%;
    max-width: 180px; /* ierobežo maksimālo bildes platumu */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Bildes pašas */
.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Mazākiem ekrāniem */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .gallery-grid a {
        max-width: 140px;
    }
}

/* =========================
   KALENDĀRS – JAUNAIS DIZAINS
   (inspirēts no CodePen)
   ========================= */

.calendar-wrapper {
    padding: 60px 0;
    color: #124c78; /* pamatkrāsa*/
    background: #fff;
}

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

.calendar-wrapper h1 {
    margin: 0 0 20px;
    font-size: 2rem;
    font-weight: 600;
}

/* Mēnešu navigācija */

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-current {
    margin-left: 5px;
    font-size: 1.3rem;
    font-weight: 600;
}

.calendar-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    background: #00407b;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.calendar-nav a:hover {
    background: #0063c2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}



/* Layout: kreisā puse – kalendārs, labā – notikumi */

.calendar-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: flex-start;
}

/* Kalendāra “karte” */

.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: #124c78; /* pamatkrāsa*/
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Dienas šūna */

.day {
    position: relative;
    min-height: 80px;
    padding: 10px 8px 8px;
    border-radius: 14px;
    /* background: rgba(0,0,0,0.15); */
    background: white;      /* kalendāra dienu lauciņu krāsa KALENDĀRAKRĀSA */
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease, border-color 0.15s ease;
}

.day strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0,0,0,0.35);
    color: #fff;
}

/* Dienas ar notikumiem */

.day .day-events {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.day .day-events li {
    position: relative;
    padding-left: 12px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day .day-events li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #facc2e; /* “punkts” notikumam */
}

/* Tukšās šūnas kalendāra sākumā */

.day.empty {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

/* Šodienas diena – var pievienot klasi no PHP, ja gribi */

.day.today {
    border-color: #1aaaba;
    box-shadow: 0 0 0 1px rgba(245,113,112,0.5);
}

.day.today strong {
    background: #1aaaba;
}

/* Hover efekts */

.day:not(.empty):hover {
    background: rgba(0,0,0,0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.day:not(.empty):hover .day-events li {
    color: white; /* ⬅️ burtu krāsa uz hover */
}

/* Labā kolonna – “Šodienas notikumi” */

.selected-day-panel {
    background: #ffffff;
    color: #222;
    border-radius: 16px;
    padding: 18px 18px 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    margin-bottom: 5px;
}

.selected-day-panel h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #00407b;
}



/* Labā kolonna – “Pēdējie / nākamie notikumi” */

.next-events {
    background: #ffffff;
    color: #222;
    border-radius: 16px;
    padding: 18px 18px 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.next-events h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #00407b;
}

.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-item {
    margin-bottom: 6px;
}

/* Notikumu “akordeons” labajā pusē */

.event-toggle {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 6px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
    color: inherit;
}

.event-toggle:hover {
    text-decoration: underline;
}

.event-date {
    font-weight: 600;
    white-space: nowrap;
}

.event-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-details {
    display: none;
    font-size: 0.8rem;
    margin: 0 0 6px;
    padding-left: 8px;
    border-left: 2px solid #ddd;
    color: #444;
}

.event-details.open {
    display: block;
}

/* Responsīvais */

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    /* NODEFINĒ KĀRTĪBU MOBILAJĀ: vispirms kalendārs, tad notikumi */
    .calendar {
        order: 1;
    }

    .calendar-right {
        order: 2;
        margin-top: 18px;
    }
}

@media (max-width: 600px) {
    .calendar-wrapper {
        padding: 40px 0;
    }

    .calendar {
        padding: 12px;
        gap: 6px;
    }

    .day {
        min-height: 60px;
        padding: 8px 6px;
    }

    .day strong {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}