        :root{
            /* Standartinis nustatymas visoms naršyklėms */
            font-family: Inter, sans-serif;
  
        /* Įjungia automatines ligatūras ir simbolių pataisymus (pvz., Chrome naršyklėje) */
            font-feature-settings: 'liga' 1, 'calt' 1;
            --bg:#fff;
            --bg-darker: #F2F2F2;
            --text-light:#fff;
            --accent-light:#7BBE98;
            --accent:#038B45;
            --accent-dark:#003D1E;
            --black:#000;
            --txt-s-h2:40px;
        }
        @supports (font-variation-settings: normal) {
          :root { 
            font-family: InterVariable, sans-serif; 
          }
        }

        *{box-sizing:border-box}

        html{
         scroll-behavior: smooth;
            height: 100%;
            overflow-x: hidden;
        }

        main{
            flex:1;
        }

         body{
            display: flex;
            flex-direction: column;
            min-height:100vh;
            overflow-x: hidden;
            margin:0;
            font-family: inherit;
            font-size: var(--txt-s-h3);
            color:var(--black);
            font-weight: 400;
            background:var(--bg);
            -webkit-font-smoothing:antialiased;
            -moz-osx-font-smoothing:grayscale;
        }

        h2{
            font-size: var(--txt-s-h2);
            font-weight: 700;
            color:var(--accent);
            margin:0;
        }
        
        /*----------- HERO ----------------- */

        .hero-s {
            /* Replace with your actual image path */
            background-image: url('../assets/privatumas/images/natos.webp');
            background-size: cover;
            background-position-y: 80%;
            height: 150px; /* Adjust height as needed */
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            text-align: left;
            margin-top:120px;
        }

        /* Dark overlay to ensure text readability */
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            align-content: flex-start;
            justify-content: left;
        }

        .hero-overlay::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            
            /* The Gradient Logic */
            background: linear-gradient(
                to right, 
                rgba(0, 0, 0, 1) 0%,     /* Black at top (70% opacity) */
                rgba(0, 0, 0, 0.5) 30%,      /* Becomes transparent at 30% */
                rgba(0, 0, 0, 0.5) 70%,      /* Stays transparent until 70% */
                rgba(0, 0, 0, 1) 100%    /* Black at bottom (70% opacity) */
            );
            
            pointer-events: none; /* Allows clicks to pass through to the image */
        }

        .hero-content {
            z-index: 1;
            padding:0px 12vw;
        }

        .hero-logo img {
            max-width: 120px; /* Adjust based on your logo size */
            margin-bottom: 15px;
        }

        .hero-title {
            font-size: 3rem; /* Large, bold heading */
            font-weight: 700;
            text-transform: none; /* Matches the "ist chorą" style */
            margin: 0;
            letter-spacing: 1px;
            line-height:40px;
        }

        .hero-s span{
            font-size: 1rem;
            letter-spacing: normal;
        }




        /*--------- PRIVATUMAS ------------------------------------*/

       .privatumas-s{
            background-color: var(--bg);
            width: 100%;
            padding:1rem 12vw 100px 12vw;
        }
    
        .updated {
        font-size: 0.85rem;
        color: var(--accent);
        margin-bottom: 48px;
        font-style: italic;
        }
    
        section {
        margin-bottom: 48px;
        }
    
        .privatumas-s h2 {
        font-size: 1.25rem;
        color: var(--accent);
        font-weight: bold;
        margin-bottom: 16px;
        padding-left: 12px;
        border-left: 3px solid var(--accent);
        }
    
        p {
        margin-bottom: 14px;
        color: var(--text);
        }
    
        .privatumas-s ul {
        display: flex;
        flex-direction: column;
        margin: 12px 0 14px 24px;
        text-wrap: wrap;
        }
    
        ul li {
        margin-bottom: 8px;
        }
    
        table {
        width: 100%;
        border-collapse: collapse;
        margin: 16px 0;
        font-size: 0.9rem;
        }
    
        th {
        background: var(--black);
        color: var(--text-light);
        padding: 10px 14px;
        text-align: left;
        font-weight: bold;
        }
    
        td {
        padding: 10px 14px;
        vertical-align: top;
        }
    
        tr:nth-child(even) td { background: #f3efe9; }
    
        .contact-box {
        background: var(--bg-darker);
        color: var(--black);
        border-radius: 10px;
        padding: 10px 32px;
        margin-top: 16px;
        }
    
        .contact-box p { color: var(--black); }
        .contact-box strong { color: var(--accent); }
    
        .consent-btn-row {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 16px;
        }
    
        .contact-box button{
            color:var(--black);
            text-decoration: underline;
            transition: color 0.3s ease;
        }

        .contact-box a{
            transition: color 0.3s ease;
        }

        .contact-box button:hover,
        .contact-box a:hover{
            color:var(--accent);
        }

        .privatumas-s .btn-1, .privatumas-s .btn-2{
            margin:0;
            background-image: none;
            padding-right: 30px;
        }

        .privatumas-s .btn-1:hover{
            display: inline-flex;
            align-items: center;
            height:39px;
            width: fit-content;
            font-weight: 600;
            color: var(--bg);
            background-color: var(--accent);
            border: 2px solid var(--accent);
            border-radius: 10px;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .privatumas-s .btn-2{
            padding-right:35px;
            background-position: right 15px center;
        }

        .privatumas-s .btn-2:hover{
            display: inline-flex;
            align-items: center;
            margin:0;
            height:39px;
            width: fit-content;
            padding:7px;
            padding-left:28px;
            padding-right:35px;
            font-weight: 600;
            color: var(--black);
            background-color: var(--bg);
            border: 2px solid var(--black);
            border-radius: 10px;
            transition: all 0.3s ease;
            text-decoration: none;
        }
    
        #consent-status {
        margin-top: 12px;
        font-size: 0.85rem;
        color: var(--accent);
        font-style: italic;
        }
    
        a { color: var(--black); }

        @media (max-width: 768px)
        {
            .hero-title{
            font-size: 2rem;
            font-weight: 700;
            margin:0;
            }

            .text-anchor{
                width: auto;
                margin-bottom: 0;
                padding-left: 0;
                align-items: center;
                align-content: center;
            }

            .artimiausi-s {
                flex-direction: column;
                padding: 60px 5vw;
                gap: 30px;
            }
            .privatumas-s .btn-1{
                background-position: right 20px center;
                height:39px;
                padding:0px 7px;
                padding-left:28px;
                padding-right:40px;
                align-items: center;
                align-content: center;
                text-align: center;
            }

            .side-image img {
                width: 90vw;
                height: auto;
            }

            .events-gallery img {
                height: 250px; /* Smaller height for mobile */
            }

            .card-image{
                height: auto;
            }

            .jaun-logo-green{
                display: none;
                height: 80px;
            }


            .side-image-jub{
                display: none;
            }
            .side-image-jub.phones{
                display: block;
            }

            /*--- modal for images*/
            #modalImg {
                display: block !important;
                opacity: 1 !important;
                width:100vw !important;
                height: auto !important;
            }

            .img-modal-content {
                z-index: 7;
                height: 100%;
                width: 100%;
            }

            #modalCaption{
                padding: 0px 10px;
            }

            .modal-close {
            position:absolute;
            top:-10px; 
            right:5px; 
            font-size:40px; 
            cursor:pointer;

            }

            /* modal for events/news*/

            #modal-body .card-image {
            width: 100%;
            height: auto;
            overflow: hidden;
            }

            #modal-body .card-image img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                object-position: center; 
                display: block;
            }
            #modal-body  .card-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 5px 0 10px 0;
            color: var(--bg);
            }

            .hero-s {
            margin-top:100px;
            }


            /* Paslepiame originalią lentelės antraštę */
    .privatumas-s table thead {
        display: none;
    }

    /* Kiekviena eilutė tampa blokiniu elementu su rėmeliu */
    .privatumas-s table, 
    .privatumas-s tbody, 
    .privatumas-s tr, 
    .privatumas-s td {
        display: block;
        width: 100%;
    }

    .privatumas-s tr {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .privatumas-s td {
        text-align: left;
        padding-left: 50%;
        position: relative;
        word-break: break-word;       /* Perkelia ilgus žodžius į kitą eilutę (senesnėms naršyklėms) */
        overflow-wrap: break-word;
    }

    .privatumas-s td::before {
        content: attr(data-label);
        /* Pozicionavimas: užpildome kairę pusę nuo viršaus iki apačios */
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;                 /* Užtikrina, kad fonas siektų apačią, net jei dešinėje teksto daug */
        width: 40%;                /* Kairiojo stulpelio plotis */
        
        /* Išvaizda */
        background-color: var(--accent-dark); /* Jūsų tamsiai žalia spalva */
        color: var(--text-light);             /* Balta spalva tekstui */
        
        /* Teksto centravimas fone */
        display: flex;
        align-items: center;
        padding-left: 15px;
        font-weight: bold;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        }
    }