body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
}

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(53, 73, 32, 0.8);
    padding: 0 40px;
    height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1.5px solid #929292;
}

.main-header .logo img {
    height: 50px;
    margin-left: 15vw;
}

.main-nav>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav>ul>li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #dbab00;
}

.main-nav>ul>li>a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #dbab00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-nav>ul>li>a:hover::before,
.main-nav>ul>li>a.active::before {
    transform: scaleX(1);
}

.has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    background-color: #515151;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 15px;

    display: block;
    list-style: none;
    margin: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.dropdown-menu li {
    width: 100%;
    margin: 0;
    display: block;
}

.dropdown-menu a {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    width: auto;
    color: #e0e0e0;
}

.dropdown-menu a:hover {
    background-color: #767676;
    color: #fff;
}

.main-header .notification-icon a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
    cursor: pointer;
}

.main-header .notification-icon a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* STRONA GŁÓWNA */
.video {
    width: 100%;
    height: 75vh;
    overflow: hidden;
    background-color: #000;
}

.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.adRecruitment {
    width: 100%;
    height: 5vh;
    min-height: 40px;
    background-color: #00b3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.adRecruitment:hover {
    background-color: #dbab00;
}

.adRecruitment a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.sheriffInfo {
    width: 100%;
    min-height: 30vh;
    height: auto;
    background-color: #354920;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 50px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    color: white;
}

.sheriffInfo-left {
    margin-right: 8vw;
}

.sheriffInfo-left img {
    width: 180px;
    height: 240px;
    object-fit: cover;
    display: block;
}

.sheriffInfo-right {
    text-align: center;
    max-width: 800px;
    margin-bottom: 2vh;
}

.sheriffInfo-right h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.sheriffInfo-right p {
    margin: 0;
    line-height: 1.5;
}

.aboutUs {
    width: 100%;
    padding: 60px 0 20px 0;
}

.aboutUs-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.aboutUs-content-bar {
    background-color: #ffffff;
    border: 2px solid #000000;
    flex: 1 1 calc(50% - 40px);
    min-width: 300px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.aboutUs-content-bar:hover {
    border-color: #a9a9a9;
}

.aboutUs-content-bar p {
    color: #000000;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aboutUs-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.aboutUs-header h1 {
    font-size: 1.5rem;
}

.gold-bar {
    width: 120px;
    height: 2px;
    background-color: #dbab00;
}

.quickLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 80px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.quickLinks-container {
    background-color: #354920;
    color: white;
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-top: 15px;
}

.quickLinks .photo-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.quickLinks-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.quickLinks-photo:hover {
    transform: scale(1.15);
}

.quickLinks-text {
    padding: 20px;
    text-align: center;
}

.quickLinks-text a {
    text-decoration: none;
    display: inline-block;
}

.quickLinks-text h1 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #dbab00;
    text-decoration: underline;
    transition: text-decoration 0.3s ease;
}

.quickLinks-text a:hover h1 {
    text-decoration: none;
}

.quickLinks-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .main-header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-header .logo img {
        margin-left: 0;
    }

    .main-header {
        position: fixed;
        justify-content: center;
    }

    .main-header .notification-icon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: rgba(30, 43, 15, 0.98);
        padding: 10px 0 20px 0;
        z-index: 999;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        max-height: calc(100vh - 65px);
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-nav>ul>li>a {
        padding: 14px 24px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        justify-content: space-between;
    }

    .main-nav>ul>li>a::before {
        display: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0;
        min-width: unset;
        border-radius: 0;
        display: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: none;
    }

    .has-dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 40px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .sheriffInfo {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .sheriffInfo-left {
        margin-right: 0;
    }

    .sheriffInfo-left img {
        width: 140px;
        height: 187px;
        margin-bottom: 15px;
    }

    .sheriffInfo-right h1 {
        font-size: 1.4rem;
    }

    .sheriffInfo-right p {
        font-size: 0.9rem;
    }

    .quickLinks-container {
        max-width: 100%;
    }

    .aboutUs-content-bar {
        flex: 1 1 100%;
    }

    .adRecruitment a {
        font-size: 13px;
    }

    .adRecruitment {
        height: auto;
        padding: 10px 12px;
    }

    footer {
        padding: 20px 0;
    }

    .footer-content {
        width: 100%;
        padding: 0 6px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .video {
        height: 45vh;
    }

    .adRecruitment a {
        font-size: 12px;
    }

    .quickLinks {
        gap: 30px 20px;
        padding: 30px 10px;
    }
}

/* MODAL STYLES */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-align: center;

    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background-color: #354920;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #dbab00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-button {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: #dbab00;
}

