:root {
    --identity-color: #1E6284;
    --identity-color-hover: #2C93D0;
    --background-color: #ffffff;
    --text-color:#000000;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
}

.justify-text {
	text-align: justify;
}

/* TYPOGRAFIA TREŚCI STRON I WPISÓW */

.single-page h1,
.single-post h1,
.department-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.single-page-content h2,
.single-post-content h2,
.department-content h2 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.single-page-content h3,
.single-post-content h3,
.department-content h3 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
}

.single-page-content h4,
.single-post-content h4,
.department-content h4 {
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.single-page-content h5,
.single-post-content h5,
.department-content h5 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.single-page-content h6,
.single-post-content h6,
.department-content h6 {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

@media (max-width: 760px) {

    .single-page h1,
    .single-post h1,
    .department-title {
        font-size: 2rem;
    }

    .single-page-content h2,
    .single-post-content h2,
    .department-content h2 {
        font-size: 1.75rem;
    }

    .single-page-content h3,
    .single-post-content h3,
    .department-content h3 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 760px) {
    .site-title, h1 {
        font-size: 1rem;
        font-weight: 300;
    }
}

@media only screen and (min-width: 760px) {
    .site-title, h1 {
        font-size: 1rem;
        font-weight: 300;
    }
}

@media only screen and (max-width: 960px) {
    nav {
        position: relative;
    }

    .only-desktop {
        display: none;
    }

    .only-mobile {
        display: flex;
    }
}

@media only screen and (min-width: 961px) {
    .only-desktop {
        display: flex;
    }

    .only-mobile {
        display: none;
    }

    #searcher {
        border: 1px var(--identity-color) solid;
    }
}


a {
    text-decoration: none;
    font-family: "Inter", sans-serif;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--background-color);
    border: 2px dashed red;
    font-weight: bold;
    color: var(--identity-color);
    font-size: 1.2rem;
    padding: 10px;
}

.skip-link:focus {
    top: 0;
}

#top-bar-link-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    min-height: 50px;
    width: 100%;
    border-bottom: 1px var(--identity-color) solid;
    padding: 0 30px;
    gap: 1.1rem;
}

.top-bar-logo-link:hover {
    outline: 1px solid black;
}

.top-bar-logo {
	max-height: 30px;
}

#searcher {
    height: 60px;
    width: 90%;
    max-width: 510px;
    border-radius: 6px;
    background-color: white;
    flex-direction: row;
}

#searcher > form  {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

#searcher input[type="text"]{
    height: 100%;
    border-radius: 6px 0px 0px 6px;
    width: calc(100% - 60px);
    padding: 10px;
    border: none;
    font-size: 1.1rem;
}

#searcher input[type="text"]:focus, #searcher button:focus {
    outline: 2px solid white;
}

#searcher input[type="text"]:hover, #searcher button:hover {
    outline: 2px solid white;
}

#searcher button {
    background-color: red;
    color: white;
    width: 60px;
    height: 100%;
    border-radius: 0px 6px 6px 0px;
    font-weight: 500;
    border: none;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

#searcher button:hover {
    cursor: pointer;
    background-color: #DD0000;
} 

.icon {
    color: var(--background-color);
    font-size: 1.2rem;
}

.icon-down-dir {
    color: var(--background-color);
}

#right-logo-container {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--identity-color);
    max-width: 30%;
    padding-left: 20px;
}

#logo-powiatu {
    width: 100%;
    padding: 10px 0;
}

@media only screen and (max-width: 960px) {
    #page-header {
        height: 120px;
        padding: 0px 20px;
    }

    #logo {
        max-width: 100px;
        width: 20vw;
    }

    .has-submenu > .drop-down-submenu {
        top: 100%;
        left: 0px;
    }
	
	#web-identity .site-title {
		font-size: 1rem;
	}
}

@media only screen and (min-width: 960px) {
    #page-header {
        height: 120px;
        padding: 0px 20px;
    }
	
	#web-identity .site-title {
		width: 50vw;
		font-size: 1rem;
	}

    #logo{
        max-width: 120px;
        width: 20vw;
    }

    .has-submenu > .drop-down-submenu {
        top: calc(100% - 2px);
        left: 1px;
    }
}

#page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-color);
    color: var(--identity-color);
}

#web-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#logo {
    padding-right: 20px;
    border-right: 2px solid var(--identity-color);
}

