/* ============================================================
   FILE: /assets/styles/lab-main.css
   PROJECT: Brain Maze Lab
   SECTION: barainmazelab.com
   
   PURPOSE:
          main styles

   DESCRIPTION:

   USED BY:
          all pages

   DEPENDENCIES:

   AUTHOR: FPV Ivars
   CREATED: 2024
   LAST UPDATED: 2025-10-15
   ============================================================ */



html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    scroll-behavior: smooth;
}

*{                              
    margin: 0;
    padding: 0;                  
    box-sizing: border-box;
}  

*,:after,:before,html {
    box-sizing: border-box
}

body {
    
    width: 100%
}

body {
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/    
    margin: 0;
    /*padding-top: 80px; /* pielāgo atkarībā no header augstuma. jaunais header 2025.10.14 */
    overflow-x: hidden;
    font-family: Euclid Circular, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-variant-numeric: proportional-nums;
    font-weight: 400;
    text-rendering: optimizelegibility;
}

article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,div,section,summary {
    display: block
}


a {
    font-weight: 500;
    -webkit-text-decoration: none;
    text-decoration: none;
    color: #282f2e   
}

a:hover {
    color: #057aff   
}

a.dark {
    color: #057aff  
}

a.dark:hover {
    color: #383838  
}

a.bold {
    font-weight: 700
}

a {
    background-color: transparent;   
}

a:active,a:hover {
    outline: 0
}

abbr[title] {
    border-bottom: 1px dotted
}

b,strong {
    font-weight: 700
}

dfn {
    font-style: italic
}
/*
h1 {
    font-size: 2em;
    margin: .67em 0
}
*/
mark {
    background: #ff0;
    color: #000
}

small {
    font-size: 80%
}

sub {
    vertical-align: baseline
}

sub,sup {
    font-size: 75%;
    line-height: 0;
    position: relative
}

img {
    border-radius: 7px;
}

svg:not(:root) {
    overflow: hidden
}

figure {
    margin: 1em 40px
}

hr {
    box-sizing: content-box;
    height: 0
}

.heading-1,h1 {
    font-size: 45px;
    letter-spacing: .5px
} 

.heading-2,h2 {
    font-size: 39px;
    letter-spacing: .5px
}

.heading-3,h3 {
    font-size: 32px;
    letter-spacing: .5px
}

.heading-4,h4 {
    font-size: 28px
}

.heading-5,h5 {
    font-size: 24px
}

.heading-6,h6 {
    font-size: 20px
}

.heading-1,.heading-2,.heading-3,.heading-4,.heading-5,.heading-6,h1,h2,h3,h4,h5,h6 {
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/                       
    font-weight: 700;
    margin-bottom: .6em;
    margin-top: .6em
}

.heading-1 a,.heading-2 a,.heading-3 a,.heading-4 a,.heading-5 a,.heading-6 a,h1 a,h2 a,h3 a,h4 a,h5 a,h6 a {
    color: inherit;    
    font-weight: 700
} 

.border-left {
    border-left: 1px solid #d7d7d9
} 

/*
.nav-placeholder {
    height: 75px;           
}*/

.logo {/*
    display: ;
    min-width:;
    max-width:;*/
}

 ul{
    list-style: none;
    /*font-family: Comic Sans MS;*/
    /*background-color: #f6f6f6; */
}

.brand{
    font-weight: bolder;
    font-size: 1.2em;           
    color: #04aa6d;            
    font-family: Comic Sans MS;
}

.brand:hover{
    font-weight: bolder;
    color: #428aff;
}
 
 button{
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.btn{
    
    background: #428aff;
    padding: 0.5em 1.3em;
    border-radius: 16px;
    color: #fff;
}

.btn:hover{
    background: #3877db;
}

/* ================================================================ 
             MODERN HEADER START bml-header
================================================================ */

.bml-header {
  position: relative;
  width: 100%;
  z-index: 1000;
}

/* Inner container (fixed header) */
.bml-header__inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(15,18,35,0.85), rgba(25,25,55,0.8));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.5s ease;
}

/* Hide on scroll */
.bml-header__inner.hidden {
  transform: translateY(-100%);
}

/* Container width */
.bml-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 25px;
}

/* Navigation bar */
.bml-header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.bml-header__logo a {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Menu */
.bml-header__menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.bml-header__link {
  text-decoration: none;
  color: #eaeaea;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.bml-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #3B57F0, #728DFF);
  transition: width 0.3s ease;
}

.bml-header__link:hover::after {
  width: 100%;
}

.bml-header__link:hover {
  color: #fff;
}

/* Dropdown */
.bml-header__dropdown {
  position: relative;
}

.bml-header__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(25,25,55,0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bml-header__dropdown:hover .bml-header__dropdown-menu {
  display: block;
}

.bml-header__dropdown-item {
  display: block;
  color: #ddd;
  text-decoration: none;
  padding: 8px 20px;
  transition: background 0.2s ease;
}

.bml-header__dropdown-item:hover {
  background: rgba(59,87,240,0.2);
  color: #fff;
}

/* Language */
.bml-header__lang {
  position: relative;
}

/* Hamburger */
.bml-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.bml-header__hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation for hamburger -> X */
.bml-header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.bml-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.bml-header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO section */
.bml-header__hero {
  text-align: center;
  padding: 140px 20px 40px;
  color: #fff;
  background: linear-gradient(135deg, rgba(15,18,35,0.6), rgba(25,25,55,0.5));
}

.bml-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  font-weight: 700;
}

.bml-header__subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Button */
.bml-header__button {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #3B57F0, #728DFF);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.bml-header__button:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 900px) {
  .bml-header__hamburger {
    display: flex;
  }
  .bml-header__menu-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(25,25,55,0.96);
    padding: 20px 0;
  }
  .bml-header__menu-list.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
  }
}

