@charset "UTF-8";

/*
Theme Name: ORA Płock Theme
Theme URI: https://github.com/hubert-m/ora-plock-theme
Author: Hubert Machała
Author URI: https://machala.dev
Requires at least: 6.6.1
Tested up to: 6.6.2
Requires PHP: 8.2
Version: 1.0.21
Slug: ora-plock-theme
License: GNU General Public License v2 or later
Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ullamcorper sapien lacus, id vestibulum libero malesuada eu. Vestibulum eget elit nec lorem rhoncus blandit nec sit amet justo. Ut suscipit viverra hendrerit. Quisque tincidunt placerat efficitur. Maecenas vitae ultrices risus. Aliquam sit amet risus quis purus mollis ultricies. Nam condimentum nisl quam, sed lacinia enim dignissim et. Proin quis efficitur massa. Integer maximus accumsan urna sed luctus. Maecenas eget imperdiet magna, in hendrerit neque. 
*/

:root {
	--primary-background-color: #F0F0F0;
	--secondary-background-color: #FEFEFE;
	--primary-color: #00502E;
    --grey-color: #888888;
    --white-text-color: #F0F0F0;
    --button-hover-background-color: #186041;
	--transition-default: .3s;
    --padding-horizontal: 15px;
    --content-width: 1200px;
	--font-family-default: "Raleway", sans-serif;
	--icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(198, 40, 40, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
	--icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(56, 142, 60, 0.999)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	--icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(65, 84, 98, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}


button,
.wpcf7-submit { all: unset; }
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}


/***********
*
* FONTS
*
***********/


@font-face {
	font-family: 'Font_Awesome_Brands';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url("assets/fonts/fontawesome/fa-brands-400.woff2") format("woff2"), url("assets/fonts/fontawesome/fa-brands-400.ttf") format("truetype");
}

@font-face {
	font-family: 'Font_Awesome_Thin';
	font-style: normal;
	font-weight: 100;
	font-display: block;
	src: url("assets/fonts/fontawesome/fa-thin-100.woff2") format("woff2"), url("assets/fonts/fontawesome/fa-thin-100.ttf") format("truetype");
}

@font-face {
	font-family: 'Font_Awesome_Light';
	font-style: normal;
	font-weight: 300;
	font-display: block;
	src: url("assets/fonts/fontawesome/fa-light-300.woff2") format("woff2"), url("assets/fonts/fontawesome/fa-light-300.ttf") format("truetype"); 
}

@font-face {
	font-family: 'Font_Awesome_Regular';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url("assets/fonts/fontawesome/fa-regular-400.woff2") format("woff2"), url("assets/fonts/fontawesome/fa-regular-400.ttf") format("truetype");
}

@font-face {
	font-family: 'Font_Awesome_Solid';
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url("assets/fonts/fontawesome/fa-solid-900.woff2") format("woff2"), url("assets/fonts/fontawesome/fa-solid-900.ttf") format("truetype");
}

@font-face {
	font-family: 'Font_Awesome_Duetone';
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url("assets/fonts/fontawesome/fa-duotone-900.woff2") format("woff2"), url("assets/fonts/fontawesome/fa-duotone-900.ttf") format("truetype");
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/Raleway-Light-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/Raleway-Regular-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/Raleway-Medium-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/Raleway-SemiBold-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/Raleway-Bold-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/Raleway-ExtraBold-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/***********
*
* GLOBAL STYLES
*
***********/


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

html { scroll-behavior: smooth; }
/*body { font-family: var(--font-family-default); margin: 0; padding: 0; background-color: var(--primary-background-color); font-variant-numeric: lining-nums;}*/

body {
    font-family: var(--font-family-default);
    margin: 0;
    padding: 0;
    background-color: var(--primary-background-color);
    font-variant-numeric: lining-nums;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*position: relative;*/
}

#site-content {
    flex: 1;
}

#scroll-to-top { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; position: fixed; bottom: 10px; right: 10px; background: var(--primary-color); border-radius: 50px; text-decoration: none; color: var(--white-text-color); opacity: .5; transition: var(--transition-default); z-index: 99999; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
#scroll-to-top:before { content: '\f077'; font-family: 'Font_Awesome_Light'; font-size: 24px; }
#scroll-to-top:not(.show) { pointer-events: none; opacity: 0; transform: translateY(100%); }
#scroll-to-top.show { opacity: .5; transform: translateY(0); }
#scroll-to-top:hover { opacity: 1; }

.content-container { max-width: var(--content-width); width: 100%; margin: 0 auto; padding: 0 var(--padding-horizontal); }

i.ico::before { font-style: normal!important; }
.ico-phone::before { content: '\f095'; font-family: 'Font_Awesome_Light'; }
.ico-fb::before { content: '\f39e'; font-family: 'Font_Awesome_Brands'; }
.ico-ig::before { content: '\f16d'; font-family: 'Font_Awesome_Brands'; }
.ico-tiktok::before { content: '\e07b'; font-family: 'Font_Awesome_Brands'; }
.ico-yt::before { content: '\f167'; font-family: 'Font_Awesome_Brands'; }
.ico-search:before { content: '\f002'; font-family: 'Font_Awesome_Regular'; }

html, body {
    max-width: 100%;
}

#site-content,
#site-header,
#site-footer {
    max-width: 100vw;
    overflow-x: hidden;
}

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