#main-menu {
	background: var(--identity-color);
    width: 100%;
    list-style-type: none;
}

#main-menu li {
    position: relative;
	background: var(--identity-color);
}

#main-menu li a, #main-menu button {
    background: var(--identity-color);
    border: 2px transparent solid;
    color: var(--background-color);
    font-weight: 500;
    padding: 10px;
    display: block;
	width: 100%;
    text-transform: uppercase;
}

.has-submenu > .drop-down-submenu {
    display: none;
    flex-direction: column;
}

.has-submenu li {
    list-style-type: none;
    font-weight: 300;
    background-color: var(--background-color);
}

.open > .drop-down-submenu  {
    display: flex;
}

#main-menu a:focus, #main-menu button:focus {
    border: 2px solid var(--background-color);
    outline: none;
    text-decoration: 2px underline var(--backgournd-color);
}

#main-menu a:hover, #main-menu button:hover {
    text-decoration: underline 2px var(--background-color);
}

@media only screen and (max-width: 1350px) {
    #main-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
    }

    

    .has-submenu > .drop-down-submenu {  
        position: relative;
    }

    .open {
        display: flex !important;
    }

    #main-menu li {
        flex-direction: column;
    }

    #main-menu li a, #main-menu button {
        text-align: right;
        font-weight: bold;
        font-size: 0.8rem;
    }

    #open-menu-btn {
        display: block;
        background-color: transparent;
        border: 2px solid transparent;
        font-size: 2rem;
        padding: 5px;
        margin-left: auto;
        margin-right: 5px;
    }

    #open-menu-btn:focus {
        border: 2px dashed red;
        outline: none;
    }
}

@media only screen and (min-width: 1350px) {
    .main-navigation {
        border-bottom: 1px solid var(--identity-color);
    }

    #main-menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        height: 60px;
        align-items: center;
    }

    #main-menu li {
        height: 100%;
        display: flex;
        align-items: center;
        align-content: center;
        padding: 1px;
    }

    #main-menu li a, #main-menu button {
        font-size: 0.8rem;
        height: 100%;
        display: flex;
        align-items: center;
        z-index: 20;
    }

    .has-submenu.open button {
        z-index: 100 !important;
        border: 2px solid var(--identity-color) !important;
        border-bottom: 2px solid var(--background-color) !important;
    }

    .has-submenu ul {
		background-color: var(--identity-color);
    }

    .has-submenu li {
        min-width: 250px;
    }

    .has-submenu > .drop-down-submenu {  
        position: absolute;
    }

    #open-menu-btn {
        display: none;
    }

    .open > .drop-down-submenu  {
        z-index: 99 !important;
        min-width: calc(100% - 2px);
    }
    
}


#identity {
    width: 100%;
    height: 350px;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    color: var(--background-color);
    display: flex;
	position: relative;
}

#identity::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 5;
}

#identity h2 {
    font-weight: bold;
    letter-spacing: 1px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#subtitle {
    letter-spacing: 1px;
}

#subtitle a {
    color: var(--background-color);
}

#identity p {
    font-weight: 600;
    text-align: justify;
    max-width: 550px;
	z-index: 10;
    margin-bottom: 15px;
}

#left-box {
    width: 100%;
	z-index: 11;
}

.top-bar-logo {
	max-height: 30px;
}

@media only screen and (max-width: 960px) {
    #identity {
        flex-direction: column;
        justify-content: center;
    }

    #identity p {
        font-size: 2rem;
    }

    #identity h2 {
        font-size: 1.2rem;
    }

    #subtitle a {
        font-size: 1.125rem;
        line-height: 2rem;
    }

    #right-box {
        display: none;
    }
}

@media only screen and (min-width: 960px) {
    #identity {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    #identity p {
        font-size: 2.3rem;
    }
	
	#left-box {
		margin-left: 7%;
	}

    #identity h2 {
        font-size: 2.5rem;
    }

    #subtitle a {
        font-weight: 400;
        line-height: 3rem;
        font-size: 1.5rem;
    }

    #right-box {
        width: fit-content;
    }

    #right-box img {
        max-width: 250px;
    }
}

/* MAIN CONTENT */
.main-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
	margin-top: 1rem;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
}

.uppercase {
    text-transform: uppercase;
}

.post {
    display: flex;
    padding-bottom: 20px;
    border-bottom: 1px solid black;
}