/* ================= MOBILE STRUCTURE FIX ================= */
@media (max-width: 900px) {

  /* HEADER – vairs nav fixed, tikai augšā */
  .bml-header__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
  }

  /* LOGO un HAMBURGER rinda paliek šaurā, fiksētā zonā */
  .bml-header__nav {
    background: rgba(15,18,35,0.95);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 40;
  }

  /* MENU – atveras zem joslas, pilnā platumā */
  .bml-header__menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20,22,40,0.98);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 22px 0;
    z-index: 39;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .bml-header__menu-list.active {
    display: flex;
  }

  /* LOGO un HAMBURGER nelec kopā ar menu */
  .bml-header__hamburger {
    z-index: 45;
  }

  /* HERO sākas zem headera */
  .bml-header__hero {
    position: relative;
    padding-top: 130px;
    z-index: 1;
  }
}

/* ================================================================ 
             MODERN HEADER END bml-header
================================================================ */

/* ================================================================ 
             HAMBURGER NAVIGATION START test-nav
================================================================ */

#test-nav {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  align-items: center;
}

#back-link {
  color: white;
  font-size: 18px;
  text-decoration: none;
  padding: 4px 8px;
  background: none; /*background-color: rgba(0, 0, 0, 0.6);*/
  border-radius: 4px;
}

#test-nav-toggle {
  background: none;
  color: white;
  font-size: 28px;
  border: none;
  cursor: pointer;
}

#test-nav-menu {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px;
  border-radius: 6px;
  text-align: right;
  position: absolute;
  top: 40px;
  right: 12px;
  min-width: 150px;
}

#test-nav-menu a {
  color: #64d17f;
  text-decoration: none;
  display: block;
  margin: 6px 0;
  font-size: 16px;
}

#test-nav-menu.hidden {
  display: none;
}

@media (max-width: 600px) {
  #test-nav-menu {
    min-width: 120px;
    font-size: 18px;
  }
}

/* ================================================================ 
             HAMBURGER NAVIGATION END  test-nav
================================================================ */

/* =============== OLD NAVIGATION START =============== */

.custom-navbar, .custom-ul, .custom-li, .custom-a {
            margin: 0;
            padding: 0;
            list-style: none;
            text-decoration: none;
            /*font-family: Arial, sans-serif;*/ /* font-family: Comic Sans MS;(font-weight: 400;) */
        }

        .custom-navbar {
            background-color: white;
            padding: 0px 20px;/*priekš brainmaze 0px 20px, lai šaurākks menu. Bija šis pamatversijai- padding: 15px 20px;*/
            display: flex;
            justify-content: space-between;
            align-items: center;
            /*border-bottom: 1px solid #ddd;*/
            position: relative;
            flex-wrap: wrap; 
        }

        .custom-logo {
            color: black;
            font-size: 24px;
            font-weight: bold;
        }

        .custom-nav-container {
            display: flex;
            justify-content: center;
            flex-grow: 1;
            flex-wrap: wrap; 
        }

        .custom-nav-links {
            display: flex;
            gap: 25px; 
            flex-wrap: wrap; 
        }

        .custom-nav-links .custom-a {
            color: #000000; 
            text-decoration: none;
            font-size: 16px;  
            font-weight: bold;
            letter-spacing: 0.1em; 
            position: relative;
            transition: color 0.3s ease;
            white-space: nowrap; 
        }

        .custom-nav-links .custom-a:hover {
            color: #057aff; 
        }

        .custom-nav-links .custom-a::after {
            content: '';
            display: block;
            width: 0;
            height: 3px;
            background: #00ff00; 
            transition: width 0.3s;
            position: absolute;
            bottom: -5px;
            left: 0;
        }

        .custom-nav-links .custom-a:hover::after {
            width: 100%;
        }

        
        .custom-dropdown {
            position: relative;
        }

        .custom-dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            padding: 10px 0;
            min-width: 150px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 1;
        }

        .custom-dropdown-menu .custom-li {
            padding: 8px 20px;
        }

        .custom-dropdown-menu .custom-a {
            color: black;
            font-size: 16px;
        }

        .custom-dropdown-menu .custom-a:hover {
            color: #057aff; /* color: #ff6f61; */
        }

        .custom-dropdown:hover .custom-dropdown-menu {
            display: block;
        }

        /* Hamburger menu */
        .custom-hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .custom-hamburger .custom-bar {
            width: 25px;
            height: 3px;
            background-color: black;
            margin: 4px 0;
            transition: 0.3s;
        }

        .custom-hamburger.active .custom-bar:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .custom-hamburger.active .custom-bar:nth-child(2) {
            opacity: 0;
        }

        .custom-hamburger.active .custom-bar:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .custom-nav-links > .custom-li {
            position: relative;
        }

        @media screen and (max-width: 992px) {
            .custom-nav-container {
                justify-content: flex-end;
            }

            .custom-nav-links {
                display: none;
                position: absolute;
                top: 60px;
                right: 0;
                background-color: white;
                width: 100%;
                flex-direction: column;
                align-items: center;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                z-index: 2; 
                height: auto;    
            }

            .custom-nav-links.active {
                display: flex;
            }

            .custom-nav-links .custom-dropdown-menu {
                position: relative;
                top: 0;
                left: 0;
                width: 100%;
                background-color: white;
            }

            .custom-hamburger {
                display: flex;
            }
        }