section {
    max-width: 100%;
    overflow-x: hidden;
}

/*#hero,*/
/*#hero * {*/
/*    max-width: 100vw;*/
/*}*/

#hero .n2-section-smartslider {
    overflow: hidden;
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 15px;
        max-width: 100%;
    }

    .aktualnosci-grid,
    .form-data-container,
    #site-footer .footer-widgets {
        max-width: 100%;
    }
}

/***********
*
* HEADER
*
***********/

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 5px var(--padding-horizontal);
}

.left-side-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.left-side-container a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rodo-label {
    font-weight: 800;
    font-size: 20px;
    color: black;
}

.right-side-container {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form .search-input {
    position: absolute;
    right: 40px;
    top: -7px;
    width: 0;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: width var(--transition-default), opacity var(--transition-default), padding var(--transition-default);
    pointer-events: none;
}

.search-form.active .search-input {
    width: 250px;
    opacity: 1;
    pointer-events: auto;
}

.search-form .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0px 0px 50px -25px rgba(66, 68, 90, .9);
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    position: relative;
    z-index: 2;
    transition: color var(--transition-default);
}

.search-button:hover {
    color: var(--primary-color);
}

.green-bg {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 15px 0 0 0;
    width: 100%;
}

.branding-logo {
    height: 131px;
    width: auto;
    flex-shrink: 0;
}

.branding-text-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1;
    max-width: 385px;
    transition: opacity var(--transition-default);
}

.branding-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1;
    max-width: 385px;
}

.branding-line {
    font-weight: 600;
    font-size: 32px;
    color: var(--white-text-color);
    line-height: 1.2;
}

@media (max-width: 520px) {
    .branding-line {
        font-size: 24px;
    }
}

@media (max-width: 440px) {
    .branding-line {
        font-size: 18px;
    }
    .branding-text {
        max-width: unset;
    }
    .branding-logo {
        height: 100px;
    }
}

@media (max-width: 350px) {
    .site-branding {
        flex-direction: column;
        gap: 20px;
    }
}

/*@media (max-width: 768px) {*/
/*    .branding-wrapper {*/
/*        gap: 15px;*/
/*        padding: 10px 0;*/
/*    }*/

/*    .branding-logo {*/
/*        height: 50px;*/
/*    }*/

/*    .branding-line {*/
/*        font-size: 16px;*/
/*    }*/
/*}*/

#site-navigation {
    background-color: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    transition: box-shadow var(--transition-default);
    will-change: transform;
}

.nav-wrapper.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 20px 0 20px 0;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

#primary-menu li a {
    color: var(--white-text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-default);
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
}

#primary-menu > li > a {
    padding: 0 5px;
    display: block;
}

@media (min-width: 769px) {
    #primary-menu > li > a::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -7px;
        width: 0;
        height: 1px;
        background-color: var(--white-text-color);
        transition: width var(--transition-default), left var(--transition-default);
    }

    #primary-menu > li:hover > a::before,
    #primary-menu > li.current_page_item > a::before {
        width: 100%;
        left: 0;
    }
}

#primary-menu li {
    position: relative;
}

#primary-menu li.menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font_Awesome_Regular';
    margin-left: 8px;
    font-size: 14px;
    transition: transform var(--transition-default);
    display: inline-block
}

@media (max-width: 768px) {
    #primary-menu li.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 769px) {
    #primary-menu li.menu-item-has-children:hover > a::after {
        transform: rotate(-180deg);
    }
}

#primary-menu li.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 9998;
}

#primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background-color: var(--secondary-background-color);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0px 0px 50px -25px rgba(66, 68, 90, .9);
    border-radius: 5px;
    /*border-top: 3px solid var(--primary-color);*/
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-default), transform var(--transition-default);
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 768px) {
    #primary-menu li.menu-item-has-children.open .sub-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (min-width: 769px) {
    #primary-menu li.menu-item-has-children:hover .sub-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

#primary-menu .sub-menu li {
    padding: 0;
    margin: 0;
}

#primary-menu .sub-menu li a {
    padding: 12px 24px;
    display: block;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition-default);
}

#primary-menu .sub-menu li a:hover {
    background-color: #f8f8f8;
    border-left-color: var(--primary-color);
    padding-left: 28px;
    opacity: 1;
}

#primary-menu .sub-menu li + li {
    border-top: 1px solid #e8e8e8;
}

.mobile-logo {
    display: none;
    height: 40px;
    width: auto;
    opacity: 0;
    transition: opacity var(--transition-default);
}


/* Responsive Header */
@media (max-width: 1200px) {
    #primary-menu {
        gap: 30px;
    }

    #primary-menu li a {
        font-size: 12px;
    }
}

@media (max-width: 860px) {
    .top-bar-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .left-side-container {
        gap: 15px;
    }

    .rodo-label {
        font-size: 16px;
    }
}