.post-meta-info {
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 5px;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-content p {
    font-size: 1rem;
    font-weight: 400;
    width: 100%;
    text-align: justify;
    margin-top: 15px;
}

.post-image {
    max-width: 400px;
    max-height: 225px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;

}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-more {
    padding: 15px;
    border-radius: 6px;
    background-color: var(--identity-color);
    color: var(--background-color);
    font-size: 1rem;
    font-weight: 600;
    width: fit-content;
    margin-top: 20px;
    text-align: center;
}

.read-more:hover {
    background-color: var(--identity-color-hover);
    cursor: pointer;
}

.read-more:focus {
    outline: 3px solid red;
}


@media screen and (max-width: 960px) {
    .post {
        flex-direction: column;
        justify-content: space-between;
    }

    .post-content {
        order: 2;
        width: 100%;
    }

    h4 {
        margin-top: 15px;
    }

    .post-image {
        order: 1;
        min-width: 50%;
    }
}

@media screen and (min-width: 961px) {
    .post {
        flex-direction: row;
        justify-content: space-between;
    }

    .post-content {
        max-width: 65%;
    }

    .post-image {
        width: 30%;
    }
}

#bottom-external-links {
    padding: 20px;
    
}

#bottom-external-links h2 {
    font-weight: 300;
    font-size: 0.9rem;
}

.ext-links-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 15px;
}

footer {
	display: flex;
	flex-direction: column;
}

.footer {
    display: flex;
    flex-direction: column;
    background-color: var(--identity-color);
    width: 100%;
    margin-top: 20px;
}

.footer a {
    color: var(--background-color);
}

.footer h2 {
    color: var(--background-color);
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-section, #footer-info {
    color: var(--background-color);
    font-size: 0.9rem;
}

.footer-section p, #footer-info p {
    margin: 15px 0px;
}

.footer-hours ul {
    padding-left: 1.2rem;
}

.footer-hours li {
    margin-bottom: 0.5rem;
}

.footer-name {
    font-weight: 700;
}

.footer-hours {
    color: white;
}

.footer-navigation ul {
    list-style-type: none;
    padding-left: 0.4rem;
}

.footer-navigation li {
    margin-bottom: .5rem;
    font-weight: 300;

}

.footer-navigation a:hover {
    text-decoration: underline;
}

#copyright-info {
    width: 100%;
    padding: 15px;
    color: #000000;
    background-color: var(--background-color);
}

#copyright-info .icon-copyright {
    color: var(--identity-color);
}

#copyright-info a {
    color: #000000;
}

#copyright-info a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 760px) {
    .footer {
        flex-direction: column;
        padding: 20px;
        gap: 2rem;
    }

    .footer-section footer-info {
        padding: 20px;
		font-size: 1rem;
    }
	
	#copyright-info {
		font-size: 0.8rem;
	}
}

@media screen and (min-width: 761px) {
    .footer {
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
        padding: 0px 30px;
    }

    .footer-section, #footer-info {
        padding: 30px;
        text-align: left;
        width: 50%;
        max-width: 640px;
    }

    #copyright-info {
        text-align: center;
		font-size: 0.9rem;
	}
}

.category-link a {
	font-size: 1.2rem;
    color: var(--identity-color);
    padding: 5px;
}

.category-link a:hover {
    outline: 1px solid var(--identity-color);
}

/* SINGLE POST */
.single-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto 0px auto;
    width: 100%;
    max-width: 1280px;
    padding: 20px;
    min-height: 70vh;

}

.single-post-content {
    width: 100%;
    margin-top: 20px;
}

.single-post-content p {
    margin-top: 15px;
}

/* SINGLE PAGE */
.single-page {
    display: flex;
    flex-direction: column;
    margin: 40px auto 0px auto;
    width: 100%;
    max-width: 1280px;
    padding: 20px;
    min-height: 70vh;

}

.single-page-content {
    width: 100%;
    margin-top: 20px;
}

.single-page-content p {
    margin-top: 15px;
}

/* PAGINATION */
@media screen and (min-width: 761px) {
	.pagination {
    	margin: 10px 20px 20px auto;
	}
	
	.nav-links a, .nav-links span {
		padding: 10px 20px;
		font-size: 1rem;
	}
}

@media screen and (max-width: 760px) {
	.nav-links a, .nav-links span {
		padding: 5px 10px;
		font-size: 0.9rem;
	}
}

