/* Pamatstili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Gluda ritināšana uz enkur saitēm */
html {
    scroll-behavior: smooth;
}

body {
    background: #f4f4f4;
    font-family: 'Poppins', sans-serif;
}

/* Pamat satura paslēpšana priekš preloader */
.hide-main-content .navbar,
.hide-main-content .hero,
.hide-main-content .container,
.hide-main-content #loginModal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

/* Pamat satura parādīšana pēc preloader */
.show-main-content .navbar,
.show-main-content .hero,
.show-main-content .container,
.show-main-content #loginModal {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0s 0s;
}

/* --- Ievada ekrāna (Preloader) stili --- */
#introPreloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f4f4;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.preloader-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: bounceAndScale 3.5s ease-in-out infinite;
    opacity: 1;
    transform: scale(1.3);
    margin-bottom: 20px;
}

.preloader-top-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.preloader-pv-box {
    background-color: #000;
    color: #fff;
    font-weight: 800;
    font-size: 2.4rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.preloader-star {
    color: #7BC4F2;
    font-size: 2rem;
    line-height: 1;
    animation: pulse 2.5s ease-in-out infinite alternate;
}

.preloader-nordic {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #7BC4F2;
}

.preloader-line {
    width: 150px;
    height: 2px;
    background-color: #3498db;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    margin-left: 0;
    margin-right: auto;
}

.preloader-logistics {
    color: #A0A0A0;
    font-size: 1rem;
    font-weight: 300;
}

.preloader-tagline {
    color: #013A6B;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: normal;
    text-align: center;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 2s ease-out forwards;
    animation-delay: 0.5s;
}

/* Preloader animācijas definīcijas - apvienotas vienuviet */
@keyframes bounceAndScale {
    0%, 100% {
        transform: scale(1.3) translateY(0);
    }
    50% {
        transform: scale(1.4) translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.6);
    }
    50% {
        transform: scale(1.9);
    }
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Beidzas preloader stili un animācijas */


/* Navigācijas josla */
.navbar {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    /* 🔥 SAMAZINĀTS: Samazinām sānu polsterējumu (no 5rem uz 2rem), lai galvene būtu šaurāka */
    padding: 0.05rem 0.5rem; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    min-height: 60px; 
}

/* Jaunais konteiners abiem numuriem */
.navbar-contact-info {
    flex-grow: 0; 
    display: flex;
    flex-direction: column;
    /* CENTRĒJAM LABAJĀ PUSĒ */
    align-items: flex-end; 
    justify-content: center;
    /* !!! JĀPIEVIENO ŠIS !!! Lai atrisinātu 2. rindu */
    order: 2; 
    
    /* Pielāgojiet šīs vērtības, ja nepieciešams */
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #013A6B;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: default;
    margin-bottom: 0.2rem;
}

.contact-item .fas.fa-phone {
    margin-right: 0.8rem;
    padding: 0.2rem;
    color: #7BC4F2;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-item a .fab.fa-whatsapp {
    margin-right: 0.8rem;
    padding: 0.2rem;
    color: #25D366 !important;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-item a {
    color: #013A6B;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Hover efekts uz telefona numura rindu */
.contact-item:first-child:hover {
    color: #7BC4F2;
}

/* Hover efekts uz WhatsApp numura linku */
.contact-item a:hover {
    color: #7BC4F2;
}

/* JAUNI STIILI - Ikonu palielināšana uz HOVER */
.contact-item:first-child:hover .fas.fa-phone {
    transform: scale(1.2);
}

.contact-item a:hover .fab.fa-whatsapp {
    transform: scale(1.2);
}

.contact-item:first-child:hover .fas.fa-phone {
    color: #013A6B;
}

/* Navigācijas saites */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0; /* Šī līnija ir svarīga, lai novērstu noklusējuma atstarpi */
}

.hamburger-menu,
.close-menu {
    display: none;
}

.nav-links li a {
    text-decoration: none;
    color: #013A6B;
    font-weight: 400;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}
.nav-links li a:hover {
    color: #7BC4F2;
}

/* Saites, kas tagad kalpos kā poga (Log In) */
#loginBtn {
    background-color: #013A6B;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-left: 1rem;
    text-decoration: none;
}