.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 20px 0;
        color: var(--white-text-color);
        font-size: 24px;
        z-index: 1001;
        margin-left: auto;
    }

    .menu-toggle::before {
        content: '\f0c9';
        font-family: 'Font_Awesome_Light';
        transition: transform var(--transition-default);
        display: inline-block;
    }

    .menu-toggle.active::before {
        content: '\f00d';
        transform: rotate(90deg);
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--padding-horizontal);
    }

    .mobile-logo {
        display: block;
        position: absolute;
        left: var(--padding-horizontal);
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-default);
    }

    .nav-wrapper.scrolled .mobile-logo {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-wrapper:has(#primary-menu.active) .mobile-logo {
        top: 34px;
    }

    .nav-wrapper:has(#primary-menu li.menu-item-has-children.open) .mobile-logo {
        top: 34px;
    }


    #site-navigation {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #primary-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background-color: var(--primary-color);
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
        width: 100%;
        align-self: unset;
        flex-wrap: unset;
        justify-content: start;
    }

    #primary-menu.active {
        height: unset;
        max-height: 60vh;
        opacity: 1;
        padding: 20px 0;
        overflow-y: visible;
    }

    #primary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    #primary-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    #primary-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    #primary-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    #primary-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    #primary-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    #primary-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    #primary-menu.active li:nth-child(6) { transition-delay: 0.3s; }
    #primary-menu.active li:nth-child(7) { transition-delay: 0.35s; }
    #primary-menu.active li:nth-child(8) { transition-delay: 0.4s; }

    #primary-menu li a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        position: relative;
    }

    #primary-menu li a::after {
        display: none;
    }

    #primary-menu li.menu-item-has-children > a {
        padding-right: 50px;
    }

    #primary-menu li.menu-item-has-children > a::after {
        content: '\f078';
        font-family: 'Font_Awesome_Regular';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        transition: transform var(--transition-default);
        display: block;
        margin-left: 0;
    }

    #primary-menu li.menu-item-has-children.open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    #primary-menu li:not(.menu-item-has-children) a::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: var(--white-text-color);
        transition: width var(--transition-default);
        display: block;
    }

    #primary-menu li:not(.menu-item-has-children) a:hover::before {
        width: 100%;
    }

    #primary-menu .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: var(--secondary-background-color);
        border-radius: 5px;
        margin: 0 20px;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin 0.4s ease-out, padding 0.4s ease-out;
        padding: 0;
    }

    #primary-menu li.menu-item-has-children.open .sub-menu {
        opacity: 1;
        margin: 10px 20px;
        padding: 10px 0;
        display: block;
    }

    #primary-menu .sub-menu li:last-child {
        border-bottom: none;
    }

    #primary-menu .sub-menu li a {
        color: var(--primary-color);
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 500;
        border-left: 3px solid transparent;
        transition: all var(--transition-default);
        white-space: normal;
    }

    #primary-menu .sub-menu li a::before {
        display: none;
    }

    #primary-menu .sub-menu li a:hover {
        background-color: #f8f8f8;
        border-left-color: var(--primary-color);
        padding-left: 24px;
    }
}

@media (max-width: 600px) {

    .search-form.active .search-input {
        width: 200px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    .left-side-container {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .left-side-container a {
        gap: 5px;
    }

    .left-side-container img {
        max-height: 20px;
        width: auto;
    }

    .rodo-label {
        font-size: 14px;
    }
}


/***********
*
* HERO SECTION
*
***********/

#hero .green-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .green-button a {
    display: inline!important;
    width: auto!important;
    height: auto!important;
    font-size: 18px!important;
    padding: 20px 35px!important;
}

#hero {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#hero .n2-section-smartslider {
    max-width: 100%;
    margin: 0 auto;
}

#hero .n2-ss-slider-wrapper {
    position: relative;
    width: 100% !important;
}

#hero .n2-ss-slide {
    background-size: cover !important;
    background-position: center !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #hero .n2-ss-slider-wrapper {
        height: auto !important;
        min-height: 450px;
    }

    #hero h1:not(.green-button h1),
    #hero h2:not(.green-button h2),
    #hero h3:not(.green-button h3),
    #hero [class*="n2-font"]:not(.green-button [class*="n2-font"]) {
        font-size: 48px !important;
    }

    #hero .green-button a {
        font-size: 18px !important;
        padding: 20px 10px !important;
    }
}

@media (max-width: 768px) {
    #hero .n2-ss-slider-wrapper {
        min-height: 350px;
    }

    #hero h1:not(.green-button h1),
    #hero h2:not(.green-button h2),
    #hero h3:not(.green-button h3),
    #hero [class*="n2-font"]:not(.green-button [class*="n2-font"]) {
        font-size: 32px !important;
    }

    #hero .green-button a {
        font-size: 14px !important;
        padding: 15px 10px !important;
    }
}

@media (max-width: 480px) {
    #hero .n2-ss-slider-wrapper {
        min-height: 250px;
    }

    #hero h1:not(.green-button h1),
    #hero h2:not(.green-button h2),
    #hero h3:not(.green-button h3),
    #hero [class*="n2-font"]:not(.green-button [class*="n2-font"]) {
        font-size: 24px !important;
    }

    #hero .green-button a {
        font-size: 12px !important;
    }
}

/***********
*
* AKTUALNOŚCI SECTION
*
***********/

#aktualnosci{
    margin-top: 75px;
    position: relative;
    overflow-x: unset;
}

.title-wrapper {
    text-align: center;
}

.title-wrapper h1,
.title-wrapper h2 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 36px 0;
}

