@charset "utf-8";
/*

TemplateMo 592 glossy touch

https://templatemo.com/tm-592-glossy-touch

*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button[type="submit"] {
    font-family: inherit;
    font-size: 1rem;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg,
            #0c0c0c 0%,
            #1a1a2e 15%,
            #16213e 35%,
            #0f3460 50%,
            #533a7d 70%,
            #8b5a8c 85%,
            #a0616a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background elements */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.shape:nth-child(1) {
    width: 120px;
    height: 80px;
    border-radius: 15px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    --start-rotation: 15deg;
    transform: rotate(15deg);
}

.shape:nth-child(2) {
    width: 90px;
    height: 140px;
    border-radius: 12px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    --start-rotation: -20deg;
    transform: rotate(-20deg);
}

.shape:nth-child(3) {
    width: 100px;
    height: 60px;
    border-radius: 10px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    --start-rotation: 25deg;
    transform: rotate(25deg);
}

.shape:nth-child(4) {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    --start-rotation: -10deg;
    transform: rotate(-10deg);
}

.shape:nth-child(5) {
    width: 110px;
    height: 70px;
    border-radius: 14px;
    bottom: 40%;
    right: 20%;
    animation-delay: 3s;
    --start-rotation: 30deg;
    transform: rotate(30deg);
}

.shape:nth-child(6) {
    width: 95px;
    height: 95px;
    border-radius: 20px;
    top: 40%;
    left: 5%;
    animation-delay: 5s;
    --start-rotation: -15deg;
    transform: rotate(-15deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(var(--start-rotation, 0deg));
    }

    50% {
        transform: translateY(-20px) rotate(calc(var(--start-rotation, 0deg) + 180deg));
    }
}

/* Glass container styles */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) translateZ(0);
    -webkit-transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

/* Header styles */
header {
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Top bar and drawer navigation base styles */
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

.drawer-header {
    display: none;
}

.nav-backdrop {
    display: none;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 24px;
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 1rem;
    text-decoration: none;
    user-select: none;
}

.logo:hover,
.logo:focus,
.logo:active {
    color: white;
    text-decoration: none;
    outline: none;
}

.logo span {
    text-decoration: none;
}

.logo-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo:hover .logo-icon svg {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.4));
}

.nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Page system */
.page {
    display: none;
    min-height: 100vh;
    padding: 40px 20px 20px;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Content wrapper to contain page content */
.content-wrapper {
    min-height: calc(100vh - 300px);
}

/* Home page styles */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 40px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 20rem;
    border-radius: 8px;
}

#modal-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#modal-buttons .link-button {
    background-color: #16213e !important;
    text-align: left;
    display: block;
    line-height: 1.4;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#modal-buttons .link-button:hover {
    background-color: #1e293b !important;
}

#modal-buttons .link-button p {
    margin: 4px 0 0 0;
    opacity: 0.8;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    overflow: hidden;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.link-button:visited {
    color: lightgray;
    text-decoration: none;
}

button[type="submit"] {
    font-family: inherit;
    font-size: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* About page styles */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.about-content>.about-text {
    flex: 1 1 calc(50% - 15px);
    min-width: 320px;
    max-height: fit-content;
}

/* Statutes page flex layout */
#statutes .content-wrapper>.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#statutes .content-wrapper>.about-content>.about-text {
    flex: 1 1 100%;
    width: 100%;
}

#statutes .about-content>.about-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 0;
    align-items: flex-start;
}

#statutes .about-content>.about-content>.about-text {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
}

.about-text,
.note-editable {
    padding: 40px;
    color: white;
}

.about-text h2,
.note-editable h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-text h3,
.note-editable h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-text p,
.note-editable p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.about-text a,
.note-editable a {
    color: white;
    text-decoration: none;
}

.about-text a:visited,
.note-editable a:visited {
    color: lightgray;
    text-decoration: none;
}