.modal-body {
    margin-top: -20px;
    padding: 30px;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
}

.modal-body::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #dbab00;
    margin: 20px auto 0 auto;
}

.news {
    width: 100%;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-header {
    margin-top: -10px;
    text-align: center;
    padding-bottom: 20px;
}

.news-header h1 {
    font-size: 1.6rem;
    margin: 0 0 15px 0;
    color: #ffffff;
    font-weight: 800;
}

.news-container {
    width: 56%;
    margin: 0 auto;
    background-color: #a39160;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .news-container {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .news-container {
        width: 95%;
        padding: 20px;
    }
}

.news-content {
    display: flex;
    background-color: #a39160;
    align-items: center;
    gap: 60px;
}

.news-photo {
    width: 450px;
    flex: 0 0 450px;
    border-radius: 8px;
    overflow: hidden;
}

.news-photo img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
}

.news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    margin-top: -150px;
}

@media (max-width: 992px) {
    .news-text {
        margin-top: 0;
    }
}

.news-date {
    color: #ffffff84;
    font-size: 0.9rem;
    margin: 0 0 5px 0;
}

.news-text h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #ffffff;
    font-weight: 800;
}

.news-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    opacity: 0.95;
}

.news-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    width: fit-content;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.news-link:hover {
    border-bottom: 2px solid #ffffff;
}

@media (max-width: 992px) {
    .news-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .news-photo {
        max-width: 100%;
        width: 100%;
        flex: 1;
    }

    .news-photo img {
        height: auto;
        max-height: 350px;
    }

    .news-text {
        align-items: center;
        margin-top: 0;
    }

    .news-text h1 {
        font-size: 1.6rem;
    }
}

/* STOPKA */
footer {
    margin-top: 2vh;
    width: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 50px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    color: white;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 8px;
    }
}

.footer-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .footer-content {
        width: 100%;
        box-sizing: border-box;
    }

    #photoAllRightsReserved {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.footer-social-media {
    display: flex;
    gap: 25px;
    font-size: 24px;
}

.footer-social-media i {
    cursor: pointer;
    transition: color 0.3s ease;
    color: white;
}

.footer-social-media i:hover {
    color: #dbab00;
}

.footer-content>div:last-child {
    text-align: center;
}

.footer-content>div:last-child p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* STACJE I BUDYNKI */
.category-header {
    width: 100%;
    padding: 20px 0 0 0;
}

.category-header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.category-header-title h1 {
    font-size: 1.5rem;
}

.stations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 80px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.stations-container {
    color: rgb(0, 0, 0);
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-top: 15px;
}

.stations .photo-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto;
    height: 200px;
    overflow: hidden;
}

.stations-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.stations-photo:hover {
    transform: scale(1.15);
}

.stations-text {
    padding: 20px;
    text-align: left;
}

.stations-text a {
    text-decoration: none;
    display: inline-block;
}

.stations-text h1 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #000000;
    text-decoration: underline;
    transition: text-decoration 0.3s ease;
}

.stations-text a:hover h1 {
    text-decoration: none;
}

.stations-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.station-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-top: 0;
}

.station-modal-body::after {
    display: none;
}

.station-modal-image-wrapper {
    width: 100%;
    height: 650px;
    overflow: hidden;
    position: relative;
}

.station-modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.station-modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    box-sizing: border-box;
}

.station-modal-info p {
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.station-modal-captain-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    width: 274px;
    cursor: pointer;
    transition: left 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateX(0);
}

.station-modal-captain-overlay.right-side {
    left: 100%;
    transform: translateX(-100%);
}