.divider {
    width: 100%;
    max-width: 375px;
    height: 1px;
    background-color: var(--grey-color);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .divider {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .divider {
        max-width: 200px;
    }
}


.aktualnosci-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.aktualnosc-box {
    background-color: var(--secondary-background-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 50px -25px rgba(66, 68, 90, .9);
    position: relative;
    min-height: 450px;
}

.aktualnosc-box .aktualnosc-image-wrapper img {
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.aktualnosc-image-wrapper {
    position: relative;
}

.aktualnosc-content {
    padding: 35px 23px 15px 23px;
    background-color: var(--secondary-background-color);
}

.aktualnosc-title {
    text-decoration: none;
    margin: 0 0 25px 0;
    display: block;
    text-align: center;
}

.aktualnosc-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: black;
    margin: 0;
}

.aktualnosc-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-color);
    line-height: 1.3;
    margin-bottom: 60px;
    text-align: center;
}

.aktualnosc-divider {
    width: 50%;
    height: 1px;
    background-color: var(--grey-color);
    margin: 15px auto;
}

.aktualnosc-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 23px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter var(--transition-default);
}

.share-button:hover {
    filter: brightness(0) saturate(100%) invert(19%) sepia(45%) saturate(1825%) hue-rotate(130deg) brightness(95%) contrast(101%);
}

.share-button img {
    width: 20px;
    height: 20px;
}


.read-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-default);
}

.read-more-button:hover {
    transform: translateX(5px);
}

.read-more-button img {
    width: 24px;
    height: 24px;
}

.aktualnosc-date {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    border-radius: 5px;
    padding: 4px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    white-space: nowrap;
}

.aktualnosc-date span {
    font-size: 14px;
    font-weight: 400;
    color: var(--white-text-color);
    padding: 0 30px;
}

.green-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.green-button:not(.n2-ss-layer),
.green-button.n2-ss-layer a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color) !important;
    border-radius: 20px;
    color: var(--white-text-color);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--transition-default);
    padding: 15px 35px;
}

.green-button:not(.n2-ss-layer):hover,
.green-button.n2-ss-layer a:hover {
    background-color: var(--button-hover-background-color) !important;
}

#aktualnosci .content-container {
    position: relative;
    z-index: 1;
}

.aktualnosci-background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    max-width: 1340px;
    width: 100%;
    height: auto;
    z-index: -1;
    opacity: 0.1;
}

@media (max-width: 860px) {
    .aktualnosci-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .aktualnosci-grid {
        grid-template-columns: 1fr;
    }
}

#aktualnosci-list {
    margin-bottom: 50px;
}

/* Paginacja - kontener */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

/* Linki paginacji */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    background-color: #f5f5f5;
    border-color: #2a5934;
    color: #2a5934;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 89, 52, 0.15);
}

/* Aktywna strona */
.page-link.active {
    background-color: #2a5934;
    border-color: #2a5934;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* Przyciski poprzednia/następna */
.page-link.prev,
.page-link.next {
    padding: 8px 16px;
    font-weight: 600;
}

.page-link.prev:hover,
.page-link.next:hover {
    background-color: #2a5934;
    color: #fff;
}

/* Kropki */
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

/* Responsywność */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin-top: 30px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .page-link.prev,
    .page-link.next {
        padding: 6px 12px;
    }
    
    .page-dots {
        min-width: 30px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* Ukryj tekst "Poprzednia/Następna" na małych ekranach */
    .page-link.prev::before {
        content: '‹';
        font-size: 20px;
    }
    
    .page-link.next::before {
        content: '›';
        font-size: 20px;
    }
    
    .page-link.prev,
    .page-link.next {
        font-size: 0;
        padding: 6px 12px;
    }
}

/* Sekcja filtrów */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin: 50px 0 0 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Pole wyszukiwania */
.search-box {
    flex: 1 1 300px;
    min-width: 200px;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input[type="text"]:focus {
    border-color: #2a5934;
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

.search-box input[type="text"]::placeholder {
    color: #999;
}

/* Kontrolki sortowania */
.sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sort-controls select {
    padding: 10px 14px;
    padding-right: 36px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.sort-controls select:hover {
    border-color: #2a5934;
    background-color: #f9f9f9;
}

.sort-controls select:focus {
    border-color: #2a5934;
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

/* Responsywność - tablet */
@media (max-width: 992px) {
    .filters-container {
        gap: 16px;
        padding: 20px;
    }
    
    .search-box {
        flex: 1 1 100%;
    }
    
    .sort-controls {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
}

/* Responsywność - mobile */
@media (max-width: 768px) {
    .filters-container {
        padding: 16px;
        gap: 14px;
        margin: 20px 0 30px;
    }
    
    .sort-controls {
        width: 100%;
    }
    
    .sort-controls select {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13px;
        padding: 9px 32px 9px 12px;
    }
}

@media (max-width: 480px) {
    .filters-container {
        padding: 14px;
        gap: 12px;
    }
    
    .search-box input[type="text"] {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .sort-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .sort-controls select {
        width: 100%;
        flex: none;
    }
}

/* Komunikat braku wyników */
.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #ddd;
    margin: 40px 0;
    min-height: 400px;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.no-results-message h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.no-results-message p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    max-width: 500px;
}

/* Przycisk czyszczenia filtrów */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #2a5934;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(42, 89, 52, 0.2);
    text-decoration: none;
}

.clear-filters-btn:hover {
    background-color: #1e4024;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 89, 52, 0.3);
}

.clear-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 89, 52, 0.2);
}

.clear-filters-btn::before {
    content: "↻";
    font-size: 20px;
    font-weight: bold;
}

/* Responsywność */
@media (max-width: 768px) {
    .no-results-message {
        padding: 60px 16px;
        min-height: 300px;
        margin: 30px 0;
    }
    
    .no-results-icon {
        font-size: 60px;
        margin-bottom: 16px;
    }
    
    .no-results-message h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .no-results-message p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .clear-filters-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .no-results-message {
        padding: 40px 12px;
        min-height: 250px;
    }
    
    .no-results-icon {
        font-size: 50px;
    }
    
    .no-results-message h3 {
        font-size: 20px;
    }
    
    .no-results-message p {
        font-size: 13px;
    }
}

/* Styl dla disabled inputów/selectów */
.search-box input[type="text"]:disabled,
.sort-controls select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/***********
*
* Galerie SECTION
*
***********/

#galeria {
    margin-top: 75px;
}

.secondary-background {
    background-color: var(--secondary-background-color);
    padding: 75px 0;
}

#galeria .content-container {
    position: relative;
}

#galeria .divider {
    margin-bottom: 75px;
}

