:root {
    --identity-color: #1B3955;
    --identity-color-hover: #3D5B77;
    --background-color: #ffffff;
    --text-color:#000000;
  }

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

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

h2 {
    font-size: 1.2rem;
}

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

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

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

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

    .only-desktop {
        display: none;
    }

    .only-mobile {
        display: flex;
    }

    #searcher {
        border: 1px solid var(--text-color);
        position: absolute;
        top: 5px;
        left: 10px;
    }

    #searcher-box {
        position: relative;
    }
}

@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;
}

#important-links {
    list-style-type: none;
    flex-direction: row;
    gap: 20px;
    margin-left: auto;
    margin-right: 40px;
}

#important-links a {
    color: var(--identity-color);
    font-size: 1.3rem;
    font-weight: 600;
    border: 2px dashed transparent;
}

#important-links a:focus {
    border: 2px dashed red;
    outline: none;
}

#important-links a:hover {
    border: 2px solid var(--background-color);
    outline: none;
}

#searcher {
    height: 40px;
    width: 220px;
    border-radius: 6px;
    background-color: var(--background-color);
    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: 65%;
    padding: 10px;
    border: none;
    font-size: 0.9rem;
}

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

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



#searcher button {
    background-color: var(--identity-color);
    color: var(--background-color);
    width: 35%;
    border-radius: 0px 6px 6px 0px;
    font-weight: 500;
    border: none;
    font-size: 1rem;
    letter-spacing: 1px;
}

#searcher button:hover {
    cursor: pointer;
    background-color: var(--identity-color-hover);
} 

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

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

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

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

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

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

    #school-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;
}

#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: 400;
    padding: 10px;
    display: block;
	width: 100%;
}

.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: 1.2rem;
    }

    #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: 1rem;
        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: 60vh;
    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;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	z-index: 10;
}

#left-box {
	z-index: 11;
}

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

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

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

    #identity p {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    #right-box {
        display: none;
    }
}

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

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

    #identity p {
        font-size: 1.3rem;
        margin-top: 40px;
    }

    #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 */
h3 {
    font-weight: 400;
    font-size: 1.75rem;
    margin: 20px 0px;
}

h4 {
    font-weight: 600;
    font-size: 1.5rem;
}

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

.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%;
    }
}

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;
}

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

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


#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;
    }

    #footer-contact, #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-contact, #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);
}

.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;
    }
}