: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;
            --black:#003D1E;
            --txt-s-h2:40px;
            --black:#000;
        }
        @supports (font-variation-settings: normal) {
          :root { 
            font-family: InterVariable, sans-serif; 
          }
        }

        *{box-sizing:border-box}

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

         body{
            overflow-x: hidden;
            margin:0;
            font-family: inherit;
            font-size: var(--txt-s-h3);
            color:var(--black);
            font-weight: 400;
            -webkit-font-smoothing:antialiased;
            -moz-osx-font-smoothing:grayscale;
        }

        
        
        /*----------- HERO ----------------- */

        .hero-s {
            /* Replace with your actual image path */
            background-image: url('../assets/pagrindinis/naujienos/images/jaunyste-gameon2.webp');
            background-size: cover;
            background-position-y: 30%;
            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;
        }

        /*--------- BREADCRUMB ---------------*/
        .crumb-s{
            padding:8px 12vw;
        }

        ol{
            padding:0;
            margin:0;
        }
    

        .breadcrumb-container li:after {
            content: "";
            color:var(--black);
            font-size: 1rem;
            margin: 0;
            padding: 0;
        }

        .breadcrumb-list {
            display: flex;
            list-style: none;
            font-family: 'Inter', Sans-Serif;
            padding: 0;
            font-size: 1rem;
        }

        .breadcrumb-item {
            display: flex;
            align-items: center;
            color: var(--black); /* The green color from your image */
        }

        .breadcrumb-item a {
            text-decoration: none;
            color: inherit;
            font-weight: 300;
            padding: 0px 3px;
            font-size: 1rem;
            background-color: transparent;
            letter-spacing: normal;
        }

        /* Adds the ">" separator automatically */
        .breadcrumb-item + .breadcrumb-item::before {
            content: "\276F";
            padding: 0 10px;
            color:var(--accent);
            font-size: 12px;
        }

        /* Makes the current page look slightly different (optional) */
        .breadcrumb-item.active {
            font-weight: 300;
            pointer-events: none; /* User can't click the page they are already on */
        }

        /*--------- naujienos JAUNYSTES PASIRODYMAI ------------------------------------*/


        /*---- MENESIAI ---- */

        .month-timeline {
            grid-column: 1 / -1; /* Makes the timeline span across all grid columns */
            display: flex;
            align-items: center;
            margin-top: 0px;
        }

        .month-timeline h2 {
            color: var(--black); /* Your dark green */
            font-weight: 700;
            margin-right: 20px;
            font-size: 40px;
        }

        .timeline-line {
            flex-grow: 1;
            height: 2px;
            background-color: var(--black); /* Your lighter green line */
        }


        h2{
            font-size: var(--txt-s-h2);
            font-weight: 700;
            margin:0;
        }

       .event-card {
            width: 100%; 
            max-width: 610px; 
            border-radius: 5px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            transition: transform 0.2s;
            position: relative; /* ✅ būtina badge-new absoliučiai pozicijai */
            --bg-image: none;
        }

        .card-image {
            height: 260px; /* or whatever height you want for main page cards */
            width: 100%;
            overflow: hidden;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            align-content: center;
            position: relative;
        }

        .card-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: var(--bg-image);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            filter: blur(20px);
            transform: scale(1.1);
            z-index: 0;
        }


        .card-image img {
            max-height: 100%;
            max-width: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            position: relative;
            z-index: 1;
        }
        .card-content {
            padding-top: 16px;
        }
        .card-content a {
            text-decoration: none !important;
        }

        .card-title {
        color: var(--black);
        font-size: 20px;
        font-weight: 600;
        margin: 0 0 10px 0;
        }

        .card-location {
            display: flex;
            align-items: center; /* Vertically centers icon with text */
            align-content: center;
            gap: 8px;            /* Creates the "bullet" spacing */
            font-style: normal;  /* Removes the default address italics */
            color: var(--black);
        }

        
        .card-location img {
            height:18px;
            transform:translateY(3px);
        }
        
        .card-date {
            display: flex;
            align-items: center; /* Vertically centers icon with text */
            align-content: center;
            font-weight: 700;
            gap: 8px;            /* Creates the "bullet" spacing */
            font-style: normal;  /* Removes the default address italics */
            color: var(--black);
        }

        .card-date img{
            height:16px;
            transform:translateY(2px);
        }
                        
        .naujienos-s .btn-1{
            display: inline-flex;
            align-items: center;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
            margin-top: 40px;
        }

      /*-----------  NAUJIENOS -----------------------------------*/

       .naujienos-s{
            background-color: var(--bg);
            width: 100%;
            padding:30px 12vw;
            padding-bottom: 70px;
        }
        
      .naujienos-header {
          display: flex;
          align-items: center;
          gap: 16px;
          flex-wrap: wrap;
          padding-bottom:64px;
      }
      .naujienos-header p {
          margin: 0;
      }
                         /*---- KORTELES ---- */
        .badge-new {
            position: absolute;
            text-align: center;
            width: 110px;
            top: -5px;
            left: 0px;
            z-index: 5;
            background: var(--accent);
            color: #fff;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .6px;
            text-transform: uppercase;
            padding: 6px 10px;
            border-radius: 20px;
            pointer-events: none;
            user-select: none;
            box-shadow: 0 2px 8px rgba(0,0,0,.22);
            animation: badgePulse 2.4s ease-in-out infinite;
        }
        .naujienos-grid {
            display: grid;
            /* Use a fixed pixel value for the max, not 1fr */
            grid-template-columns: repeat(auto-fit, 410px); 
            gap: 30px;
            justify-content: space-between;
        }

        .naujienos-s .card-date {
            font-weight: 400;
        }

        .naujienos-s .btn-2{
            display: inline-flex;
            align-items: center;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
            margin-top: 64px;
        }
        .naujienos-s .btn-1{
            display: inline-flex;
            align-items: center;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
            margin-top: 20px;
        }

        .naujienos-s .event-card{
            background-color: var(--bg-darker);
        }

        .naujienos-s img{
            object-position: top; 
        }



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

            .month-timeline h2{
                font-size: 2rem;
            }

            .breadcrumb-list,
            .breadcrumb-list a{
                font-size: 0.8rem;
            }

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

            .naujienos-s {
                flex-direction: column;
                padding: 60px 5vw;
                gap: 30px;
            }

            .events-grid, .naujienos-grid {
                grid-template-columns: 1fr; /* Stack cards vertically */
                justify-content: center;
            }

            .side-image, .side-image-jub, .events-gallery {
                width: 100%;
                justify-content: center;
            }

            .naujienos-s .btn-2{
                margin-top: 60px; 
            }

            .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: 180px;
            }

            .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);
            }

            .naujienos-s .btn-1{
                margin-bottom: 10px;
            }

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

        }