#galeria .latest-dvgalleries {
    border-radius: 5px!important;
    position: relative;
    overflow: hidden;
}

#galeria .latest-dvgalleries img {
    border-bottom: none!important;
    height: 275px; /* chcemy, żeby element karuzeli zawsze miał taką samą wysokość */
    object-position: center;
    object-fit: cover;
    transition: .3s;
}

#galeria .latest-dvgalleries:hover img {
    transform: scale(1.03) ;
}

#galeria figcaption {
    width: 100%;
    height: auto!important;
    background: linear-gradient(to bottom, transparent, rgba(0, 80, 46, 0.6) 7.5%)!important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    transform: translateY(0);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* żeby dało się też na to kliknąć i odpalić galerię */
    padding: 15px 10px;
}

#galeria figcaption div {
    padding: unset!important;
    height: unset!important;
}

#galeria .dvh5 a {
    color: var(--white-text-color)!important;
}

#galeria figcaption hr,
#galeria figcaption p,
#galeria .dv-readmore-button {
    display: none;
}

/*#galeria .owl-stage-outer {*/
/*    margin: 0 30px;*/
/*}*/

/*#galeria .owl-stage {*/
/*    width: 3839px!important;*/
/*}*/

/*#galeria .owl-item {*/
/*    width: 349px!important;*/
/*    margin-right: 20px!important;*/
/*}*/

#galeria .owl-carousel-container {
    position: relative;
    padding: 0 50px;
}

#galeria .owl-carousel {
    position: static!important;
}

#galeria .owl-nav {
    display: contents;
    justify-content: center;
    margin-bottom: 20px;
}

#galeria .owl-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

#galeria .owl-dot {
    width: 75px;
    height: 10px;
    background-color: var(--grey-color) !important;
    border-radius: 5px;
    transition: background-color var(--transition-default), transform var(--transition-default);
    cursor: pointer;
    gap: 10px;
}

#galeria .owl-dot:hover {
    background-color: var(--button-hover-background-color) !important;
}

#galeria .owl-dot.active {
    background-color: var(--primary-color) !important;
}

#galeria .owl-theme .owl-controls {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 0;
    display: grid;
    position: static!important;
}

#galeria .owl-theme .owl-controls .owl-nav {
    background-color: var(--secondary-background-color)!important;
    position: static!important;
}

#galeria .owl-theme .owl-controls .owl-nav .owl-prev,
#galeria .owl-theme .owl-controls .owl-nav .owl-next {
    background-image: none!important;
}

.owl-prev {
    position: absolute!important;
    left: 0!important;
    top: 125px!important;
}

.owl-prev:after {
    content: '\f053';
    font-family: 'Font_Awesome_Light';
    color: var(--primary-color)!important;
    font-size: 32px;
}

.owl-next {
    position: absolute!important;
    right: 0!important;
    top: 125px!important;
}

.owl-next:after {
    content: '\f054';
    font-family: 'Font_Awesome_Light';
    color: var(--primary-color)!important;
    font-size: 32px;
}

.owl-theme .owl-controls .owl-nav [class*='owl-'] {
    opacity: 1!important;
}

@media (max-width: 768px) {
    #galeria .owl-dot {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        margin: 0 4px !important;
    }
}

@media (max-width: 480px) {
    #galeria .owl-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 3px !important;
    }
}

/***********
*
* Kontakt SECTION
*
***********/

#kontakt {
    margin-top: 75px;
}

#map {
    width: 100%;
    height: 475px;
    border-radius: 5px;
    margin-top: 75px;
    /*border: 3px solid var(--primary-color);*/
    box-shadow: 0px 0px 50px -25px rgba(66, 68, 90, .9);
}

.map-pop-up {
    color: black;
    display: flex;
    gap: 20px;
    width: 275px;
}

.map-pop-up .left-side {
    max-width: 65px;
}