.station-modal-captain-overlay>img {
    width: 234px;
    height: 312px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.court-locations-body {
    margin-top: 0;
}

.court-locations-body::after {
    display: none;
}

.court-location-wrapper {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.court-location-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.court-location-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    box-sizing: border-box;
    text-align: left;
}

.court-location-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.court-location-info p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.station-modal-captain-text-overlay {
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    width: 234px;
    box-sizing: border-box;
}

.station-modal-captain-text-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #dbab00;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.station-modal-captain-text-overlay p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .station-modal-image-wrapper {
        height: auto;
        min-height: 400px;
    }

    .station-modal-captain-overlay {
        position: relative;
        left: auto;
        top: auto;
        flex-direction: row;
        gap: 20px;
        padding: 15px;
        background-color: transparent;
        height: auto;
    }

    .station-modal-captain-text-overlay {
        width: auto;
        margin-top: 0;
        text-align: left;
    }
}

/* DOWÓDZTWO */
.sheriff-command {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.sheriff-command .photo {
    width: 275px;
    height: 360px;
    overflow: hidden;
}

.sheriff-command .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sheriff-command .text {
    flex: 1;
    max-width: 80vw;
}

.sheriff-command .text h1 {
    font-size: 1.8rem;
    margin: -10px 0 10px 0;
    color: #000000;
}

.sheriff-command .text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 15px 0;
    opacity: 0.9;
    text-align: justify;
}

.command-category {
    width: 100%;
    padding: 20px 0;
    background-color: #354920;
}

.command-category p {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #dbab00;
    margin: 0;
}

.commands-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.commands-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 80px;
    width: 100%;
}

.command {
    color: rgb(0, 0, 0);
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-top: 15px;
    cursor: pointer;
}

.command .photo {
    width: 240px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    overflow: hidden;
}

.command .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.command:hover .photo img {
    transform: scale(1.05);
}

.command .text {
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.command .text a {
    text-decoration: none;
    display: inline-block;
}

.command .text p {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0;
}

/* SŁUŻBY SĄDOWE */
.extraInfo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.extraInfo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 0;
    text-align: center;
    background-color: #f7f4eb;
    min-width: 550px;
}

.extraInfo-container h1 {
    font-size: 1.4rem;
    margin: 0 0 0 0;
    color: #000000;
}

.extraInfo-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    text-align: justify;
}

.extraInfo-container button {
    background-color: #00b0ff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 90%;
}

.extraInfo-container button:hover {
    background-color: #dbab00;
}

.divider {
    width: 65.5%;
    height: 1px;
    background-color: #b4b4b4;
    margin: 0 auto;
}

.courtSecurity-header {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.courtSecurity-header h1 {
    font-size: 1.5rem;
    color: #000000;
}

.courtSecurity-header p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.courtSecurity-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.courtSecurity-info h1 {
    font-size: 1.4rem;
    color: #000000;
}

.courtSecurity-info-list {
    list-style-type: none;
    padding-left: 1.5em;
    margin: 0;
    text-align: left;
    width: 57.5vw;
    line-height: 1.3;
}

.courtSecurity-info-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.4em;
    text-align: justify;
}

.courtSecurity-info-list li::before {
    content: "– ";
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 1000px) {
    .extraInfo {
        flex-direction: column;
        gap: 30px;
        padding-top: 100px !important;
    }

    .extraInfo-container {
        min-width: unset;
        width: 90%;
        max-width: 600px;
    }

    .divider {
        width: 90%;
    }

    .courtSecurity-info-list {
        width: 85vw;
    }
}

@media (max-width: 600px) {
    .extraInfo {
        padding-top: 80px !important;
    }

    .courtSecurity-header h1,
    .courtSecurity-info h1 {
        font-size: 1.2rem;
    }

    .courtSecurity-header p,
    .courtSecurity-info-list li {
        font-size: 0.9rem;
    }

    .courtSecurity-info-list {
        width: 90vw;
    }
}

/* CCW */
.ccw-header {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding-top: 130px;
    max-width: 70vw;
}

.ccw-header h1 {
    font-size: 1.5rem;
    color: #000000;
}

.ccw-header p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}

.ccw-info-cointainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 65vw;
    margin: 0 auto;
    padding: 20px 40px;
    border-radius: 8px;
    background-color: #f7f4eb;
}

.ccw-info-cointainer h1 {
    font-size: 1.4rem;
    color: #000000;
}

.ccw-info-cointainer p {
    font-size: 1rem;
    line-height: 1.5;
    align-items: flex-start;
    text-align: justify;
    width: 100%;
}

.ccw-info-cointainer ul {
    list-style-type: none;
    padding-left: 1.5em;
    margin: 0;
    text-align: justify;
    width: 57.5vw;
    line-height: 1.3;
    margin-left: -50px;
    margin-top: -10px;
}


