#hero {
    height: 100vh;
    position: relative;
    background-image: url(https://kagerhouses.com/wp-content/uploads/2026/03/SLIKA-HERO-scaled-1-1.webp) !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    /* Moves content to the bottom */
    padding-bottom: 7rem;
    /* Adjust bottom spacing */
}

.swiper-projekti .swiper-slide {
    max-width: 416px !important;
}

.container.hero {
    width: 100%;
    padding: 7rem 5%;
    /* Adds 5% padding on left and right */
    margin-top: -100px;
}

.hero h1 {
    color: #fff;
    text-align: right;
}

.hero p {
    padding-top: 2rem;
    color: #fff;
}

.hero-button {
    padding-top: 2rem;
}

.intro-center {
    padding: 70px 0rem 8rem 0rem;
        padding-top: 8rem !important;
    padding-bottom: 8rem;
}

.hero-content {
    padding-right: 8rem !important;
}

.video video {
    border-radius: 20px;
}

#projekti {
    padding: 7rem 0rem 0rem 3% !important;

}

.idejne-zasnove {
    padding: 3.5rem 3% !important;
    background: #F1EFE9;
}

.projekti-gumb {
    display: flex;
    justify-content: end;
    align-items: end;
    padding-right: 5% !important;
}

.button-wrapper {
    position: absolute;
    top: 3rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}


.bg-container {
    border-radius: 20px;
    margin-top: 40px !important;
}

.bg-container {
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
    padding-bottom: 3rem;
    gap: 10px;
    border-radius: 20px;
    cursor: pointer;
}

.bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* Initially, both images are hidden */
    transition: opacity 0.3s ease;
    border-radius: 20px;
    /* Smooth transition */
}

.bg-container button {
    padding: 5px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.75);
    /* Increased opacity for better readability */
    border-radius: 5px;
    z-index: 1;
    /* Keeps buttons above images */
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.bg-container button:hover {
    background: rgba(0, 0, 0, 0.6);
    /* Slightly more visible on hover */
    color: #fff;
    opacity: 1;
}


.bg-container button.selected {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    backdrop-filter: blur(4px);
    opacity: 1;
}

.why {
    background-color: #F1EFE9;
    padding: 7rem 0rem 3rem 0rem;
}

/* ACCORDION*/
.plusminus {
    position: relative;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.submenu {
    padding-top: 2rem;
}

.submenu p {
    color: #212121;
    opacity: 0.8;
}

.plusminus.active:before {
    transform: translatey(-50%) rotate(-90deg);
    opacity: 0;
}

.plusminus.active:after {
    transform: translatey(-50%) rotate(0);
}

.plusminus:before,
.plusminus:after {
    content: "";
    display: block;
    background-color: #EE3524;
    position: absolute;
    top: 50%;
    left: 0;
    transition: 0.35s;
    width: 100%;
    height: 2px;
}

.plusminus:before {
    transform: translatey(-50%);
}

.plusminus:after {
    transform: translatey(-50%) rotate(90deg);
}

.link {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 1.5rem 0rem;
    border-bottom: 1px solid #DCDCDC;
}

.accordion-tab {
    padding: 2rem 0px;
}

.accordion-tab button {
    margin-top: 2rem;
}

.accordion-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

/* GALLERY*/

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.big-image {
    position: relative;
    width: 100%;

    height: 650px;

    overflow: hidden;
    border-radius: 20px;
}

.big-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.thumbnails {
    display: flex;
    gap: 10px;
    justify-content: end;
}

.thumb {
    width: 70px;
    height: 70px;

    border-radius: 5px;
    transition: opacity 0.3s;
    border: 2px solid transparent;
    object-fit: cover;
}



.gallery-column {
    padding-left: 8rem !important;
}

.bg-container button:hover {
    border: 0px;
}

.outside-inside {
    padding: 3rem 0px;
}

.right-content-heading {
    padding-left: 10rem !important;
}

.about {
    padding: 7rem 5% 7rem 0% !important;
    padding-top: 0rem !important;
}

.about-gallery {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-right: 1rem !important;
}

.about-gallery img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    max-width: calc(50% - 1rem);
    border-radius: 5px;
}

.about .col-5 {
    padding-left: 5rem;
}

.about .col-5 video {
    margin: 5rem 0px 3rem 0px;
    border-radius: 5px !important;
}

.news {
    padding: 7rem 0px;
}

@media only screen and (min-width: 600px) {
    .center-text {
        width: 50% !important;
        margin: 0 auto;
    }
}

/* SWIPER*/

.latest-posts-swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper {
    width: 100%;
    padding-top: 4rem !important;
}

.swiper-projekti {
    width: 100%;
    padding-top: 4rem !important;
    overflow: hidden;
    ;
}

.swiper-wrapper {
    display: flex;
    height: fit-content !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: fit-content;
}

.post-item {
    width: 100%;
    position: relative;
}