/* Indywidualny styl dla note-editable: białe tło i czarny tekst */
.note-editable {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.note-editable h2,
.note-editable h3,
.note-editable h4,
.note-editable h5,
.note-editable h6 {
    color: #000000 !important;
    text-shadow: none !important;
}

.note-editable p {
    color: #000000 !important;
}

.note-editable a {
    color: #2563eb !important;
}

.note-editable a:visited {
    color: #7c3aed !important;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* Team section styles */
.team-section {
    margin-bottom: 60px;
}

.team-section h2 {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    padding: 40px 30px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-member:hover .team-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: white;
}

.team-member .role {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.team-member .bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

/* Services page styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    padding: 40px 30px;
    color: white;
    text-align: left;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.9);
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
    grid-column: 1 / -1;
    width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Article generated styles */
article p {
    white-space: pre-line;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

#article-gallery-div {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
}

#article-gallery-div:empty {
    display: none;
    padding: 0;
}

.gallery-wrapper:has(#article-gallery-div:empty) {
    display: none;
}

#article-gallery-div a {
    flex: 0 0 280px;
    width: 280px;
    height: 190px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

#article-gallery-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#article-gallery-div a:hover img {
    transform: scale(1.05);
}

/* Gallery overlay navigation buttons styles */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Featured Hero + Grid Gallery Layout (Active when article content is empty) */
#article-div.gallery-hero-grid .article-detail {
    padding-bottom: 0;
}

#article-div.gallery-hero-grid .article-header {
    margin-bottom: 8px;
}

#article-div.gallery-hero-grid .article-divider {
    margin: 10px 0 12px 0;
}

#article-div.gallery-hero-grid .article-lead-standalone {
    margin-bottom: 12px;
}

#article-div.gallery-hero-grid .article-footer {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 0;
    border-top: none;
}

#article-div.gallery-hero-grid .article-meta-group {
    margin-top: 0;
    padding-top: 8px;
}

#article-div.gallery-hero-grid .gallery-wrapper {
    margin-top: 8px;
    padding: 0 15px 20px 15px;
}

#article-div.gallery-hero-grid .prev-btn,
#article-div.gallery-hero-grid .next-btn {
    display: none !important;
}

#article-div.gallery-hero-grid #article-gallery-div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    overflow-x: visible;
    padding: 0;
    width: 100%;
}

/* Featured first image: full width hero frame preserving natural image aspect ratio */
#article-div.gallery-hero-grid #article-gallery-div a:first-child {
    grid-column: 1 / -1;
    flex: unset;
    width: 100%;
    height: 500px;
    max-height: 65vh;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#article-div.gallery-hero-grid #article-gallery-div a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Secondary images in responsive grid */
#article-div.gallery-hero-grid #article-gallery-div a:not(:first-child) {
    flex: unset;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

#article-div.gallery-hero-grid #article-gallery-div a:not(:first-child) img {
    object-fit: cover;
}

#article-div.gallery-hero-grid #article-gallery-div a {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#article-div.gallery-hero-grid #article-gallery-div a:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    #article-div.gallery-hero-grid .article-detail {
        padding: 15px 15px 0 15px;
    }

    #article-div.gallery-hero-grid .gallery-wrapper {
        padding: 0 15px 25px 15px;
        margin-top: 6px;
    }

    #article-div.gallery-hero-grid #article-gallery-div {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    #article-div.gallery-hero-grid #article-gallery-div a:first-child {
        height: 280px;
        border-radius: 12px;
    }

    #article-div.gallery-hero-grid #article-gallery-div a:not(:first-child) {
        height: 140px;
        border-radius: 8px;
    }
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-map-section {
    margin-top: 40px;
}

.contact-form {
    padding: 40px;
}