.ccw-info-cointainer li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.4em;
    text-align: justify;
}

.ccw-info-cointainer li::before {
    content: "– ";
    position: absolute;
    left: 0;
    font-weight: bold;
}

#termsCCWLink {
    margin-top: 10px;
    font-weight: 600;
    color: #00b0ff;
    text-decoration: underline;
    transition: color 0.3s ease;
    transition: text-decoration 0.3s ease;
    font-size: 1.1rem;
}

#termsCCWLink:hover {
    color: #dbab00;
    text-decoration: none;
}

.table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: normal;
    word-break: break-word;
}

th:first-child,
td:first-child {
    min-width: 220px;
    font-weight: 700;
    white-space: nowrap;
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f8f8;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #fcf9f0;
}

td:last-child {
    font-style: italic;
    color: #666;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

.ccw-startForm-cointainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 65vw;
    margin: 0 auto;
    padding: 20px 40px;
    border-radius: 8px;
}

.ccw-startForm-cointainer h1 {
    font-size: 1.4rem;
    color: #000000;
}

.ccw-startForm-cointainer p {
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
}

.ccw-startForm-cointainer button {
    background-color: #00b0ff;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 90%;
    margin-top: 10px;
}

.ccw-startForm-cointainer button:hover {
    background-color: #dbab00;
}

@media (max-width: 1100px) {

    .ccw-header,
    .ccw-info-cointainer,
    .ccw-startForm-cointainer,
    .ccw-faq-container {
        width: 85vw;
        max-width: unset;
    }
}

@media (max-width: 900px) {
    .ccw-info-cointainer ul {
        width: 100%;
        margin-left: 0;
        padding-left: 10px;
    }
}

@media (max-width: 768px) {

    .ccw-header,
    .ccw-info-cointainer,
    .ccw-startForm-cointainer,
    .ccw-faq-container {
        width: 95vw;
        padding: 20px 15px;
    }

    .ccw-header {
        padding-top: 100px;
    }

    table {
        min-width: 800px;
    }

    th:first-child,
    td:first-child {
        min-width: 250px;
    }
}

.ccw-faq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 65vw;
    margin: 0 auto;
    padding: 20px 40px;
    border-radius: 8px;
}

.ccw-faq-container h1 {
    font-size: 1.4rem;
    color: #000000;
}

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    overflow: hidden;
    text-align: left;
    background-color: #f7f4eb;
}

.faq-question {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #000000;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #efede3;
}

.faq-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #dbab00;
    border-bottom: 2px solid #dbab00;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.faq-item.active .faq-icon {
    transform: rotate(-135deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    text-align: justify;
}

.faq-answer-content {
    padding: 20px 25px;
    color: #555;
    line-height: 1.6;
}

/* USER PROFILE */
.user-profil {
    position: fixed;
    top: 75px;
    right: 15px;
    z-index: 900;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 15px 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-summary::-webkit-details-marker {
    display: none;
}

.profile-summary:hover,
.user-profil.open .profile-summary {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chevron {
    width: 16px;
    height: 16px;
    color: #e5e5e5;
    transition: transform 0.2s;
}

.user-profil.open .chevron {
    transform: rotate(180deg);
}

.user-profil .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    padding: 8px;
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.user-profil.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-profil .dropdown-header {
    padding: 8px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    font-size: 13px;
    color: #d4d4d4;
}

.user-profil .logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #ff3f3f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.user-profil .logout-btn:hover {
    background-color: rgba(225, 29, 72, 0.1);
}

.ccw-form {
    width: 100%;
    margin-top: 20px;
    text-align: left;
    background-color: #f7f4eb;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #354920;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #dbab00;
    box-shadow: 0 0 0 4px rgba(219, 171, 0, 0.1);
}

.form-control::placeholder {
    color: #bbb;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 10px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
    font-weight: 600;
}

.radio-item input[type="radio"] {
    cursor: pointer;
    accent-color: #dbab00;
    width: 20px;
    height: 20px;
    margin: 5px 5px 5px 0;
    position: relative;
    top: 2px;
}

.conditional-section {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    animation: fadeInSlide 0.4s ease-out;
}

.conditional-section.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #354920;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .ccw-form {
        padding: 20px 15px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #dbab00;
}