#loginBtn:hover {
    background-color: #002D54;
    color: white !important;
}

/* Logo stili */
.navbar-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    /* 🔥 LOGOTIPA PALielINĀŠANA (no 0.6 uz 0.8) */
    /* transform: scale(0.9); 
    transform-origin: left center; */
    /* 🔥 PĀRVIETOJUMS PA KREISI, lai kompensētu lielo izmēru */
    margin-left: 0px; 
    margin-top: 0px; /* Nedaudz augstāk, lai būtu centrā */
}
.top-line {
    display: flex;
    align-items: center;
    /* 🔥 LABOT: Izlīdzinām pa kreisi, lai neaizņemtu lieku vietu pa labi */
    justify-content: flex-start; 
    gap: 0;
    margin-bottom: 0;
}
.pv-box {
    background-color: #000;
    color: #fff;
    font-weight: 800;
    font-size: 2.4rem; /* Bija 2.4rem */
    padding: 0px 0.4rem;
    border-radius: 4px;
    min-width: 90px; /* Nedaudz platāks */
    text-align: center;
    display: inline-block;
    margin-right: 0.5px;
}
.star {
    /* Pārliecināmies, ka ir redzama un nestrādā iepriekšējās margin nobīdes */
    display: block !important; 
    color: #7BC4F2;
    line-height: 1; /* Nodrošina, ka tā ir vertikāli labi centrēta */
    margin: 0; 
    padding: 0;
    
    /* 🔥 SAMAZINĀM IZMĒRU (visticamāk, galvenais, kas jālabo) */
    /* Izmēģiniet 0.8rem vai 0.9rem */
    font-size: 0.9rem; 
    
    /* 🔥 Pievienojam atstarpi no kreisās puses, lai labāk atdalītu no "NORDIC" */
    margin-left: 5px; 
}
.nordic {
    display: block; 
    font-weight: 800;
    font-size: 1.4rem; 
    letter-spacing: 2px;
    color: #7BC4F2;
    margin-left: 0;
    margin-top: 0;

    /* 🔥 SVARĪGI: NOŅEMAM šīs trīs līnijas no Nordic, 
       jo tās tagad ir uz jaunā `.nordic-line` konteinera */
    border-bottom: none; 
    padding-bottom: 0; 
    margin-bottom: 0; 
    width: auto; /* Var atstāt arī automātiski */

    /* 🔥 Pievienojam atstarpi PĒC teksta pirms zvaigznes */
    margin-right: 5px;
}
.line {
    display: none;
    /* 🔥 PALielINĀTA LĪNIJA */
    width: 120px; /* Bija 100px */
    height: 3px; /* Bija 2px */
    background-color: #3498db;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    margin-left: 0;
    margin-right: auto;
}

.text-group {
    display: flex; /* Ieslēdzam Flexbox */
    flex-direction: column; /* Vertikāli izkārtojums */
    align-items: flex-start; /* Izlīdzinām tekstu uz kreiso pusi */
    justify-content: center; /* Vertikāli centrējam tekstu attiecībā pret PV */
    margin-left: 0.6rem; /* Kontrolē atstarpi starp PV kasti un tekstu grupu */
}


.logistics {
    display: block;
    color: #A0A0A0;
    font-size: 0.8rem; 
    font-weight: 300;
    letter-spacing: 1px;
    /* 🔥 PĀRVIETOT PA LABI: Kompensējam nobīdi un logotipa skalojumu (scale). */
    margin-left: 0;
    margin-top: 0;
}

.nordic-line {
    /* Mēs izmantojam Flexbox, lai Nordic un Zvaigzne stāvētu blakus */
    display: flex; 
    align-items: center; /* Vertikāli centrējam zvaigzni ar tekstu */
    
    /* Pārnesam līnijas stilus uz šo konteineru */
    border-bottom: 2px solid #3498db; 
    padding-bottom: 2px;
    margin-bottom: 4px;
    width: fit-content; 
}

.tagline {
    font-size: 0.95rem; 
    color: #5A5A5A;
    margin-top: 0.5rem;
    font-style: italic;
    /* 🔥 PĀRVIETOT PA LABI: Kompensējam nobīdi un logotipa skalojumu (scale). */
    margin-left: 0px; /* Bija -10px, tagad 10px (vai pielāgojiet 10px-20px) */
}