.contact-form h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.contact-info {
    padding: 40px;
    color: white;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.material-symbols-outlined {
    font-size: 1.25rem;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.125rem;
    color: white;
}

.contact-item-icon .material-symbols-outlined {
    font-size: 1.375rem;
    color: white;
    margin: 0;
}

.contact-item-text h4 {
    color: white;
    margin-bottom: 5px;
}

.contact-item-text p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-map {
    padding: 40px;
    color: white;
    width: 100%;
}

.contact-map h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.map-container {
    width: 100%;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.responsive-map {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.map-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.map-placeholder p {
    margin: 8px 0;
    font-size: 1rem;
}

.map-placeholder .address {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.map-placeholder .integration-note {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: 20px;
}


/* Footer styles */
#footer {
    margin-top: 60px;
    padding: 30px 0;
}

.footer-content {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* Friendly Green Emerald Success Toast Modal */
.success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 24px 38px;
    border-radius: 24px;
    backdrop-filter: blur(24px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.45), 0 0 30px rgba(16, 185, 129, 0.3);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    cursor: pointer;
    min-width: 240px;
}

.success-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-toast.hide {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
}

/* Contact Form Input Validation Errors & Shake Effect */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.5) !important;
    animation: inputShake 0.4s ease-in-out;
}

.error-text {
    color: #f87171;
    font-size: 0.8125rem;
    font-weight: 500;
    display: block;
    margin-top: 6px;
    animation: errorFadeIn 0.2s ease-out;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form 3D Envelope Packing, Flying & Unpacking Animation */
#contact-form,
.contact-form {
    transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
    transform-origin: center center;
}

#contact-form.form-fold-envelope,
.contact-form.form-fold-envelope {
    transform: perspective(800px) rotateX(18deg) rotateY(-2deg) scale(0.86) translateY(-12px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    filter: brightness(1.08) !important;
}

#contact-form.form-fly-away,
.contact-form.form-fly-away {
    transform: perspective(800px) translateY(-850px) rotate(-14deg) scale(0.35) !important;
    opacity: 0 !important;
    filter: blur(5px) !important;
    pointer-events: none !important;
}

#contact-form.form-unpack,
.contact-form.form-unpack {
    animation: formUnpack 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes formUnpack {
    0% {
        transform: perspective(800px) rotateX(18deg) scale(0.86) translateY(-12px);
        opacity: 0.85;
    }

    65% {
        transform: perspective(800px) rotateX(-4deg) scale(1.02) translateY(4px);
        opacity: 1;
    }

    100% {
        transform: perspective(800px) rotateX(0deg) scale(1) translateY(0);
        opacity: 1;
    }
}

/* Red Error Toast Modal */
.error-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 24px 38px;
    border-radius: 24px;
    backdrop-filter: blur(24px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.45), 0 0 30px rgba(239, 68, 68, 0.3);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    cursor: pointer;
    min-width: 240px;
}

.error-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.error-toast.hide {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
}

/* Real 3D Physical Envelope Overlay & Sky Launch Animation Styles */
.envelope-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 26, 0.78);
    backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.envelope-modal-overlay.show {
    opacity: 1;
}

.real-envelope {
    position: relative;
    width: 480px;
    height: 310px;
    perspective: 1000px;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.envelope-modal-overlay.show .real-envelope {
    transform: scale(1) translateY(0);
}

/* Crisp White 3D Physical Envelope */
.env-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45), 0 0 35px rgba(255, 255, 255, 0.3);
}

/* White paper letter sliding upward */
.env-paper {
    position: absolute;
    top: -120px;
    left: 20px;
    width: 440px;
    min-height: 290px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
}

.env-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.env-stamp {
    background: #0f172a;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.env-date {
    font-size: 0.75rem;
    color: #64748b;
}

.env-line {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    color: #1e293b;
}

.env-line.stream-in {
    opacity: 1;
    transform: translateX(0);
}

.env-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), transparent);
    margin: 4px 0;
}

/* Front pocket of the white envelope (V-fold) */
.env-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 240px solid transparent;
    border-right: 240px solid transparent;
    border-bottom: 170px solid #f8fafc;
    z-index: 3;
    filter: drop-shadow(0 -4px 12px rgba(0, 0, 0, 0.15));
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Top flap of the white envelope with calibrated fold position */
.env-top-flap {
    position: absolute;
    top: -152px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 240px solid transparent;
    border-right: 240px solid transparent;
    border-bottom: 155px solid #e2e8f0;
    transform-origin: bottom center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
    z-index: 1;
}