/* ======================= brainmazelab START ======================= */
/* General Styles */
/*body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fa;
    color: #333;
}

    article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,div,section,summary {
    display: block
}*/

/* ============================================================
   MAIN HEADER CONTAINER
   ============================================================ */
.container-main-header {
    /*width: 90%;*/
    /*max-width: 1200px;*/
    margin: auto;
    text-align: center;
    /*background-image: url("12.webp");*/
    background: linear-gradient(135deg, #090a64, #0d0e1e, #1e18af);
    filter: brightness(90%);                                       
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 1.5vw 1.5vw;
}

        /* Header */
.site-header {
    /*background: linear-gradient(120deg, #007bff, #6610f2); gaišos toņos, zils*/
    /*background-image: url("11.webp") ;*/
    /*background: linear-gradient(135deg, #090a64, #0d0e1e, #1e18af); tumšos toņos, zils*/
    /*background: radial-gradient(circle, #0d0e1e 10%, #090a64 60%, #1e18af 90%); tumšos toņos, zils*/
    /*background: linear-gradient(135deg, #090a64, #0d0e1e, #1e18af);Tumšāks, mīkstāks fons ar nelielu dziļuma efektu.
    filter: brightness(90%);                                       Tumšāks, mīkstāks fons ar nelielu dziļuma efektu.
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);                Tumšāks, mīkstāks fons ar nelielu dziļuma efektu.*/
    color: white;
    /*padding: 5px 5px 20px; 5px no augšasun sāniem */
    text-align: center;
}

.brain-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.brain-logo-box {
    /*display: flex; ar šo viss piespiežas pie kreisās malas, laikam ietekmējas no kā*/
    align-items: center;
    /*border: 1px solid #04aa6d;*/ /* border: 2px solid #ddd; */
    border-radius: 25px;
    padding: 0px 25px;
    /*max-width: 400px;*/
    width: 100%;
    background-color: #f9f9f9;
    color: #0d0c22;
}

/*.language-switcher {
    display: flex;      ja noņemt, nepiespiežas pie kr. malas, aiziet uz vidu pēc citiem stiliem 
    gap: 10px;         atstarpe starp 
    font-size: 24px;  Lielāks izmērs, lai emoji, image ir labi redzami 
    padding-left: 25px;

}

.language-switcher img {
    width: 24px;
    height: auto;
    border-radius: 3px;
}

.language-switcher a {
    text-decoration: none;
    transition: transform 0.2s;
}

.language-switcher a:hover {
    transform: scale(1.5);  Efekts, lai vizuāli izceļas, palielinās, bija 1.2 
}*/

/* Valodu izvēlnes <li> */
.brain-custom-ul {
    display: flex; /* Flexbox nodrošina, ka visi <li> ir vienā rindā */
    align-items: center; /* Nodrošina vienmērīgu vertikālo izlīdzināšanu */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Parastie <li> izvēlnes elementi */
.brain-custom-li {
    padding: 10px 15px;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

/* Valodu pogas (EN ▼) izskats */
.language-selector #language-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    color: #333;
}

/* Karodziņa un teksta attālums */
.language-selector #language-button img {
    margin-right: 5px;
}

/* Dropdown izvēlne */
.language-selector #language-list {
    display: none; /* Paslēpts sākumā */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centrē dropdownu */
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    list-style: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* Dropdown izvēlnes elementi */
.language-selector #language-list li {
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Dropdown izvēlnes karodziņi */
.language-selector #language-list li img {
    margin-right: 8px;
}

/* Rāda dropdown hover gadījumā (desktop) */
.language-selector:hover #language-list {
    display: block;
}

/* Mobilajā dropdown valodu izvēlne ir centrēta */
@media (max-width: 768px) {
    .language-selector {
        display: block;
        width: 100%;
        text-align: center;
    }

    .language-selector #language-list {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
    }
}

/* Labajā pusē: Valodas izvēle, meklēšana, hamburgera poga */
/* Valodas izvēle 
.language-selector select {
    padding: 5px;
    background: white;
    border: none;
    cursor: pointer;
}*/

.site-title {
    font-size: 2.0em;
    margin: 0;
    padding: 50px 20px 20px;
}

.site-subtitle {
    font-size: 1.3em;
    margin-top: 10px;
    /*padding: 50px 20px 20px;*/
}

.header-title {
    font-size: 2.0em;
    margin: 0;
    padding: 50px 20px 20px;
}

.header-subtitle {
    font-size: 1.3em;
    margin-top: 10px;
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 50px 20px 20px;*/    
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background-color: #ffcc00;
    color: #333;
}

.btn-primary:hover {
    background-color: #e6b800;
}

.btn-secondary {
    background-color: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: white;
}

        /* Test Section */