.weapons-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weapon-row {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.weapon-row:hover {
    transform: translateX(5px);
}

.weapon-row .form-group {
    margin-bottom: 0;
}

.btn-remove-weapon {
    background: #ff3f3f;
    color: white;
    border: none;
    width: 40px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-weapon:hover {
    background: #e03535;
    transform: scale(1.05);
}

.btn-add-weapon {
    background-color: #354920;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-add-weapon:hover {
    background-color: #2a3a19;
    box-shadow: 0 4px 12px rgba(53, 73, 32, 0.2);
}

.submit-container {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-submit {
    background-color: #dbab00;
    color: #fff;
    border: none;
    padding: 15px 100px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit:hover {
    background-color: #c49a00;
}

@media (max-width: 992px) {
    .weapon-row {
        grid-template-columns: 1fr 1fr;
    }

    .btn-remove-weapon {
        grid-column: span 2;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .weapon-row {
        grid-template-columns: 1fr;
    }

    .btn-remove-weapon {
        grid-column: span 1;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* RIDE A LONG */

/* STATE EMERGENCY */
.stateEmergency-box {
    background-color: #00b0ff;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    width: 90%;
    margin-top: 10px;
    border-radius: 5px;
}

.stateEmergency-box span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.state-green {
    background-color: #008516;
}

.state-orange {
    background-color: #e67e00;
}

.state-red {
    background-color: #b30000;
}

.state-black {
    background-color: #000000;
    color: white;
}

.last-update-tag {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stateEmergency-box {
    background-color: #00b0ff;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    width: 90%;
    margin-top: 10px;
    border-radius: 5px;
}

.stateEmergency-box span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.stateEmergency-box.state-green {
    background-color: #2ecc71;
}

.stateEmergency-box.state-orange {
    background-color: #ff8c00;
}

.stateEmergency-box.state-red {
    background-color: #e74c3c;
}

.stateEmergency-box.state-black {
    background-color: #1a1a1a;
}

.stateEmergency-box.state-unknown {
    background-color: #777;
}

.last-update-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

.emergency-recommendations {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f7f4ea;
    border-left: 4px solid #dbab00;
    border-radius: 6px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.emergency-recommendations h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #354920;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-recommendations ul {
    list-style: none;
    margin-left: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

.emergency-recommendations ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #333;
    margin-bottom: 0 !important;
}

/* WSPÓŁPRACE */
.cooperation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    padding: 0 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cooperation-agency {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease;
}

.cooperation-agency:hover {
    transform: translateY(-5px);
}

.agency-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #967500;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.cooperation-agency:hover .agency-logo {
    box-shadow: 0 6px 20px rgba(37, 37, 37, 0.4);
}

.agency-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cooperation-agency a {
    text-decoration: none;
    color: inherit;
}

.cooperation-description {
    max-width: 900px;
    margin: 0 auto 200px auto;
    padding: 40px 50px;
    background-color: #354920;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-left: 5px solid #dbab00;
}

.cooperation-description h2 {
    color: #dbab00;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-align: center;
}

.cooperation-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .cooperation-container {
        gap: 40px;
        padding-bottom: 40px;
    }

    .cooperation-description {
        margin-left: 20px;
        margin-right: 20px;
        padding: 30px 20px;
    }
}

.gallery-hero {
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('files/examplephoto2.png');
    background-size: cover;
    background-position: center;
    padding: 140px 20px 80px 20px;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.gallery-hero-text h1 {
    font-size: 2.8rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.gallery-hero-text p {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    font-style: italic;
    opacity: 0.9;
}

.gold-bar-center {
    width: 120px;
    height: 3px;
    background-color: #dbab00;
    margin: 0 auto;
}

#gallery-root {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
}

.gallery-section {
    margin-bottom: 70px;
}

.gallery-section-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    position: relative;
}

.gallery-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #354920;
}

.gallery-category-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.gallery-category-date {
    display: inline-block;
    background-color: #dbab00;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-category-desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
    text-align: justify;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.gallery-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.gallery-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-photo-wrapper img {
    transform: scale(1.08);
}

.gallery-item-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: rgba(30, 30, 30, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
    box-sizing: border-box;
    pointer-events: none;
}

.gallery-item-desc p {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.gallery-item:hover .gallery-item-desc {
    transform: translateY(0);
}

.gallery-photo-wrapper::after {
    content: '\f00e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.gallery-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(219, 171, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-photo-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item:hover .gallery-photo-wrapper::before {
    opacity: 1;
}

.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 30px 20px;
    box-sizing: border-box;
}

.image-viewer-modal.show {
    opacity: 1;
}

.iv-content {
    display: block;
    max-width: 90%;
    max-height: calc(100vh - 160px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

#iv-caption {
    display: block;
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding-top: 20px;
    font-size: 1.1rem;
    font-weight: 300;
    flex-shrink: 0;
}

.iv-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.iv-close:hover,
.iv-close:focus {
    color: #dbab00;
    text-decoration: none;
    cursor: pointer;
}

.iv-prev,
.iv-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
    padding: 20px;
    user-select: none;
}

.iv-prev {
    left: 40px;
}

.iv-next {
    right: 40px;
}

.iv-prev:hover,
.iv-next:hover {
    color: #dbab00;
}

@media (max-width: 900px) {

    .iv-prev,
    .iv-next {
        font-size: 35px;
        padding: 10px;
    }

    .iv-prev {
        left: 10px;
    }

    .iv-next {
        right: 10px;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 80px 20px 40px 20px;
        min-height: 250px;
        height: auto;
    }

    .gallery-hero-text h1 {
        font-size: 1.8rem;
    }

    .gallery-category-title {
        font-size: 1.6rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.btn-load-more {
    background-color: #354920;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-load-more:hover {
    background-color: #dbab00;
    transform: translateY(-2px);
}

.btn-load-more:active {
    transform: translateY(0);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-card-title {
    font-size: 1.3rem;
    color: #222;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
}

.news-card-desc {
    font-size: 1rem;
    color: #555;
    margin: 0 0 25px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.news-card-btn {
    cursor: pointer;
    text-decoration: underline;
    color: #dbab00;
    font-weight: 700;
    transition: text-decoration 0.2s ease;
    margin: 0;
}

.news-card-btn:hover {
    text-decoration: none;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.news-pagination a:hover {
    background-color: #e0e0e0;
}

.news-pagination a.active {
    background-color: #354920;
    color: #fff;
}

.news-pagination span.disabled {
    color: #aaa;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.news-modal .modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin: 7.5vh auto;
    overflow: hidden;
    padding: 0;
}

.news-modal .modal-body::after {
    display: none;
}

.news-modal .modal-header {
    flex-shrink: 0;
    z-index: 10;
}

.news-modal .modal-body {
    flex-grow: 1;
    text-align: left;
    padding: 0;
    overflow-y: auto;
}

.news-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.news-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.news-modal .modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.news-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.news-modal-header-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 0;
    display: block;
}

.news-modal-details {
    padding: 0 30px 30px 30px;
}

.news-modal-date {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-modal-content-text {
    line-height: 1.7;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.news-gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-gallery-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-btn-admin {
    display: flex;
    justify-content: right;
    margin-top: 20px;
    margin-right: 20px;
}

.news-btn-admin a {
    background-color: #354920;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.news-btn-admin a:hover {
    text-decoration: underline;
}

.requirements-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 65vw;
    margin: 0 auto;
    padding: 20px 40px;
    border-radius: 8px;
    background-color: #f7f4eb;
}

.requirements-container h1 {
    font-size: 1.4rem;
    color: #000000;
}

.requirements-container p {
    font-size: 1rem;
    line-height: 1.5;
    align-items: flex-start;
    text-align: justify;
    width: 100%;
}

.requirements-container ul {
    list-style-type: none;
    padding-left: 1.5em;
    margin: 0;
    text-align: justify;
    width: 100%;
    line-height: 1.3;
    margin-top: 10px;
}

.requirements-container li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.4em;
    text-align: justify;
}

.requirements-container li::before {
    content: "– ";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.requirements-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
}

.requirements-content-left,
.requirements-content-right {
    width: 40%;
}

.requirements-content-left {
    text-align: left;
}

.requirements-content-right {
    text-align: right;
}

.requirements-content h2 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
    margin-bottom: 30px;
    text-decoration: underline;
}

.recru-adRecruitment {
    width: 100%;
    height: 50vh;
    background-color: #354920;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    color: white;
    margin-top: 50px;
    margin-bottom: 50px;
}

.recru-adRecruitment img {
    height: 100%;
    object-fit: cover;
}

#discordButton {
    background-color: #7289da;
    transition: background-color 0.3s ease;
}

#discordButton:hover {
    background-color: #4e5d94;
}

@media (max-width: 1100px) {
    .requirements-container {
        width: 85vw;
    }
}

@media (max-width: 900px) {
    .requirements-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .requirements-content-left,
    .requirements-content-right {
        width: 100%;
        text-align: left;
    }

    .requirements-content h2 {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .requirements-container {
        width: 95vw;
        padding: 20px 15px;
    }

    .civilianRecruAd {
        margin-bottom: 50px;
    }

    .civilianRecruAd a {
        font-size: 1rem;
        text-align: center;
    }
}

.civilianRecruAd {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    margin-top: 30px;
    margin-bottom: 50px;
}

.civilianRecruAd a {
    color: #00b0ff;
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.1s ease;
}

.civilianRecruAd a:hover {
    color: #dbab00
}

/* ŚCIEŻKI ROZWOJU */
.career-paths {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 80px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.career-paths-container {
    background-color: #354920;
    color: white;
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-top: 15px;
}

.career-paths .photo-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.career-paths-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.career-paths-photo:hover {
    transform: scale(1.15);
}

.career-paths-text {
    padding: 20px;
    text-align: center;
}

.career-paths-text h1 {
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    color: #ffffff;
    transition: text-decoration 0.3s ease;
}

.career-paths-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.aplicationDiscord {
    margin: 40px auto;
    cursor: default;
    background-color: #354920;
    width: 60%;
    height: auto;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dbab00;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aplicationDiscord p {
    color: #fff;
    font-weight: bold;
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* KONTAKT */
.contact-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-option-left,
.contact-option-right {
    width: 50%;
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-option-left .logo,
.contact-option-right .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.contact-option-left h1,
.contact-option-right h1 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #333;
}

.contact-option-left p,
.contact-option-right p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
    width: 80%;
    margin: 0 auto 15px;
    text-align: center;
}

.contact-option-left button,
.contact-option-right button {
    background-color: #354920;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    margin: 0 auto;
}

.contact-option-left button:hover,
.contact-option-right button:hover {
    background-color: #4e5d94;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .contact-options {
        flex-direction: column;
        gap: 30px;
    }

    .contact-option-left,
    .contact-option-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ccw-info-cointainer.contact-page {
        margin-top: 100px !important;
        margin-bottom: 80px !important;
        width: 95vw;
        padding: 20px 15px;
    }
}

/* TOAST */
#toastContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    min-width: 250px;
    text-align: center;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-info {
    background-color: #17a2b8;
}

.toast-warning {
    background-color: #ffc107;
    color: #000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#discordLinkComplaint {
    color: black;
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 20px;
    cursor: pointer;
    transition: text-decoration 0.2s ease;
}

#discordLinkComplaint:hover {
    text-decoration: none;
}

/* SOCIAL MEDIA */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.social-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-height: 250px;
}

.social-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.discord {
    border-bottom: 8px solid #5865F2;
}

.discord .icon-circle {
    background-color: #5865F2;
}

.instagram {
    border-bottom: 8px solid #E1306C;
}

.instagram .icon-circle {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.tiktok {
    border-bottom: 8px solid #000;
}

.tiktok .icon-circle {
    background-color: #000;
}

.social-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.social-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.social-card span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1000px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 10vh !important;
    }

    .social-card {
        padding: 2rem 1.5rem;
        max-height: none;
        height: auto;
    }

    .ccw-header.media-page-header {
        margin-bottom: 30px !important;
    }
}

/* IDENTYFIKACJA PERSONELU */
.deputyPhoto {
    width: 800px;
    height: 850px;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 20px;
}

.deputyPhoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deputyInfo {
    max-width: 60vw;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 100px;
    text-align: justify;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .deputyInfo {
        max-width: 85vw;
    }
}

@media (max-width: 900px) {
    .deputyPhoto {
        width: 90vw;
        height: auto;
    }
}

@media (max-width: 768px) {
    .deputyInfo {
        max-width: 95vw;
        margin-bottom: 60px;
    }
}

#documents-list a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: inherit;
}

#documents-list a:hover {
    text-decoration: underline !important;
    color: black;
}

.doc-subtitle {
    color: #1a1a1a;
    font-weight: 400;
    font-size: 17px;
}

#documents-list li a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}