.map-pop-up .left-side img {
    width: 100%;
    height: auto;
}

.map-pop-up .right-side {
    text-align: left;
    width: 100%;
}

.map-pop-up .right-side p {
    margin: 0;
    font-size: 11px;
    margin: 0;
    font-family: var(--font-family-default);
}
.map-pop-up .right-side p.title {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
}

.map-pop-up .right-side a {
    text-decoration: none;
    color: black;
    transition: var(--transition-default);
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 10px;
}

.map-pop-up .right-side a:hover {
    color: var(--primary-color);
}

.map-pop-up .right-side a img{
    max-width: 50px;
    height: auto;
    margin-left: 5px;
}

.map-pop-up .right-side span {
    font-family: var(--font-family-default);
}

.leaflet-tile-container {
    filter: grayscale(100%)!important;
}
.leaflet-touch .leaflet-control-attribution {
    display: none!important;
}

.form-data-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px;
    gap: 125px;
}

@media (max-width: 750px) {
    .form-data-container {
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .form-data-container {
        grid-template-columns: unset;
        display: flex;
        flex-direction: column-reverse;
    }
    #kontakt .wpcf7 {
        width: 100%;
    }
}

/*   Kontakt, formularz   */

#kontakt .left-side-container {
    max-width: 585px;
}

.wpcf7-form {
    width: 100%;
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 860px) {
    .wpcf7-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* na chwilę jeszcze przywracamy 2 pola obok siebie */
@media (max-width: 600px) {
    .wpcf7-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 450px) {
    .wpcf7-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.wpcf7-form .form-row label {
    flex: 1;
}

.wpcf7-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 25px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    border: 1px solid var(--grey-color);
    border-radius: 5px;
    background-color: var(--secondary-background-color);
    width: 100%;
    margin-top: 5px;
    font-family: var(--font-family-default);
    font-size: 14px;
    padding: 8px 12px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
    height: 35px;
}

.wpcf7 textarea {
    min-height: 175px;
    resize: none;
}

.wyslij-button {
    height: 50px;
    width: 150px;
    background-color: var(--primary-color);
    color: var(--white-text-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-default);
    margin-top: 25px;
    text-transform: uppercase;
}

.wyslij-button:hover {
    background-color: var(--button-hover-background-color);
}

.wpcf7-response-output {
    margin: 25px 0 0 0 !important;
    padding: 16px 20px !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(42, 89, 52, 0.2) !important;
    animation: slideDown 0.3s ease-out !important;
}

.wpcf7-spinner {
    margin-left: 10px !important;
    display: inline-block !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: block !important;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .wpcf7-response-output {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    .wpcf7-not-valid-tip {
        font-size: 12px !important;
    }
}


/*   Kontakt, dane teleadresowe   */

#kontakt .right-side-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

#kontakt .right-side-container .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

#kontakt .right-side-container .contact-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#kontakt .right-side-container .contact-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

#kontakt .right-side-container .contact-item p {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: black;
    transition: color var(--transition-default);
}


#kontakt .right-side-container .contact-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;

}

#kontakt .right-side-container .contact-item a p:hover {
    color: var(--primary-color);

}



#kontakt .right-side-container .ora-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 10px auto;
}

#kontakt .right-side-container .ora-name {
    margin: 0 auto 63px auto;
    font-size: 24px;
    font-weight: 500;
    color: black;
    text-align: center;
}

/***********
*
* Polecamy SECTION
*
***********/

#polecamy {
    margin-top: 75px;
}

/*#polecamy .n2-ss-control-bullet {*/
/*    width: 50px !important;*/
/*    height: 8px !important;*/
/*    margin: 0 5px !important;*/
/*    background-color: var(--grey-color) !important;*/
/*    border-radius: 5px !important;*/
/*    transition: background-color var(--transition-default) !important;*/
/*}*/

/*#polecamy .n2-ss-control-bullet:hover {*/
/*    background-color: var(--button-hover-background-color) !important;*/
/*}*/

/*#polecamy .n2-ss-control-bullet.n2-active {*/
/*    background-color: var(--primary-color) !important;*/
/*}*/

/*#polecamy .n2-ss-control-bullet-horizontal {*/
/*    display: flex !important;*/
/*    flex-wrap: nowrap !important;*/
/*    justify-content: center !important;*/
/*    align-items: center !important;*/
/*    gap: 5px !important;*/
/*}*/

@media (max-width: 768px) {
    #polecamy .n2-bullet {
        width: 1px !important;
        height: 1px !important;
        border-radius: 50% !important;
        margin: 0 4px !important;
    }
}

@media (max-width: 480px) {
    #polecamy .n2-bullet {
        width: 1px !important;
        height: 1px !important;
        margin: 0 3px !important;
    }
}


/***********
*
* Footer
*
***********/

#site-footer {
    background-color: var(--primary-color);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

#site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/footer-background-t2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

#site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    opacity: 0.85;
    z-index: 1;
}

#site-footer .content-container {
    position: relative;
    z-index: 2;
}

#site-footer .footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}


#site-footer .footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

#site-footer .footer-widget-area h3 {
    color: var(--white-text-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}

#site-footer .footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#site-footer .footer-widget-area ul li {
    margin-bottom: 5px;
}