/* Flying text particle from form input to envelope */
.flying-text-particle {
    position: fixed;
    z-index: 10005;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.45s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ENVELOPE CLOSURE (Paper slides into pocket and disappears, flap folds down concealing content) */
.real-envelope.sealed .env-paper {
    transform: translateY(135px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.2s;
}

.real-envelope.sealed .env-top-flap {
    transform: rotateX(-180deg);
    border-bottom-color: #e2e8f0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    z-index: 5;
}

/* Wax seal on envelope flap */
.env-wax-seal {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.2);
    z-index: 6;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.env-wax-seal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ENVELOPE FLY-AWAY ANIMATION UP INTO THE SKY */
.real-envelope.fly-away {
    transform: translateY(-950px) rotate(-16deg) scale(0.35) !important;
    opacity: 0 !important;
    filter: blur(6px) !important;
    transition: transform 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0.8s ease !important;
}

/* Article footer meta tag items (Author, Source, Photos) */
.article-meta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.article-meta-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px 15px;
    border-radius: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-meta-item strong {
    color: #ffffff;
    font-weight: 600;
}

/* Article document attachments button in footer metadata */
.article-meta-item.article-meta-attach {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-meta-item.article-meta-attach:hover {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.article-meta-item.article-meta-attach strong {
    color: #ffffff;
}

/* Gallery progress status badge in article metadata group */
.article-meta-item.article-meta-gallery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.article-meta-gallery.status-loading {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.1);
    color: #bae6fd;
}

.article-meta-gallery.status-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
}

.article-meta-gallery.status-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.gallery-lead-icon {
    font-size: 1rem;
    vertical-align: -3px;
    opacity: 0.85;
}

.gallery-badge-icon.spinning {
    animation: gallerySpin 1s linear infinite;
    display: inline-block;
}

@keyframes gallerySpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.gallery-retry-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-retry-btn:hover {
    transform: rotate(60deg) scale(1.2);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

.gallery-retry-btn:active {
    transform: rotate(180deg) scale(1);
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.letter-stamp {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.letter-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.letter-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.letter-line {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 16px;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.letter-line.stream-in {
    opacity: 1;
    transform: translateX(0);
}

.letter-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
    margin: 4px 0;
}

.letter-seal-badge {
    margin-top: 20px;
    text-align: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 11px 22px;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.letter-seal-badge.show {
    opacity: 1;
    transform: scale(1);
}

.no-flex {
    display: block;
    padding: 10px;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
}

/* Tablet style */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .header-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
        padding-top: 5px;
    }

    .logo {
        font-size: 1.3125rem;
        gap: 12px;
        margin-bottom: 0;
        justify-content: flex-start;
        text-align: left;
        max-width: calc(100% - 130px);
    }

    .logo-icon {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    /* Mobile / Tablet Menu Toggle Button */
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 14px;
        color: #ffffff;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition: all 0.25s ease;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-toggle .material-symbols-outlined {
        font-size: 1.375rem;
    }

    /* Slide-in Drawer Navigation Menu */
    nav#main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        z-index: 2000;
        background: rgba(15, 23, 42, 0.94);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 24px 0 0 24px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        overflow-x: hidden;
        pointer-events: none;
    }

    nav#main-nav.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Override .glass hover transition behavior for slide-in drawer */
    nav#main-nav.glass:hover {
        transform: translateX(105%);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        background: rgba(15, 23, 42, 0.94);
    }

    nav#main-nav.glass.open:hover {
        transform: translateX(0);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        background: rgba(15, 23, 42, 0.94);
    }

    /* Drawer Header */
    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        margin-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
    }

    .drawer-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

    .drawer-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-size: 1.625rem;
        line-height: 1;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .drawer-close-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.08);
    }

    /* Drawer Navigation Links (Option N1: large touch-friendly buttons) */
    nav#main-nav .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    nav#main-nav .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        text-align: left;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    nav#main-nav .nav-links a:hover,
    nav#main-nav .nav-links a.active {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.35);
        transform: translateX(4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    /* Dimmed Backdrop */
    .nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-backdrop.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Hide desktop alignment dummy placeholders so members appear side by side */
    .team-grid .team-member[style*="visibility: hidden"],
    .team-grid .team-member[style*="visibility:hidden"],
    .team-grid .team-member:empty {
        display: none !important;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-member {
        padding: 28px 20px;
    }

    .team-avatar {
        width: 105px;
        height: 105px;
    }

    .grid-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #article-gallery-div a {
        flex: 0 0 240px;
        width: 240px;
        height: 160px;
    }
}