/* --- JAUNI STIĻI Nolaižamai izvēlnei (dropdown) --- */

/* Pielāgojam navigācijas sarakstu, lai atbalstītu nolaižamās izvēlnes */
.nav-links li {
    position: relative;
    display: inline-block;
}

/* Nolaižamās izvēlnes pogas stili */
.dropbtn {
    padding: 14px 16px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: #013A6B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: #7BC4F2;
}

/* Nolaižamās izvēlnes konteiners */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

/* Nolaižamās izvēlnes saites */
.dropdown-content a {
    color: #013A6B;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #7BC4F2;
}

/* Parāda nolaižamo izvēlni, kad kursoru tur virs pogas */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Pielāgojam bultiņas ikonas stilu */
.fa-caret-down {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-caret-down {
    transform: rotate(180deg);
}
/* --- JAUNIE STIĻI BEIDZAS ŠEIT --- */

/* Konteiners un Hero sadaļa */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.hero {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}

/* Hero sekcijas virsraksta un teksta stili */
.hero h1 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 800;
}
.hero p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    background: #7BC4F2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}
.cta-button:hover {
    background: #5AAED9;
}

/* --- Modālā loga stili --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

/* Aizvēršanas poga */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Ievades lauku stili */
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}
.input-group input[type="email"],
.input-group input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.input-group input:focus {
    outline: none;
    border-color: #7BC4F2;
    box-shadow: 0 0 0 2px rgba(123, 196, 242, 0.3);
}

/* Pieslēgšanās poga formā */
.submit-btn {
    background-color: #013A6B;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
.submit-btn:hover {
    background-color: #002D54;
}

/* Animācija */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Modālā loga saites */
.modal-links {
    margin-top: 15px;
    text-align: center;
}

.modal-link {
    display: block;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.modal-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Fona video stili */
#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    filter: brightness(60%);
    object-fit: cover;
}

/* Pārklājums (overlay) virs video */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Hero satura konteiners */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
}

/* ==================================== */
/* Footer Styles */
/* ==================================== */
.main-footer {
    background-color: #013A6B;
    color: #ffffff;
    padding: 60px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

/* Footer navigācijas saraksti */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

/* Kontaktinformācija */
.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1rem;
}

.footer-contact p a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact p a:hover {
    color: #3498db;
}

/* Kājenes kontaktinformācijas stili */
.footer-contact-item {
    display: flex;
    align-items: center;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-contact-item .fas.fa-phone {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1rem;
}

.footer-contact-item .fab.fa-whatsapp {
    margin-right: 10px;
    color: #25D366;
    font-size: 1.5rem;
}

.footer-contact-item a {
    color: #f0f0f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #3498db;
}

/* Footer logo un apraksts (footer-branding) */
.footer-branding .footer-logo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.footer-branding .footer-logo .top-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.footer-branding .footer-logo .pv-box {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 800;
    font-size: 2.4rem;
    border-radius: 4px;
    min-width: 80px;
    display: inline-block;
}

.footer-branding .footer-logo .star {
    color: #3498db;
    font-size: 1.2rem;
    margin-left: 5px;
}

.footer-branding .footer-logo .nordic {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #7BC4F2;
}

.footer-branding .footer-logo .line {
    width: 100px;
    height: 2px;
    background-color: #3498db;
    margin: 5px 0;
}

.footer-branding .footer-logo .logistics {
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-branding .footer-logo .tagline {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 1;
    color: #ffffff;
}

.footer-description {
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Sociālo mediju ikonas */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a i {
    color: inherit;
}

.social-links a img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}


/* Apakšējā kājenes josla (copyright) */
.footer-bottom {
    background-color: #002c5c;
    color: #cccccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    border-top: 1px solid #1a5697;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-top: 1px solid #1a5697;
}

/* --- Par mums sadaļas stili --- */
.about-us-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

#about-us {
    scroll-margin-top: 100px;
}

.about-us-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-us-section h2 {
    font-size: 2.8rem;
    color: #013A6B;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.about-us-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #7BC4F2;
    border-radius: 2px;
}

.about-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #555;
}