.test-section {
    padding: 60px 0px; /* padding: 60px 20px;  */
            
}

.container-main {
            width: 100%; /* width: 90%;  */
            max-width: 1200px;
            margin: auto;
            text-align: center;
        }

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Saglabā 3 kolonnas desktopā. */
    gap: 20px;    /* nodrošina vienādu atstarpi starp blokiem */
    width: 100%; /* Nodrošina, ka `.test-grid` neaizņem mazāku vietu */
    max-width: 1200px; /* Ja vēlies ierobežot max platumu */
    margin: 0 auto; /* Centrē grid ja tas neizplešas, centrē saturu lapā */
}

.test-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    font-size: 1.2em;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Teksts centrēts vertikāli */
    height: 200px;
    position: relative;
}

/* Pārliecināmies, ka tukšais attēls neaizņem vizuālu vietu, bet saglabā izmēru */
.test-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0; /* Padara attēlu neredzamu */
}

/* Teksts centrā un virs fona */
.test-card h2 {
    position: relative;
    z-index: 1;
    color: #ffcc00;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Pilnībā klikšķināms kvadrāts */
.test-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Hover efekts – interaktivitāte atgriezta */
@media (hover: hover) {
    .test-card:hover {
        transform: scale(1.08);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    }
}

/* Responsivitāte mobilajām ierīcēm */
@media screen and (max-width: 1024px) {
    .test-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .test-card {
        width: 80%;
        max-width: 300px;
        padding: 20px;
        font-size: 1.2em;
    }
}

.visually-hidden-description {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.byline-test {
    color: #6e6e6e;
    font-size: 10px;
    font-weight: 400;
    padding-left: 10px;
    margin-top: 4px;
    /*margin-right: 4px;*/    
    text-align: right;
    /*visibility: hidden;*/
}

.test-title-main {
    font-size: 1.5em;
    text-align: center;
    font-weight: bold;
    color: #6a11cb;
}
/* ======================= brainmazelab END ======================= */
.main {
    background: #fff;  
    box-shadow: none;
    margin: 20px auto 4px;     
    max-width: 1260px;
    width: 100%
}

@media(min-width: 768px) {
    .main {
        margin:40px auto 4px;
        padding: 0 20px 24px
    }
}
/*
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #04aa6d; 
    border-radius: 25px;
    padding: 5px 10px;
    max-width: 400px;
    width: 100%;
    background-color: #f9f9f9;
    color: black;
}

#searchBar {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: none;
    padding: 5px 10px;
}

#searchIcon {
    font-size: 20px;
    color: #007BFF;
    cursor: pointer;
}

#searchIcon:hover {
    color: #0056b3;
}

#clearButton {
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background-color: #FF6F61;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#clearButton:hover {
    background-color: #e05a4f;
}

#results {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.result-item {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.result-item a {
    text-decoration: none;
    font-weight: bold;
    color: #007BFF;
}

.result-item p {
    margin: 5px 0 0;
    color: #555;
}

@media (max-width: 600px) {
    #searchBar {
        font-size: 14px;
        padding: 8px;
    }

    .result-item {
        font-size: 14px;
        padding: 8px;
    }

    #clearButton {
        width: 100%;
        max-width: 400px;
    }
}
*/

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #0f122399;/*#04aa6d; green how-tos*/
    border-radius: 25px;
    padding: 5px 10px;
    max-width: 420px;
    width: 100%;
    background-color: #fff;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 6px rgba(4, 170, 109, 0.5);
}

#searchBar {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: none;
    padding: 5px 10px;
    color: inherit;
}

#searchIcon {
    font-size: 20px;
    color: #04aa6d;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

#searchIcon:hover {
    color: #028857;
    transform: scale(1.1);
}

#clearButton {
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff7e66, #ff5c5c);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#clearButton:hover {
    background: linear-gradient(135deg, #ff5c5c, #e04646);
    transform: scale(1.03);
}

#results {
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
}

/* Kartiņu stils rezultātiem */
.result-item {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(5px);
}

.result-item.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.result-item a {
    text-decoration: none;
    font-weight: 600;
    color: #007BFF;
    display: inline-block;
    margin-bottom: 4px;
}

.result-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.result-item p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Tumšā režīma pielāgojums (automātiski aktivizējas uz tumša fona) */
@media (prefers-color-scheme: dark) {
    .search-box {
        background-color: #1a1a1a;
        border-color: #04aa6d;
        box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }
    #searchBar {
        color: #eaeaea;
    }
    #searchIcon {
        color: #04aa6d;
    }
    #results {
        color: #eaeaea;
    }
    .result-item {
        background: #242424;
        box-shadow: 0 1px 4px rgba(255,255,255,0.05);
    }
    .result-item a {
        color: #66b3ff;
    }
    .result-item p {
        color: #ccc;
    }
}

@media (max-width: 600px) {
    #searchBar {
        font-size: 15px;
        padding: 8px;
    }

    .result-item {
        font-size: 15px;
        padding: 10px 12px;
    }

    #clearButton {
        width: 100%;
        max-width: 420px;
    }
}


.start {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  background-color: #fff;
  height: 35px;
  margin-bottom: 30px; margin-top: 0px;         
  text-align: center;
}