/* Mobile style */
@media (max-width: 768px) {

    .page {
        padding: 30px 20px 20px;
    }

    .content-wrapper {
        min-height: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 15px 8px;
    }

    #news-div {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .about-text {
        padding: 24px 18px;
    }

    .about-content>.about-text,
    #statutes .about-content>.about-content>.about-text {
        flex: 1 1 100%;
        min-width: unset;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Hide desktop dummy placeholders on mobile too */
    .team-grid .team-member[style*="visibility: hidden"],
    .team-grid .team-member[style*="visibility:hidden"],
    .team-grid .team-member:empty {
        display: none !important;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-list {
        grid-template-columns: 1fr;
    }

    #article-gallery-div a {
        flex: 0 0 220px;
        width: 220px;
        height: 150px;
    }

    .footer-links {
        gap: 15px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links a {
        display: block;
        text-align: center;
    }

    button[type="submit"] {
        width: 100%;
    }

    .map-container {
        height: 350px;
    }

    .header-top-bar {
        gap: 8px;
    }

    /* Hide text 'Menu' on phones (e.g. 360px), keep clean compact icon button */
    .mobile-menu-toggle {
        padding: 8px 10px;
        gap: 0;
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .mobile-menu-toggle span:not(.material-symbols-outlined) {
        display: none;
    }

    .mobile-menu-toggle .material-symbols-outlined {
        font-size: 1.625rem;
        margin: 0;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .logo {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 0;
        max-width: calc(100% - 52px);
    }
}

/* Article Segmented Layout & Header Styles */
.article-detail {
    padding: 15px 30px 0px 30px;
    color: #ffffff;
}

.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.article-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 15px;
}

.article-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
    margin: 15px 0 25px;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.article-segment {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 22px 28px;
    line-height: 1.75;
    font-size: 1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

.article-lead {
    font-size: 1.0625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    padding-left: 14px;
    margin-bottom: 18px;
    white-space: pre-line;
}

.article-lead-standalone {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 25px;
    border-left: 4px solid rgba(56, 189, 248, 0.85);
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 8px 8px 0;
}

.article-content {
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-line;
}

.article-footer {
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.article-author {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-author strong {
    color: #ffffff;
}

/* Clickable card styling for article list */
.clickable-card {
    cursor: pointer;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.clickable-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-6px) translateZ(0);
    -webkit-transform: translateY(-6px) translateZ(0);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.clickable-card:hover h3 a {
    color: #ffffff;
    text-decoration: underline;
}

/* News teaser card description styling with multi-line clamp */
.article-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.65;
    margin-bottom: 18px;
    word-break: break-word;
}

/* Smooth gallery item fade-in animation without center translation offsets */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Centered Glass Loading Overlay Modal Styles */
.loading-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 24px 38px;
    border-radius: 24px;
    backdrop-filter: blur(24px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    min-width: 220px;
    text-align: center;
}

.loading-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.loading-toast.hide {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
}

/* Futuristic Glowing Ring Dual Spinner */
.loading-spinner {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, #ffffff 100%);
    animation: spinRing 1s linear infinite;
    display: inline-block;
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff 0);
}

.loading-spinner::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.9);
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   WYSZUKIWARKA I FILTROWANIE ARTYKUŁÓW (NEWS SEARCH & INFINITE SCROLL)
   ========================================================================== */

.content-section,
.news-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-header,
.news-header-wrapper {
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.content-header h2,
.news-header-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 12px;
    line-height: 1.5;
}

.search-card,
.news-search-card {
    width: 100%;
    padding: 22px 24px;
    margin-bottom: 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.search-row,
.news-search-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-input-box,
.news-search-input-box {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 4px 14px;
    transition: all 0.25s ease;
}

.search-input-box:focus-within,
.news-search-input-box:focus-within {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.search-input-box .search-icon,
.news-search-input-box .search-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.375rem;
    flex-shrink: 0;
}

.search-input,
.news-search-input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9375rem;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder,
.news-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-clear-btn,
.news-search-clear-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.search-clear-btn:hover,
.news-search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.search-clear-btn .material-symbols-outlined,
.news-search-clear-btn .material-symbols-outlined {
    font-size: 1rem;
}

.filter-group,
.news-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.select-wrap,
.news-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 5px 12px;
    transition: border-color 0.2s ease;
}

.select-wrap:focus-within,
.news-select-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
}