.post-image img {
    width: 100%;
    border-radius: 0px;
    height: 25vw;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.post-title {
    font-size: 20px;
    line-height: 28px;
    padding-bottom: 1rem;

}

.post-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: #fff;
    /* Red background, adjust as needed */
    color: #000;
    padding: 4px 10px;
    font-size: 16px;
    border-radius: 5px;
}

.read-time {
    color: #EE3524;
}

.post-loop-meta {
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.123);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    min-height: 40px;
    overflow: hidden;  
}


.latest-posts-swiper .post-loop-meta {
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.123);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    min-height: 115px !important;
    max-height: 115px;
    overflow: hidden;  
}

.swiper-button-next,
.swiper-button-prev {
    position: relative !important;
}

p.read-time {
    position: absolute;
    bottom: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}


.swiper-button-prev,
.swiper-button-next {
    width: 60px !important;
    height: 60px !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #F1EFE9;
    border-radius: 100%;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover {
    background-color: #000;
}

.swiper-button-prev:hover svg path {
    stroke: #fff !important;
}

.swiper-button-next:hover {
    background-color: #000;
}

.swiper-button-next:hover svg path {
    stroke: #fff !important;
}

.buttons-project {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 20px !important;
    height: 20px !important;
}

.swiper-horizontal>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    position: relative !important;
    margin: 4rem 5% 0% 0% !important;
    cursor: grab;
    width: 90% !important;
    height: 3px !important;
    margin-top: 1.5rem !important;
}

.swiper-scrollbar-drag {
    background: #585942 !important;
}

.latest-posts-swiper .swiper-scrollbar.swiper-scrollbar-horizontal {
    position: relative !important;
    margin: 4rem 0% 0% 0% !important;
    cursor: grab;
    width: 50% !important;
    float: right;
    margin-top: 40px !Important;
}

.latest-posts-swiper button {
    margin-top: 3rem;
}


.cta {
    padding: 7rem 0%;
    background-color: #F1EFE9;
}

.cta-image {
    background-color: #fff;
    padding: 4rem !important;
}

.cta .row {
    gap: 1rem;
}

.cta .cta-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left !important;
}

.post-image {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-meta {
    position: absolute;
    bottom: 20px;
    right: 20px;

    display: flex;
    gap: 5px;
}

.meta-tag {
    background: #FFF;
    color: #EE3524;
    padding: 0px 8px;
    font-size: 16px;
    border-radius: 5px;
}

.about .col-5 {

    width: 40% !important;
}

#212121

/* MARQOUEE */
.partnerji {
    width: 80%;
    overflow: hidden;

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80% !important;
    margin: auto;
   
}

.wrapper {
    display: flex;
    justify-content: space-between;
    /* Distributes evenly */
    flex-wrap: nowrap;
    /* Ensures all items stay in a single row */
    width: 100%;
}

.box {
    flex: 1 1 calc(100% / 6);
    /* Ensures 6 boxes are always visible */
    min-width: calc(100% / 6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    /* Adjust spacing */
}

.test img {
    max-width: 100%;
    height: auto;
}

/*MOBILE */

@media (max-width: 768px) {
    .hero {
        align-items: normal;

    }
}

@media (max-width: 768px) {
    .hero h1 {

        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-right: 0rem !important;
    }
}

@media (max-width: 768px) {
    .right-content-heading {
        padding-left: 0rem !important;
    }
}

@media (max-width: 768px) {
    .projekti-gumb {
        display: flex;
        justify-content: start;
        align-items: end;
        padding-right: 0% !important;
        margin-top: 3rem !important;
    }
}

@media (max-width: 768px) {

    .swiper-horizontal>.swiper-scrollbar,
    .swiper-scrollbar.swiper-scrollbar-horizontal {

        width: 95% !important;
    }
}

@media (max-width: 768px) {
    #projekti {
        padding: 7rem 5% 0rem 5% !important;
    }
}

@media (max-width: 768px) {

    .col-5,
    .col-7 {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .about .col-5 {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .about .col-5 {
        padding-left: 0rem;
    }
}

@media (max-width: 768px) {
    .gallery-column {
        padding-left: 0rem !important;
    }
}

@media (max-width: 768px) {
    .big-image {
        position: relative;
        width: 100%;
        height: 450px;

    }
}

@media (max-width: 768px) {
    .why {
        background-color: #F1EFE9;
        padding: 7rem 5% 3rem 5%;
    }
}

@media (max-width: 768px) {
    .bg-container {
        width: 100%;
        height: 500px;

    }
}

@media (max-width: 768px) {
    .news {
        padding: 5rem 0px;
    }
}

@media (max-width: 768px) {
    .cta {
        padding: 5rem 5% !important;

    }
}

.button-white-border:hover {
    background-color: #fff;
    color: #000;
}

.button-grey:hover {
    background-color: #fff;
    color: #000;
}
.container,
.wrapper,
.featured-image-col,
.about-gallery {
  will-change: transform;
}