.about-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.about-text-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-text-block h3 {
    font-size: 1.8rem;
    color: #013A6B;
    margin-bottom: 15px;
}

.about-text-block h4 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.about-text-block ul {
    list-style: none;
    padding: 0;
}

.about-text-block ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.about-text-block ul li::before {
    content: '✔';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #7BC4F2;
    position: absolute;
    left: 0;
    top: 0;
}

.about-text-block.full-width {
    grid-column: 1 / -1;
}

/* Aicinājuma uz darbību (CTA) sadaļa beigās */
.about-cta {
    text-align: center;
    padding: 40px;
    background-color: #eef7fc;
    border-radius: 8px;
    margin-top: 60px;
}

.about-cta h3 {
    font-size: 2rem;
    color: #013A6B;
    margin-bottom: 15px;
}

.about-cta p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.about-cta .cta-button {
    display: inline-block;
    background-color: #7BC4F2;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-cta .cta-button:hover {
    background-color: #013A6B;
    transform: translateY(-2px);
}

/* --- Kontaktu sadaļas stili --- */
.contact-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333;
}


/* ==================================== */
/* RESPONSĪVIE STIĻI */
/* ==================================== */

/* Šie stili tiek pielietoti tikai tad, ja ekrāna platums ir 768px vai mazāks */
@media (max-width: 768px) {
    /* Galvenās navigācijas joslas pielāgojumi */
    .navbar {
        /* 1. Samazini vertikālo padding (pirmais skaitlis) */
        padding: 0.2rem 1rem; 
        
        /* 2. Samazini vai noņem minimālo augstumu */
        min-height: 50px; /* Bija 60px, vari likt 50 vai 45 */
        
        display: flex;
        align-items: center;
    }

    .contact-section {
        scroll-margin-top: 60px; /* Pielāgo šo ciparu savas navigācijas joslas augstumam */
    }

    /* Pielāgojam logo, lai tas ietilptu mazā ekrānā */
    .navbar-logo {
        transform: scale(0.65);
        transform-origin: left center;
        margin-left: -10px;
        margin-top: 0;
    }
    
    .navbar-logo .pv-box {
    font-size: 2rem;       /* Ļoti lieli burti */
    min-width: 100px;      /* Platāka pamatne */
    padding: 0.5rem 1.2rem; /* Ievērojami vairāk vietas virs, zem un sānos */
    
    display: flex;       
    justify-content: center;
    align-items: center;
    line-height: 1;
    background-color: #000;
    border-radius: 6px;    /* Nedaudz apaļāki stūri lielākai kastei */
}

    .navbar-logo .star {
        font-size: 1rem;
    }

    .navbar-logo .nordic {
        color: #7BC4F2;
        font-size: 1.5rem;
        margin-top: 0.3rem;
    }

    .navbar-logo .logistics {
        font-size: 1rem;
    }
    
    /* Paslēpjam elementus, kas nav nepieciešami mobilajā skatā */
    .navbar-contact-info,
    .nav-links,
    #loginBtn {
        display: none;
    }

    /* --- HAMBURGER UN AIZVĒRŠANAS POGU LABOTIE STIĻI --- */
    .hamburger-menu {
        display: block; /* Padarām hamburgera pogu redzamu */
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #013A6B;
    }

    /* Aizvēršanas pogai sākotnēji jābūt paslēptai. JavaScript to parādīs. */
    .close-menu {
        display: none;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        color: #013A6B; /* Krāsa, kas labi kontrastē ar balto izvēlni */
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    /* Izvēlnes pārveidošana mobilajā skatā */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 1rem 0;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }
    
    .nav-links.active + .close-menu {
        display: block;
    }

    .nav-links li {
        text-align: center;
        margin: 1rem 0;
    }

    /* Pārliecinieties, ka mobilajā versijā izvēlne tiek parādīta pareizi */
    .dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        padding-left: 1rem;
        width: 100%;
        min-width: unset;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Hero sadaļas fonta lieluma samazināšana */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    /* "Par mums" sadaļas fontu un izkārtojuma pielāgojumi */
    .about-us-section {
        padding: 60px 0;
    }
    .about-us-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .about-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-text-block {
        padding: 20px;
    }
    .about-text-block h3 {
        font-size: 1.5rem;
    }
    .about-cta {
        padding: 30px 20px;
    }
    .about-cta h3 {
        font-size: 1.8rem;
    }
    
    /* Kājenes izkārtojuma maiņa */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .footer-column h3 {
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul,
    .footer-legal ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .footer-branding .footer-logo {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 0;
        font-size: 0.85rem;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }
}