.select-wrap .filter-label,
.news-select-wrap .filter-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select,
.news-filter-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    padding: 4px 2px;
}

.filter-select option,
.news-filter-select option {
    background: #1e293b;
    color: #ffffff;
}

.reset-btn,
.news-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover,
.news-reset-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.reset-btn .material-symbols-outlined,
.news-reset-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.search-meta-bar,
.news-search-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Wyróżnienie wyszukanych fraz w tytule i opisie */
.search-highlight {
    background: rgba(250, 204, 21, 0.38);
    color: #ffffff;
    padding: 1px 3px;
    border-radius: 4px;
    border-bottom: 2px solid #facc15;
    font-weight: 600;
}

/* Kafelki materiałów / wpisów */
.content-card-item,
.news-card-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    overflow: visible !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.content-card-item:hover,
.news-card-item:hover {
    transform: translateY(-6px) translateZ(0);
    -webkit-transform: translateY(-6px) translateZ(0);
}

.content-card-item h3,
.content-card-item p,
.content-card-item .card-meta,
.content-card-item .card-readmore,
.news-card-item h3,
.news-card-item p,
.news-card-item .news-card-meta,
.news-card-item .news-card-readmore {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
}

.card-meta,
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 8px 0 12px 0;
}

.meta-date,
.meta-author,
.news-meta-date,
.news-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-icon,
.news-meta-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
}

.card-readmore,
.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #60a5fa;
    margin-top: 14px;
    transition: gap 0.2s ease;
}

.content-card-item:hover .card-readmore,
.news-card-item:hover .news-card-readmore {
    gap: 10px;
    color: #93c5fd;
}

/* Stan pusty dla braku wyników wyszukiwania */
.empty-search-state,
.news-empty-search {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    color: #ffffff;
}

.empty-search-icon,
.news-empty-icon {
    font-size: 3.375rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.empty-search-state h3,
.news-empty-search h3 {
    font-size: 1.375rem;
    margin-bottom: 8px;
}

.empty-search-state p,
.news-empty-search p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 20px auto;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Nawigacja powrotu w widoku artykułu */
.article-top-nav {
    margin-bottom: 20px;
}

.article-bottom-nav {
    margin-top: 30px;
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-back-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-3px);
}

.article-back-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ==========================================================================
   DOSTĘPNOŚĆ WCAG 2.1 AA, BIP, RODO ORAZ STANDARDY DLA PODMIOTÓW PUBLICZNYCH
   ========================================================================== */

/* ── 1. Skip Link (Przejście do treści głównej) ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    background: #ffff00;
    color: #000000;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #000000;
    border-radius: 6px;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 15px;
    outline: 3px solid #0284c7;
}

/* ── 2. Pasek Narzędzi Dostępności (A11y Toolbar) ── */
.a11y-toolbar {
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    font-size: 0.8125rem;
    color: #e2e8f0;
    position: relative;
    z-index: 100;
}