.title_home {           
  overflow: hidden;    
  font-weight: bolder;
  font-size: 1.2em;    
  font-family: Comic Sans MS;   
  color: #04aa6d;
}

.title_home:before,
.title_home:after {
  content: '';
  display: inline-block;   
  vertical-align: middle;    
  box-sizing: border-box;    
  width: 100%;          
  height: 1px;
  background: #08aa6e;
  border: solid #fff;    
  border-width: 0 10px;
}

.title_home:before {
  margin-left: -100%;  
}

.title_home:after {
  margin-right: -100%;  
}                   

.main .headline {
    align-items: baseline;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

@media(min-width: 768px) {
    .main .headline {
        align-items:inherit;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start
    }
}

.main .headline h1 {
    border-bottom: 3px solid rgba(0,0,0,.102);
    color: #010334; 
    display: inline-flex;
    /*font-family:"Euclid Circular A", Arial, Sans-serif; */            
    font-size: 36px;
    font-weight: 500;
    letter-spacing: .55px;
    line-height: 1.08;
    margin: 5px 15px;
    padding: 0 0 10px;
    text-transform: uppercase
}

@media(min-width: 768px) {
    .main .headline h1 {
        border-bottom:none;
        flex: auto 0;
        font-size: 52px;
        /*margin: 0;*/                   
        padding: 0 10px 0 0
    }
}

.main .top-tags {
    display: none
}

@media(min-width: 768px) {
    .main .top-tags {
        border-bottom:1px solid rgba(0,0,0,.1);
        display: flex;
        flex-basis: 100%;
        /*font-family: "Euclid Circular A", Arial, Sans-serif;*/        
        font-size: 16px;
        justify-content: flex-start;
        letter-spacing: .17px;
        margin: 10px 0 0;
        padding-bottom: 1px;
        text-align: center;
        /*text-transform: uppercase*/
    }

    .main .top-tags span {
        margin: 0 20px 0 0
    }

    .main .top-tags a {
        color: #000;
        -webkit-text-decoration: none;
        text-decoration: none
    }
}  

.main .headline-underline {
    border-bottom: 1px solid rgba(0,0,0,.1);
    display: block;
    height: 1px;
    margin: -1px 10px 0 15px
}

@media(min-width: 768px) {
    .headline-underline {
        display:none
    }
} 

.main .latest {
    padding-top: 20px
}

@media(min-width: 768px) {
    .main .latest {
        padding-top:0
    }
}

.main .latest .latest_primary {
    display: block;
    margin: 10px 0 20px
}

@media(min-width: 1024px) {
    .main .latest .latest_primary {
        grid-column-gap:20px;
        -moz-column-gap: 20px;
        column-gap: 20px;
        display: grid;
        grid-template-columns: 1fr 300px
    }
}

.image-box {
    margin: 20px auto;
    max-width: 100%;
    overflow: hidden;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .image-box {
        padding: 10px;
    }
    article {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .image-box {
        padding: 5px;
    }
}

.main .latest .latest_primary .left .vertical-image .image {
    background-color: #fff
}

.main .latest .latest_primary .left .vertical-image .image img {
    left: 0;
    margin: auto;
    right: 0;
    width: auto
}

@media(min-width: 768px) {
    .main .latest .latest_primary .left .image {
        padding-bottom:56.25%
    }

    .main .latest .latest_primary .left .text {
        margin: 10px 0 0
    }
}

.image-wrapper {
    margin: 0
}

@media(max-width: 768px) {
    .image-top {
        margin: 0 20px;
    }
}

@media(max-width: 768px) {
    .image_credit {
        margin-right: 20px; 
    }
}

.image_credit {       
    color: #6e6e6e;
    font-size: 10px;
    font-weight: 400;
    margin-top: 4px;
    /*margin-right: 4px;*/    
    text-align: right;
    /*visibility: hidden;*/
}

.main .latest .latest_primary .left .text .headline {
    font-size: 24px
}

@media(min-width: 768px) {
    .main .latest .latest_primary .left .text .headline {
        font-size:36px;
        font-weight: 600
    }
}

.title-text {                             
    letter-spacing: .03125rem;
    font-size: 1.0625rem;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    font-weight: 600;
}

.article-menu-box {
   display: flex; 
   column-gap: 1rem;
   justify-content: space-between;

}

@media (min-width: 768px) {
  .article-menu-box {
    justify-content: flex-start;
  }
}

.article-menu {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    margin-left: 4px
}

.article-menu-item {
    font-size: small;
    line-height: 1.25rem;
    color: #2156FA;
    font-weight: 800;
}

.article-menu-item:hover{
    color: red;
}

.article-menu-item-p {
    font-size: small;
    line-height: 1.25rem;
    font-weight: 800;
    color: #208320; 
}

/*  Responsīvā uzlabošana */
@media (max-width: 600px) {
  .article-menu {
    gap: 0.35rem;
    margin-left: 2px;
  }

  .article-menu-item,
  .article-menu-item-p {
    font-size: 0.75rem; /* Mazāks nekā 'small' */
    line-height: 1.1rem;
    font-weight: 700;
  }
}

/*  Ļoti šauriem ekrāniem – ceļmaizi slēpj */
@media (max-width: 400px) {
  .article-menu-box {
    display: none;
  }
}

.article-content {  
    display: flex;
    flex-direction: column;
    column-gap: 1.75rem;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem
}

.article-text {  
    align-self: baseline;
    line-height: 1.75rem;
    letter-spacing: .03125rem;
    font-size: 1.0625rem;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    margin: 0 5px;
}

.article-content a:hover{
    color: #e90606;        
}

@media (min-width: 1024px) {
  .article-text {
    padding-right: 3.5rem;
    padding-left:  6.5rem
  }
}

.listb {
    padding:0;
    list-style: none;
} 

.listb li {
    position: relative;
    padding: 10px 30px;
    background: linear-gradient(to left, #ADCEE9 0%, #FFF, #ADCEE9);
    border: 2px solid #337AB7;
    color: #506a6b;
    box-shadow: 0 5px 5px 0 rgba(0,0,0, .2);
    margin-bottom: 5px;
    text-align:center;
    background-size: 100% 100%;
    z-index: 1;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    letter-spacing: .03125rem;
    font-size: 1.0625rem;
}

.listb li:before {
    content: "";
    position:absolute;
    width: 0;
    height: 100%;
    top: 50%;
    left: 50%;
    background: linear-gradient(to left, #EBF3FA 0%, #FFF, #EBF3FA);
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    z-index: -1;
}
.listb li:hover:before {
    width: 100%;
    opacity: 1;
}  

.lista {
    padding:0;
    list-style: none;
    margin-top: 15px;
}

.lista li {
    position: relative;
    padding: 10px 30px;
    background: linear-gradient(to left, #EFEFEF 0%, #FFF, #EFEFEF);
    border: 2px solid #C0C0C0;
    color: #506a6b;
    box-shadow: 0 5px 5px 0 rgba(0,0,0, .2);
    margin-bottom: 5px;
    text-align:center;
    background-size: 100% 100%;
    z-index: 1;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    letter-spacing: .03125rem;
    font-size: 1.0625rem;
}

.lista li:hover {
    border: 2px solid #ADCEE9;
}

.lista li:before {
    content: "";
    position:absolute;
    width: 0;
    height: 100%;
    top: 50%;
    left: 50%;
    background: linear-gradient(to left, #E2F0FA 0%, #FFF, #E2F0FA);
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    z-index: -1;
}

.lista li:hover:before {
    width: 100%;
    opacity: 1;
}    

li.mark::marker {
    content: '•';      
    color: black;      
    font-size: 23px; 
   }

li.mark {
    padding-left: 0.5em; 
}

a.anchor {
    color: #2156FA;
    letter-spacing: .03125rem;
    font-size: 18px;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    font-weight: normal;
    line-height: 28px;
    text-decoration:underline
}

a.anchor:hover {
    color: #383838;
    text-decoration:underline
}

.list-mark {
    background-color: #f6f6f6;
}

.main .latest .latest_secondary {
    display: block
}

@media(min-width: 768px) {
    .main .latest .latest_secondary {
        grid-column-gap: 20px;
        grid-row-gap: 0;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: 1fr
    }
}

@media(min-width: 1024px) {
    .main .latest .latest_secondary {
        grid-template-columns:repeat(3,1fr) 300px
    }
}

.main .latest .latest_secondary .left .headline {
    font-size: 24px
}

@media(min-width: 768px) {
    .main .latest .latest_secondary .left .headline {
        font-size:22px;
        line-height: 24px
    }
}

.main .latest .left {
    margin: 0 0 25px
}

@media(min-width: 768px) {
    .main .latest .left {
        margin:0
    }
}

.main .latest .left .headline {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: #000;
    display: -webkit-box;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/            
    font-weight: 700;
    letter-spacing: .25px;
    margin: 15px 0 10px;
    overflow: hidden;
    text-overflow: ellipsis
}

@media(min-width: 768px) {
    .main .latest .left .headline {
        margin:10px 0 8px
    }
}

.main .latest .left .text {
    display: flex;
    flex-direction: column;
    margin: 0 20px
}

@media(min-width: 768px) {
    .main .latest .left .text {
        margin:0
    }
}

.main .latest .left .summary {
    display: none
}

.main .latest .left .byline {
    color: #6d7278;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    font-size: 12px; /* font-size: 16px;  */
    font-weight: 700;
    letter-spacing: .17px;
    /*text-transform: uppercase*/
}

.byline-child-top {
    background-color: #ccffe1;
    border-radius: 2px;
    /*padding: 8px 12px;*/
    font-size: 13px;
}

.byline-child {
    background-color: #ccffe1;
    border-radius: 2px;
    /*padding: 8px 12px;*/
    font-size: 13px;
}

@media(min-width: 768px) {
    .main .latest .left .byline {
        font-weight:400;
        margin: 8px 12px 8px 0
    }
}

.main .latest .left .image {
    background-color: #fff;
    line-height: 0;
    max-width: 100%;
    padding-bottom: 66%;
    position: relative
}

.main .latest .left .image img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    width: 100%
} 

.desktop-only {
    display: none
}

@media(min-width: 1024px) {
    .desktop-only {
        display:block
    }
} 

.main .article {
    display: flex;
    flex-direction: column-reverse
}

@media screen and (min-width: 920px) {
    .main .article {
        grid-column-gap:20px;
        -moz-column-gap: 20px;
        column-gap: 20px;
        display: grid;
        grid-template-columns: 1fr 300px;
        margin: 5rem auto
    }
}

@media screen and (max-width: 767px) {
    .main .article .article_left-wrapper {
        margin:0 20px
    }
}

@media screen and (min-width: 920px) {
    .main .article .article_left-wrapper {
        margin:0 70px 0 0;
        min-width: 870px
    }
}

.main .article .article_left-wrapper .article_title-more {
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/      
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .38px;
    margin: 0 0 15px;
    text-align: center
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_title-more {
        font-size: 24px;
        text-align: left
    }
}

.main .article .article_left-wrapper .article_title-more span {
    color: #04aa6d;              
    text-transform: capitalize
}

.article_title-more-child {
    font-weight: bolder;
    font-size: 24px;
    color: #04aa6d;           
    font-family: Comic Sans MS;
}

.main .artcle .article_left-wrapper .article_left {
    border-top: 1px solid #979797;
    padding-top: 10px;
    width: 100%
}

.main .article .article_left-wrapper .article_left .left.hidden {
    display: none
}

.main .article .article_left-wrapper .article_left .left:first-child a {
    border-top: initial
}

.main .article .article_left-wrapper .article_left .left a {
    border-top: 1px solid #ddd;
    color: inherit;
    display: flex;
    padding: 15px 0
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_left .left a {
        grid-column-gap:20px;
        align-items: center;
        -moz-column-gap: 20px;
        column-gap: 20px;
        display: grid;
        grid-template-columns: 5fr 12fr;
        justify-content: center;
        min-height: 190px
    }
}

.main .article .article_left-wrapper .article_left .left a .image-wrapper {
    position: relative
}

.main .article .article_left-wrapper .article_left .left a .image-wrapper .image {
    background-color: #eee;
    position: relative
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_left .left a .image-wrapper .image {
        padding-bottom:66%
    }
}

.main .article .article_left-wrapper .article_left .left a .image-wrapper .image img {
    display: block;
    height: 86px;
    -o-object-fit: cover;
    object-fit: cover;
    width: 86px
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_left .left a .image-wrapper .image img {
        height:100%;
        position: absolute;
        width: 100%
    }
}

.main .article .article_left-wrapper .article_left .left a .text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 0 0 15px
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_left .left a .text {
        align-items:inherit;
        display: grid;
        grid-template-columns: none;
        height: 100%;
        margin: 0 0 0 5px
    }
}

.main .article .article_left-wrapper .article_left .left a .text h2.headline {
    font-size: 1rem;
    font-weight: 700;
    margin: 0
}

@media(max-width: 759px) {
    .main .article .article_left-wrapper .article_left .left a .text h2.headline {
        -webkit-box-orient:vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis
    }
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_left .left a .text h2.headline {
        font-size:1.25rem;
        padding-right: 0
    }
}

.main .article .article_left-wrapper .article_left .left a .text h3.summary {
    display: none
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_left .left a .text h3.summary {
        -webkit-box-orient:vertical;
        -webkit-line-clamp: 2;
        color: #4d4d4d;
        display: -webkit-box;
        /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
        font-size: 16px;
        font-weight: inherit;
        letter-spacing: .03125rem; /* letter-spacing: .17px; */
        margin-top: -10px;
        overflow: hidden;
        text-overflow: ellipsis
    }
}

.main .article .article_left-wrapper .article_left .left a .text h3.summary a {
    font-weight: 400
}

.main .article .article_left-wrapper .article_left .left a .text .byline {
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13px;
    margin-bottom: 5px
}

.main .article .article_left-wrapper .article_left .left a .text .byline span:first-child {
    color: inherit
}

.main .article .article_left-wrapper .article_left .left a .text .byline span {
    color: #da291c
}

.main .article .article_left-wrapper .article_load-more {
    display: flex;
    justify-content: center
}

.main .article .article_left-wrapper .article_load-more .article_load-more-button {
    background: #fff;
    border: 2px solid #000;
    border-radius: 3px;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    font-size: 12px;
    font-weight: 900;
    height: 40px;
    margin-top: 40px;
    text-transform: uppercase;
    width: 221px
}

.main .article .article_left-wrapper .article_load-more .article_load-more-button.hidden {
    display: none
}

.main .article .article_left-wrapper .article_pages {
    align-items: center;
    display: flex;
    /*font-family: "Euclid Circular A", Arial, Sans-serif;*/
    font-size: 14px;
    justify-content: center;
    line-height: 1;
    margin-top: 40px
}

.main .article .article_left-wrapper .article_pages a,.main .article .article_left-wrapper .article_pages span {
    margin: 0 10px
}

.main .article .article_left-wrapper .article_pages a.current,.main .article .article_left-wrapper .article_pages span.current {
    color: #282f2f;
    font-weight: 700
}

.main .article .article_left-wrapper .article_pages .next svg,.main .article .article_left-wrapper .article_pages .prev svg {
    outline: none;
    position: relative;
    top: 1px
}

.main .article .article_left-wrapper .article_pages .next svg polygon,.main .article .article_left-wrapper .article_pages .prev svg polygon {
    fill: #e90606
}

@media(min-width: 768px) {
    .main .article .article_left-wrapper .article_pages {
        font-size:16px
    }

    .main .article .article_left-wrapper .article_pages a,.main .article .article_left-wrapper .article_pages span {
        margin: 0 12px
    }
}

.main .article_author .byline span:first-child {
    display: none
}

.ad-container {
    align-items: center;
    background: transparent;  
    display: flex;
    justify-content: center;
    min-height: 1px;
    min-width: 1px;
    position: relative;
    z-index: 100!important
}

.ad-wrapper {
    background: transparent;
    text-align: center
}  

.sponsorship-div {
    color: #6d7278;
    /*font-family: Roboto Condensed,Arial Narrow,arial,sans-serif;*/
    font-size: 12px;
    justify-content: space-evenly;
    letter-spacing: .13px;
    margin-bottom: 5px;
    text-transform: uppercase
}

.sponsorship-div.flex {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 12px
}

@media(min-width: 960px) {
    .sponsorship-div.flex {
        flex-direction:row
    }
}

.sponsorship-div.flex.margin-8-bottom {
    margin-bottom: 8px
}

.sponsorship-div.padded {
    margin-bottom: 20px;
    margin-right: 10px
}

.sponsorship-div.padded .sponsorship-div-text {
    margin-left: 15px;
    margin-top: 5px;
    text-align: left
}

@media(min-width: 768px) {
    .sponsorship-div {
        align-items:normal
    }

    .sponsorship-div.flex.items-end {
        align-items: end
    }

    .sponsorship-div.flex .sponsorship-div-text {
        margin-right: 5px
    }

    .sponsorship-div.padded {
        padding: 0 0 0 10px
    }

    .sponsorship-div.padded .sponsorship-div-text {
        margin: 0;
        text-align: center
    }

    .sponsorship-div.border-left {
        border-left: 1px solid rgba(0,0,0,.1)
    }
}

.sponsorship-div .sponsorship-div-text {
    display: none;
    text-align: center
}

.sponsorship-div .sponsorship-div-text.visible {
    display: block
}

.sponsorship-div a img {
    display: block;
    margin-top: 5px;
    max-height: 50px;
    max-width: 100px
}

@media(min-width: 768px) {
    .sponsorship-div a img {
        max-width:150px
    }
}

.main .ad-between-section {
    margin: 50px 0
}

@media screen and (max-width: 767px) {
    .main .ad-between-section {
        border:1px solid #979797;
        border-width: 1px 0;
        margin: 60px 20px;
        padding: 40px 0 0
    }
}

.tablet-ad {
    display: none
}

@media(min-width: 768px) {
    .tablet-ad {
        display:block
    }
}

@media(min-width: 1162px) {
    .tablet-ad {
        display: none
    }
}

.desktop-ad {
    display: none
}

@media(min-width: 1162px) {
    .desktop-ad {
        display: block
    }
}

.mobile-ad.tablet-ad {
    display: block
}

@media(min-width: 1162px) {
    .mobile-ad.tablet-ad {
        display: none
    }
}

.mobile-ad.tablet-ad.desktop-ad {
    display: block
}

.tablet-ad.desktop-ad {
    display: none
}

@media(min-width: 768px) {
    .tablet-ad.desktop-ad {
        display: block
    }
} 

  @media (min-width: 1025px) {  
#fpvBtn {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 9999; 
    border: none; 
    outline: none; 
    background-color: #04aa6d; 
    color: #fff; 
    cursor: pointer; 
    padding: 15px; 
    border-radius: 10px; 
    font-size: 18px 
}

#fpvBtn:hover {
    background-color: #e90606 
}
}

/* =========================================================================
                            FOOTER START
========================================================================= */

.footer {
    background: #fff;
    padding: 30px 0px;
    font-family: Comic Sans MS;    
    text-align: center
}

.footer .row {
    width: 100%;
    margin: 1% 0%;
    padding: 0.6% 0%;
    color: #000;
    font-size: 0.8em
}

.footer .row-1 a {
    text-decoration: none;
    color: grey; 
    transition: 0.5s
}

.footer .row-2 a {
    text-decoration: none;
    color: gray;
    transition: 0.5s
}

.footer .row a:hover {
    color: grey
}

.footer .row ul {
    width: 100%
}

.footer .row ul li {
    display: inline-block;
    margin: 0px 30px
}

.footer .row a i {
    font-size: 2em;
    margin: 0% 1%
}

@media (max-width: 720px) {
    .footer {
        text-align: left;
        padding: 5%
    }
    .footer .row ul li {
        display: block;
        margin: 10px 0px;
        text-align: left
    }
    .footer .row a i{
        margin:0% 3%
    }
}

/* ===================== SOCIAL ============== */

.social-media-container {
  display: flex;
  justify-content: center; 
}

.social-icons {
  display: flex;
  justify-content: center; 
  gap: 15px; 
  padding: 20px 0; 
}

.social-icons a {
  display: inline-block;
}

.social-icons img {
  width: 30px; /* width: 40px; height: 40px;  */
  height: 30px;
  object-fit: contain; 
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.social-icons img:hover {
  transform: scale(1.1);
  opacity: 0.2;
}

@media (max-width: 600px) {
  .social-icons img {
    width: 20px; /* width: 30px; height: 30px;  */
    height: 20px;
  }
}

/* =============== COPYRIGHT ======================== */

#copyright {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  white-space: nowrap;/*uz mobilajām ierīcēm teksts nepārlauzīsies*/
}

/* =========================================================================
                            FOOTER END
========================================================================= */          