/* Nolaižamās izvēlnes stilizācija */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 90px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.has-dropdown > a {
    display: flex; /* Lai bultiņa būtu blakus tekstam */
    align-items: center; /* Lai bultiņa būtu vertikāli centrēta */
}

.has-dropdown > a::after {
    content: '\25BC'; /* Lejupvērstās bultiņas Unicode simbols */
    font-size: 0.7em; /* Bultiņas izmērs */
    margin-left: 5px; /* Atstarpe starp tekstu un bultiņu */
    transition: transform 0.3s ease; /* Pāreja rotācijai */
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg); /* Pagriež bultiņu uz augšu, uzbraucot ar peli */
}

/* Nolaižamās izvēlnes konteiners */
.cta-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Nolaižamās izvēlnes saturs */
.cta-dropdown-content {
    display: none; /* Sākumā slēpts */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 0;
    margin-top: 5px; /* Atstarpe starp pogu un izvēlni */
    border-radius: 5px;
}

/* Nolaižamās izvēlnes saites */
.cta-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Izvēlnes saišu stils, uzbraucot ar peli */
.cta-dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Parāda nolaižamo izvēlni, uzbraucot ar peli uz konteinera */
.cta-dropdown-container:hover .cta-dropdown-content {
    display: block;
}

#cookie-consent-widget {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    display: none; /* Sākumā slēpts ar JavaScript */
    text-align: center;
    border: 1px solid #ddd;
}

.cookie-content h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
}

.cookie-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.cookie-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#accept-cookies {
    background-color: #3498db;
    color: #fff;
}

#accept-cookies:hover {
    background-color: #2980b9;
}

#reject-cookies {
    background-color: #e74c3c;
    color: #fff;
}

#reject-cookies:hover {
    background-color: #c0392b;
}

@media (max-width: 500px) {
    .cookie-buttons {
        flex-direction: column;
    }
    .cookie-button {
        width: 100%;
    }
}

/* Valodu pārslēdzēja karodziņu stils */
.language-switcher img {
    width: 20px;
    height: auto;
    margin-right:5px;
    vertical-align: middle;
}

/* Sākumā paslēpj mobilo valodu pārslēdzēju */
.language-switcher-mobile {
    display: none;
    align-items: center;
    gap: 10px;
}

/* Izmēru korekcija karodziņiem mobilajā versijā */
.language-switcher-mobile img {
    width: 25px; /* Pielāgo izmēru, ja nepieciešams */
    height: auto;
}

/* Rāda mobilo valodu pārslēdzēju un slēpj datora versiju mobilajā skatā */
@media (max-width: 768px) {
    .navbar .language-switcher {
        display: none;
    }
    .navbar .language-switcher-mobile {
        display: flex;
        position: absolute; /* Novieto to precīzi */
        top: 20px;
        right: 60px; /* Attālums no labās malas */
        z-index: 100;
    }
    .navbar-contact-info, .navbar-logo {
        flex: 1; /* Lai palīdzētu ar izvietojumu */
    }
}

/* ==================================== */
/* Valodu Pārslēdzēja Stili (Darbvirsmas) */
/* ==================================== */
.language-switcher-desktop {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #013A6B;
}

.language-switcher-desktop .lang-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    text-decoration: none;
    color: #013A6B;
    transition: color 0.3s ease;
}

.language-switcher-desktop .lang-link:hover {
    color: #7BC4F2;
}