.a11y-toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.a11y-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.a11y-label {
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.5px;
}

.a11y-sublabel {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-right: 2px;
}

.a11y-font-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.a11y-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.a11y-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.a11y-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.a11y-btn.active {
    background: #38bdf8;
    color: #0f172a;
    font-weight: 700;
    border-color: #38bdf8;
}

.font-btn {
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    justify-content: center;
    font-weight: 700;
}

.a11y-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.a11y-link {
    color: #93c5fd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.a11y-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

/* ── 3. Znak Urzędowy BIP (Biuletyn Informacji Publicznej) ── */
.bip-top-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s ease, filter 0.2s ease;
    vertical-align: middle;
}

.bip-top-icon-link:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 8px rgba(185, 28, 28, 0.7));
}

.bip-top-icon-link:focus-visible {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
}

.bip-icon-svg {
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .a11y-toolbar {
        padding: 6px 12px;
    }

    .a11y-toolbar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .a11y-btn-text {
        display: none;
    }
}

.bip-flag-large {
    background: #b91c1c;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 900;
    padding: 10px 18px;
    border-radius: 8px;
    letter-spacing: 1px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bip-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bip-title-row h2 {
    margin-bottom: 4px !important;
}

.bip-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0 !important;
}

.bip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* ── 4. Dedykowane style dla podstron formalno-prawnych (BIP, RODO, Deklaracja) ── */
.formal-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 20px;
}

.formal-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.formal-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: #38bdf8;
    font-size: 1.25rem;
    line-height: 1.4;
}

.formal-subbox {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #38bdf8;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.formal-subbox .formal-list {
    margin: 0;
}

.doc-lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.text-link {
    color: #38bdf8;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #bae6fd;
}

.quick-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.inline-btn {
    display: inline-flex !important;
    margin-top: 12px;
}

/* ── 5. Formularz kontaktowy: Checkbox RODO i gwiazdki wymaganych pól ── */
.required-star {
    color: #f87171;
    font-weight: bold;
    margin-left: 2px;
}