#site-footer .footer-widget-area ul li a {
    color: var(--white-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: opacity var(--transition-default);
    display: inline-block;
    padding: 5px 0;
}

#site-footer .footer-widget-area ul li a:hover {
    opacity: 0.8;
}

.copyright-section {
    background-color: var(--primary-background-color);
    padding: 15px 0;
}

.copyright-section p {
    color: black;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

@media (max-width: 935px) {
    #site-footer .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    #site-footer .footer-widget-area {
        text-align: center;
    }

    #site-footer .footer-widget-area h3 {
        text-align: center;
    }

    #site-footer .footer-widget-area ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 480px) {
    #site-footer .footer-widgets {
        grid-template-columns: 1fr;
    }

    #site-footer .footer-widget-area {
        text-align: center;
    }
}


/***********
*
* Page Template
*
***********/

.default-page-container {
    margin-top: 75px;
}

.entry-content {
    margin: 50px 0 75px 0;
}

.prawo-page a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-default);
}

/***********
*
* Post Template
*
***********/

.post a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-default);
}

/***********
*
* Pomoc-prawna Template
*
***********/

.pomoc-prawna-page .entry-content .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.pomoc-prawna-page .entry-content .wp-block-list li {
    margin-bottom: 15px;
}

.pomoc-prawna-page .entry-content .wp-block-list li a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color var(--transition-default);
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.pomoc-prawna-page .entry-content .wp-block-list li a:hover {
    color: var(--primary-color);
}

.pomoc-prawna-page .entry-content .wp-block-list li a::before {
    content: '\f08e';
    font-family: 'Font_Awesome_Light';
    margin-right: 15px;
    color: var(--primary-color);
    display: inline-block;
    transform: translateX(0);
    transition: transform var(--transition-default);
}

.pomoc-prawna-page .entry-content .wp-block-list li a:hover::before {
    transform: translateX(3px);
}

/* Siatka podstron (child pages) */
.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.child-page-box {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.child-page-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(42, 89, 52, 0.15);
}

.child-page-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.child-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.child-page-box:hover .child-page-image img {
    transform: scale(1.08);
}

.child-page-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.child-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.child-page-box:hover .child-page-title {
    color: var(--primary-color);
}

.child-page-excerpt {
    font-size: 15px;
    font-weight: 400;
    color: var(--grey-color);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.child-page-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-text-color);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.child-page-box:hover .child-page-link-arrow {
    background-color: var(--button-hover-background-color);
    transform: translateX(5px);
}

/* Wariant gdy nie ma obrazka */
.child-page-box:not(:has(.child-page-image)) .child-page-content {
    padding: 35px 25px;
}

.child-page-box:not(:has(.child-page-image)) {
    border: 2px solid #e0e0e0;
}

.child-page-box:not(:has(.child-page-image)):hover {
    border-color: var(--primary-color);
}

/* Responsywność - tablet */
@media (max-width: 992px) {
    .child-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .child-page-image {
        height: 200px;
    }
    
    .child-page-content {
        padding: 20px;
    }
    
    .child-page-title {
        font-size: 20px;
    }
}

/* Responsywność - mobile */
@media (max-width: 768px) {
    .child-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }
    
    .child-page-image {
        height: 180px;
    }
    
    .child-page-content {
        padding: 18px;
    }
    
    .child-page-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .child-page-excerpt {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .child-page-link-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 540px) {
    .child-pages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .child-page-image {
        height: 200px;
    }
}

/* Animacja przy ładowaniu */
.child-page-box {
    animation: fadeInUp 0.6s ease backwards;
}

.child-page-box:nth-child(1) { animation-delay: 0.1s; }
.child-page-box:nth-child(2) { animation-delay: 0.2s; }
.child-page-box:nth-child(3) { animation-delay: 0.3s; }
.child-page-box:nth-child(4) { animation-delay: 0.4s; }
.child-page-box:nth-child(5) { animation-delay: 0.5s; }
.child-page-box:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Link powrotu do listy */
.back-to-list {
    margin-bottom: 2rem;
}

.back-to-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00502E 0%, #003d24 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 80, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.back-to-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 80, 46, 0.4);
}

.back-to-list a:hover::before {
    left: 100%;
}

.back-to-list a:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 80, 46, 0.3);
}

.blog-categories-section {
    margin-top: 150px;
}


.aktualnosc-category {
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
    margin-top: -20px;
}

.aktualnosc-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-default);
}

.aktualnosc-category a:hover {
    opacity: .8;
}

/***********
*
* Galerie Page
*
***********/

.galerie-page .latest-dvgalleries {
    border-radius: 5px!important;
    position: relative;
    overflow: hidden;
}

.galerie-page .latest-dvgalleries img {
    border-bottom: none!important;
    height: 275px; /* chcemy, żeby element karuzeli zawsze miał taką samą wysokość */
    object-position: center;
    object-fit: cover;
    transition: .3s;
}

.galerie-page .latest-dvgalleries:hover img {
    transform: scale(1.03) ;
}

.galerie-page figcaption {
    width: 100%;
    height: auto!important;
    background: linear-gradient(to bottom, transparent, rgba(0, 80, 46, 0.6) 7.5%)!important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    transform: translateY(0);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* żeby dało się też na to kliknąć i odpalić galerię */
    padding: 15px 10px;
    color: var(--white-text-color);
}