/* Karogu izmērs abām versijām */
.language-switcher-desktop img,
.language-switcher-mobile img {
    width: 24px; 
    height: auto;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Nolaižamās bultiņas stils */
.language-switcher-desktop .fas.fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Nolaižamās izvēlnes konteiners */
.language-switcher-desktop .dropdown-content {
    display: none; /* Sākumā slēpts */
    position: absolute;
    top: 100%;
    right: 0; 
    background-color: #ffffff;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.language-switcher-desktop:hover .dropdown-content {
    display: block; /* Parādīt, kad uzbrauc ar peli */
}

.language-switcher-desktop:hover .fas.fa-chevron-down {
    transform: rotate(180deg);
}

/* Nolaižamās izvēlnes saites */
.language-switcher-desktop .dropdown-content a {
    color: #013A6B;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.language-switcher-desktop .dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #7BC4F2;
}

/* Mobilā valodas izvēlne sākumā paslēpta darbvirsmas režīmā */
.language-switcher-mobile {
    display: none; 
}

/* ==================================== */
/* RESPONSĪVO STIĻU KOREKCIJA */
/* ==================================== */
/* Šis bloks maina esošo media query beigās! */
@media (max-width: 768px) {
    /* ... Jūsu esošie stili ... */

    /* Paslēpt Darbvirsmas izvēlni */
    .language-switcher-desktop {
        display: none !important;
    }

    /* Parādīt Mobilo izvēlni un pozicionēt to */
    .language-switcher-mobile {
        display: flex !important; /* Pārliecina, ka parādās */
        position: absolute; 
        top: 20px;
        right: 60px; /* Nobīdīts prom no hamburgera pogas */
        left: auto;
        transform: none;
        z-index: 1001; 
    }

    /* Pielāgo logo un kontaktu informāciju */
    /* .navbar-logo {   -- Removed empty ruleset to fix error */

    /* Pārliecināmies, ka nav stils, kas to uzliek centrā: */
    /* Ja Jums ir šis stils, lūdzu to noņemiet:
    .navbar .language-switcher-mobile {
        position: absolute; 
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
    */
}

/* ==================================== */
/* Mobilās navigācijas nolaižamās izvēlnes stili */
/* ==================================== */

@media (max-width: 768px) {
    /* Pakalpojumu poga, lai tā izskatītos kā saite */
    .nav-links .dropdown-mobile .dropbtn-mobile {
        background: none;
        border: none;
        color: #013A6B; /* Jūsu galvenā krāsa */
        font-size: 1.1em;
        padding: 10px 0;
        cursor: pointer;
        text-align: left;
        width: 100%; /* Aizņem visu vietu */
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        transition: color 0.3s;
    }

    .nav-links .dropdown-mobile .dropbtn-mobile:hover {
        color: #7BC4F2; /* Sekundārā krāsa */
    }

    /* Bultiņas rotācija, kad izvēlne ir atvērta (izmantojot .active klasi) */
    .nav-links .dropdown-mobile.active .dropbtn-mobile i {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    /* Nolaižamās izvēlnes saturs */
    .dropdown-content-mobile {
        display: none; /* Sākumā slēpta */
        padding-left: 20px; /* Atkāpe labākai redzamībai */
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        width: 100%;
    }

    /* Nolaižamās izvēlnes saites */
    .dropdown-content-mobile a {
        padding: 5px 0;
        display: block; /* Katra saite atsevišķā rindā */
        font-size: 1em;
        color: #013A6B; 
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .dropdown-content-mobile a:hover {
        color: #7BC4F2;
    }

    /* Parādīt saturu, kad .active klase ir pievienota */
    .dropdown-mobile.active .dropdown-content-mobile {
        display: block; /* Rādīt bloku */
        max-height: 200px; /* Liels augstums, lai nodrošinātu animāciju */
        padding-top: 5px; 
        padding-bottom: 5px;
    }
}

/* 1. Izveidojam vietu zvaigznei sānā */
.navbar .logo-body {
    display: flex;
    align-items: center; /* Vertikāli centrē zvaigzni pret abām rindām */
    margin-left: 0.8rem;
}

/* 2. Zvaigznes novietojums */
.navbar .star {
    display: block !important;
    color: #7BC4F2;
    font-size: 1.2rem;
    margin-right: 4px; /* Atstarpe starp zvaigzni un tekstu */
    margin-left: 0;
}

/* 3. Teksta bloka sakārtošana */
.navbar .text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0; /* Noņemam veco margin */
}

/* 4. Zilā līnija zem Nordic */
.navbar .nordic-line {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.navbar .nordic {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #2c3e50;
    margin: 0;
}