.form-checkbox-group {
    margin: 15px 0 20px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.8438rem !important;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0284c7;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.form-turnstile-group {
    margin: 15px 0 20px;
    display: flex;
    justify-content: flex-start;
}

/* ── 6. Stopka urzędowa (Footer) ── */
.copyright-sub {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ── 7. TRYB WYSOKIEGO KONTRASTU (WCAG 2.1 AA / AAA) ── */
body.high-contrast {
    background: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast .bg-shapes,
body.high-contrast .shape {
    display: none !important;
}

body.high-contrast header,
body.high-contrast .glass,
body.high-contrast nav.glass,
body.high-contrast footer.glass,
body.high-contrast .modal-content,
body.high-contrast .stat-card,
body.high-contrast .team-member,
body.high-contrast .about-text {
    background: #000000 !important;
    backdrop-filter: none !important;
    border: 2px solid #ffff00 !important;
    box-shadow: none !important;
    color: #ffff00 !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast p,
body.high-contrast span,
body.high-contrast strong,
body.high-contrast li,
body.high-contrast label,
body.high-contrast small,
body.high-contrast .stat-number,
body.high-contrast .stat-label,
body.high-contrast .logo span {
    color: #ffff00 !important;
    text-shadow: none !important;
}

body.high-contrast a,
body.high-contrast .text-link,
body.high-contrast .nav-links a,
body.high-contrast .footer-links a {
    color: #ffff00 !important;
    text-decoration: underline !important;
    text-shadow: none !important;
    border-color: #ffff00 !important;
}

body.high-contrast .nav-links a:hover,
body.high-contrast .nav-links a.active,
body.high-contrast .footer-links a:hover,
body.high-contrast .footer-links a.active {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.high-contrast .cta-button,
body.high-contrast .link-button,
body.high-contrast button {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    text-shadow: none !important;
}

body.high-contrast .cta-button:hover,
body.high-contrast .link-button:hover,
body.high-contrast button:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.high-contrast input[type="text"],
body.high-contrast input[type="email"],
body.high-contrast textarea {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

body.high-contrast input::placeholder,
body.high-contrast textarea::placeholder {
    color: #999900 !important;
}

body.high-contrast .a11y-toolbar {
    background: #000000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

body.high-contrast .bip-flag-large,
body.high-contrast .bip-nav-badge {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

body.high-contrast .bip-flag {
    background: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast .search-card,
body.high-contrast .news-search-card,
body.high-contrast .search-input-box,
body.high-contrast .news-search-input-box,
body.high-contrast .select-wrap,
body.high-contrast .news-select-wrap {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .search-input,
body.high-contrast .news-search-input,
body.high-contrast .filter-select,
body.high-contrast .news-filter-select,
body.high-contrast .filter-label,
body.high-contrast .search-meta-bar,
body.high-contrast .news-search-meta-bar,
body.high-contrast .meta-icon,
body.high-contrast .news-meta-icon {
    color: #ffff00 !important;
}

body.high-contrast .search-input::placeholder,
body.high-contrast .news-search-input::placeholder {
    color: #999900 !important;
}

body.high-contrast .reset-btn,
body.high-contrast .news-reset-btn,
body.high-contrast .article-back-btn {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .reset-btn:hover,
body.high-contrast .news-reset-btn:hover,
body.high-contrast .article-back-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.high-contrast .search-highlight {
    background: #ffff00 !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
}

body.high-contrast .card-readmore,
body.high-contrast .news-card-readmore {
    color: #ffff00 !important;
}

/* ── 8. MODYFIKACJA ROZMIARU CZCIONKI (WCAG 2.1 AA) ── */
html.font-size-md,
body.font-size-md:not(html.font-size-md body) {
    font-size: 115% !important;
}

html.font-size-lg,
body.font-size-lg:not(html.font-size-lg body) {
    font-size: 130% !important;
}

/* ── 9. WYŁĄCZENIE RUCHU (PRZYCISK "ZATRZYMAJ RUCH" W PASKU DOSTĘPNOŚCI) ── */
body.reduced-motion .shape {
    animation-play-state: paused !important;
}


/* ── 10. NAWIGACJA ARTYKUŁU I DOSTĘPNOŚĆ (IKONA WSTECZ, UDOSTĘPNIJ, SR-ONLY) ── */
.article-top-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 30px 0 30px;
    margin: 0;
    width: 100%;
    text-align: left;
}

.article-back-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.article-back-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.article-back-icon-btn:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

.article-back-icon-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

#article-div .article-detail {
    padding-top: 6px;
}

@media (max-width: 768px) {
    .article-top-nav {
        padding: 12px 16px 0 16px;
    }

    #article-div .article-detail,
    #article-div.gallery-hero-grid .article-detail {
        padding-top: 4px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.article-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.article-date-row .article-date {
    margin-bottom: 0;
}

.article-share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-share-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: scale(1.08);
}

.article-share-icon-btn:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

.article-share-icon-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

/* Klasa pomocnicza dla czytników ekranowych (WCAG) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Wsparcie wysokiego kontrastu dla ikon nawigacji artykułu */
body.high-contrast .article-back-icon-btn,
body.high-contrast .article-share-icon-btn {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .article-back-icon-btn:hover,
body.high-contrast .article-share-icon-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}


/* ── 11. ZNAK URZĘDOWY BIP (SVG Z ASSETS/IMAGES/BIP.SVG) ── */
.bip-top-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    padding: 3px 6px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    vertical-align: middle;
}

.bip-top-icon-link:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(192, 4, 24, 0.4);
}

.bip-top-icon-link:focus-visible {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
}

.bip-icon-img {
    height: 18px;
    width: auto;
    display: block;
}

.bip-flag-large {
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bip-flag-large-img {
    height: 38px;
    width: auto;
    display: block;
}

body.high-contrast .bip-top-icon-link,
body.high-contrast .bip-flag-large {
    background: #ffff00 !important;
    border: 2px solid #000000 !important;
}