.galerie-page figcaption div {
    padding: unset!important;
    height: unset!important;
}

.galerie-page .latest-dvgalleries figcaption .dvh5 a {
    color: var(--white-text-color)!important;
}

.galerie-page figcaption hr,
.galerie-page figcaption p,
.galerie-page .dv-readmore-button {
    display: none;
}

/***********
*
* Historia Page
*
***********/

.historia-page .dv-galleryimage {
    border-radius: 5px !important;
}

.historia-page .dv-galleryimage a {
    background-color: var(--primary-color) !important;
}

.historia-page .dv-gallerycontent-inner > .dvh4 > a:hover, .latest-dvgalleries > figcaption > div > .dvh5 > a:hover {
    color: var(--primary-color) !important;
}

.historia-page .dv-readmore-button:hover {
    background-color: var(--primary-color) !important;
}

/***********
*
* Adwokaci Page
*
***********/

/* Sekcja objaśnień oznaczeń */
.oznaczenia-info {
    margin: 25px 0 25px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.oznaczenia-toggle {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    background-color: var(--secondary-background-color);
    border: 1px solid var(--grey-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: black;
    transition: all 0.3s ease;
    outline: none;
}

.oznaczenia-toggle:hover {
    background-color: var(--secondary-background-color);
    color: var(--primary-color);
}

.oznaczenia-toggle i:first-child {
    font-size: 18px;
    color: var(--primary-color);
}

.oznaczenia-toggle span {
    flex: 1;
    text-align: left;
}

.info-icon:before {
    content: '\f05a';
    font-family: 'Font_Awesome_Light';
    font-style: normal;
    line-height: 1;
}

.oznaczenia-arrow {
    font-size: 16px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oznaczenia-arrow::before {
    content: '\f078'; /* chevron-down */
    font-family: 'Font_Awesome_Light';
    font-style: normal;
    line-height: 1;
}

.oznaczenia-toggle[aria-expanded="true"] .oznaczenia-arrow::before {
    content: '\f077'; /* chevron-up */
}

.oznaczenia-content {
    max-height: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    background-color: var(--secondary-background-color);
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    padding: 0;
}

.oznaczenia-toggle[aria-expanded="true"] + .oznaczenia-content {
    max-height: 500px;
    padding: 20px;
    border: 1px solid var(--grey-color);
    border-top: none;
    width: 100%;
}

.oznaczenia-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 20px;
    width: 100%;
    box-sizing: border-box;
}

.oznaczenia-list li {
    font-size: 14px;
    color: var(--grey-color);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.oznaczenia-list strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
}

@media (max-width: 768px) {
    .oznaczenia-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .oznaczenia-toggle {
        padding: 12px 16px;
        font-size: 14px;
    }

    .oznaczenia-toggle[aria-expanded="true"] + .oznaczenia-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .oznaczenia-list li {
        font-size: 13px;
    }
}

.adwokaci-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
}

.adwokat-card {
    border: 1px solid var(--grey-color);
    border-radius: 5px;
    padding: 15px;
    background: var(--secondary-background-color);
    width: 100%;
}

.adwokat-card.nieaktywny {
    opacity: 0.6;
}

.adwokat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.adwokat-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.adwokat-oznaczenie-header {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.oznaczenie-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    background-color: var(--primary-color);
    color: var(--white-text-color);
    font-weight: 600;
}

.adwokat-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 25px;
    margin-bottom: 10px;
}

.phones-row {
    display: contents;
}

.adwokat-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.adwokat-field a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-default);
    position: relative;
    font-weight: 500;
}

.adwokat-field a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    opacity: 0.3;
    transition: opacity var(--transition-default);
}

.adwokat-field a:hover {
    color: var(--button-hover-background-color);
}

.adwokat-field a:hover::after {
    opacity: 1;
}

.field-icon {
    font-family: 'Font_Awesome_Light';
    color: var(--primary-color);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-style: normal;
    margin-top: 2px;
}

.field-icon::before {
    display: inline-block;
}

.field-value {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.fa-mobile::before {
    content: '\f3cd';
}

.fa-phone::before {
    content: '\f095';
}

.fa-envelope::before {
    content: '\f0e0';
}

.fa-location-dot::before {
    content: '\f3c5';
}

.adwokat-footer {
    margin-top: 10px;
    padding-top: 10px;
}

.niewykonujacy-zawodu {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 600;
    color: #721c24;
    text-align: center;
    font-style: italic;
}

@media (max-width: 540px) {
    .adwokaci-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .adwokat-card {
        padding: 12px;
    }

    .adwokat-details {
        flex-direction: column;
        gap: 8px;
    }

    .phones-row {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .phones-row .adwokat-field {
        flex: 0 0 auto;
    }

    .field-value {
        white-space: normal;
    }

    .adwokat-name {
        font-size: 16px;
    }

    .field-value {
        font-size: 13px;
    }
}

/***********
*
* Search Page
*
***********/

.search-title {
    margin-top: 75px;
}

.child-pages-grid .no-results-message {
    grid-column: 1 / -1; /* rozciąga element na wszystkie kolumny gridu */
}

@media (max-width: 768px) {

    .search-no-results .page-content {
        padding: 40px 20px;
    }
}