.nav-links a, .nav-links span {
    color: var(--text-color);
    text-decoration: none;
}

.nav-links a:focus, .nav-links span {
    border: 1px dashed var(--background-color);
}

.nav-links .current {
    color: var(--identity-color);
    font-weight: 600;
    border: 1px solid var(--identity-color);
}

.read-more {
    color: #FFF !important;
    text-decoration: none !important;
}

.read-more:hover, .read-more:focus {
    text-decoration: underline !important;
}

.wp-block-file {
    padding: 10px;
}

.wp-block-file a {
    font-size: 1.05rem;
    color: var(--identity-color);
    padding: 5px;
}

.wp-block-file a:hover {
    outline: 1px solid var(--identity-color);
}

.wp-block-list {
    margin-left: 30px !important;
}

.wp-block-list li {
    padding: 5px;
}

.wp-block-image {
    padding: 1rem;
}

.box-border {
    border: 2px solid var(--identity-color);
}

.box-rounded {
    border-radius: 20px;
    overflow: hidden;
}


/* SITEMAP */

.sitemap-container {
    padding: 20px !important;
}

.sitemap-container h3 {
    margin-top: 20px;
}

.sitemap-container a {
    color: #004177 !important;
}

.sitemap-list {
    margin-left: 15px !important;
    font-size: 1.2rem;
}

.sitemap-list li {
    padding: 5px;
}

/* LIGHTBOX */

/* Zmiana wyglądu galerii */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 0;
    margin: 0;
}

.wp-block-gallery .wp-block-image img {
    width: 150px !important;  
    height: auto;  
    object-fit: cover; 
    margin: 0 auto;  
}

.wp-block-gallery {
    gap: 10px; 
}

.wp-block-gallery .wp-block-image img:hover {
    transform: scale(1.05);
}


.wp-block-gallery .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* POSTY NA PODSTRONACH */
.post-item-subcategory {
    margin: 20px 0px;
}

.post-item-subcategory a {
    color: #004bcc;
}

.post-item-subcategory a:hover, .post-item-subcategory a:focus  {
    color: #226dee;
    text-decoration: underline;
}

#subcategory-pagination {
    margin-top: 40px;
}

.single-page-post {
    margin: 20px;
    align-items: center;
}

/* LOGO CAROUSEL */
.gs-logo--img {
    width: auto !important;
    height: 150px !important;
	object-fit: contain;
	display: block;
}

/* WP BUTTON */
.wp-block-button__link {
	border: 3px solid transparent;
	background-color: var(--identity-color);
}
.wp-block-button__link:hover, .wp-block-button__link:focus {
	border: 3px solid red;
	outline: none;
	text-decoration: underline;
}

/* TEACHERS */
.teachers-list {
	display: flex;
	justify-content: center;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
}

.teachers-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	flex: 1 1 30%;
  	max-width: 32%;
  	min-width: 250px; 
	border: 1px solid var(--identity-color);
	border-radius: 6px;
}

.teachers-list li img {
	width: 160px;
	padding: 1rem;
}

.teachers-list li a {
	background-color: var(--identity-color);
	color: #FFF;
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	margin-top: 0.75rem;
}

/* PROJECTS */
.projects-list {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
}

.projects-list li {
	list-style-type: none;
}

.projects-list li a {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--identity-color);
	color: #000;
	border-radius: 6px;
	font-size: 1.2rem;
}

.projects-list li a:hover {
	opacity: 0.7;
	text-decoration: underline;
}

.projects-list li a img {
	height: 100px;
	width: auto;
	object-fit: contain;
	display: block;
	padding: 1rem;
}

/* BREADCRUMBS */
.breadcrumbs {
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d9e0e7;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    line-height: 1.5;
    color: #1f2937;
    font-size: 1rem;
}

.breadcrumbs__item:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: #6b7280;
}

.breadcrumbs__link {
    color: var(--identity-color);
    text-decoration: none;
    border-radius: 0.375rem;
    padding: 0.125rem 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}

.breadcrumbs__link:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.breadcrumbs__link:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 2px;
    background-color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.breadcrumbs__current {
    font-weight: 600;
    color: #111827;
    padding: 0.125rem 0.25rem;
    border-radius: 0.375rem;
}

@media (max-width: 640px) {
    .breadcrumbs {
        padding: 0.75rem;
    }

    .breadcrumbs__item {
        font-size: 0.95rem;
    }
}


/* ================================
   Strona działu z submenu — WCAG
================================ */

.department-page {
    max-width: 1800px;
    min-height: 300px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.department-title {
    margin: 0 0 28px;
    color: #111111;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
}

.department-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    min-height: 500px;
    align-items: stretch;
}

/* Lewe menu działu */

.department-sidebar {
    height: 100%;
    background: #eeeeee;
}

.department-sidebar ul {
    min-height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #eeeeee;
}

.department-sidebar li {
    margin: 0;
}

.department-sidebar a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    color: #222222;
    background: transparent;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
}

.department-sidebar a:hover {
    background: #d6d6d6;
    color: #111111;
    text-decoration: underline;
}

.department-sidebar a:focus,
.department-sidebar a:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    background: #ffffff;
    color: #111111;
    text-decoration: underline;
}

/* Aktualna strona */

.department-sidebar .current_page_item > a,
.department-sidebar .current_page_parent > a,
.department-sidebar .current_page_ancestor > a {
    background: #3d6788;
    color: #ffffff;
    font-weight: 700;
}

.department-sidebar .current_page_item > a::before,
.department-sidebar .current_page_parent > a::before,
.department-sidebar .current_page_ancestor > a::before {
    content: "›";
    margin-right: 8px;
    font-weight: 700;
}

.department-sidebar .current_page_item > a:focus,
.department-sidebar .current_page_item > a:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* Treść strony */

.department-content {
    min-width: 0;
    /* max-width: 760px; */
}

/* .department-content h2 {
    margin: 32px 0 14px;
    color: #111111;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.department-content h3 {
    margin: 24px 0 12px;
    color: #111111;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 700;
} */

.department-content p {
    margin: 0 0 16px;
    color: #222222;
    font-size: 1rem;
    line-height: 1.7;
}

.department-content ul,
.department-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.department-content li {
    margin-bottom: 8px;
    color: #222222;
    font-size: 1rem;
    line-height: 1.6;
}

/* Linki w treści */

.department-content a {
    color: #004f9e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.department-content a:hover {
    color: #003b75;
    text-decoration-thickness: 2px;
}

.department-content a:focus,
.department-content a:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
    background: #ffffff;
}

/* Media */

.department-content img,
.department-content video,
.department-content iframe {
    max-width: 100%;
}

.department-content img {
    height: auto;
}

/* Tabele */

.department-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.department-content th,
.department-content td {
    padding: 10px 12px;
    border: 1px solid #777777;
    text-align: left;
    vertical-align: top;
}

.department-content th {
    background: #eeeeee;
    color: #111111;
    font-weight: 700;
}

/* Zaznaczanie tekstu */

.department-content ::selection,
.department-sidebar ::selection {
    background: #ffbf47;
    color: #111111;
}

/* Screen reader */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    background: #ffffff;
    color: #111111;
    outline: 3px solid #005fcc;
}

/* Responsywność */

@media (max-width: 768px) {
    .department-page {
        min-height: auto;
        padding: 0 16px;
    }

    .department-title {
        font-size: 1.75rem;
    }

    .department-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .department-sidebar,
    .department-sidebar ul {
        height: auto;
        min-height: auto;
    }

    .department-sidebar {
        margin-bottom: 8px;
    }

    .department-sidebar a {
        min-height: 48px;
    }

    .department-content {
        max-width: none;
    }

    .department-content h2 {
        font-size: 1.35rem;
    }
}

/* Ograniczenie animacji */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* STRONA DZIAŁY - LISTA DZIAŁÓW */
.departments-page {
    max-width: 1180px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.departments-title {
    margin: 0 0 32px;
    color: #111111;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
}

.department-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin: 40px 0;
    padding: 0;
}

.department-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 260px;
    padding: 20px;

    color: #3d6788;
    text-decoration: none;
    border: 3px solid transparent;
}

.department-card:hover {
    text-decoration: underline;
    border: 3px solid var(--identity-color);
}

.department-card:focus,
.department-card:focus-visible {
    outline: 3px solid var(--identity-color);
    outline-offset: 4px;
}

.department-card img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    object-fit: contain;
}

.department-card span {
    max-width: 260px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
}

@media (max-width: 900px) {
    .department-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .departments-page {
        padding: 0 16px;
    }

    .department-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .department-card {
        min-height: 220px;
    }

    .department-card img {
        width: 130px;
        height: 130px;
    }
}