/*
Theme Name: AGH THEME
Theme URI:
Author:     CRI AGH
Author URI:  https://cri.agh.edu.pl/
Description:
Version:    1.0
License:    GNU General Public License v2 or later
Text Domain:theme-AGH
*/

/*additional root var*/
:root {
    --main-color: #ff0000;
    --footer-bg: #000000;
    --footer-color: #ffffff;
    --navbar-bg-collapse: #56292e;
    --navbar-color-collapse: #ffffff;
    --navbar-bg:#000000;
}

*:focus-visible {
    outline: 1px solid #ff0000 !important;
    outline-offset: -1px;
    box-shadow: none;
}

.footbg {
    background-color: var(--footer-bg);
    color: var(--footer-color);
    font-size: 1rem;
    padding-bottom: 4rem;
    padding-top: 4rem;
    margin-top: 4rem;
}

.socmedia a {
    text-decoration: none;
    font-size: 2rem;
    margin-left: 0.35rem;
    opacity: 1;
    color: var(--footer-color) !important;
    position: relative;
    bottom: -2rem;
    right: 2rem;
}

@media (max-width: 767.98px) {
    .footbg .socmedia {
        font-size: 3rem;
        padding-bottom: 2rem;
        text-align: center !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 991.98px) {
    .footbg .menu {
       padding-left: 0 !important;
    }
}


body.no-scroll {
    overflow: hidden;
    height: 100%;
}

.socmedia a:hover {
    opacity: 0.5;
}

.navbar-toggler {
    color: #ffffff;
}

#scroller {
    position: relative;
    width: 100%;
    height: 100%;
    margin-right: 0;
}

.back-to-top {
    position: fixed;
    right: 1.875rem;
    bottom: 1.875rem;
    z-index: 999;
    width: 3rem;
    height: 3rem;
    margin-right: -5rem;
    background-color: var(--main-color);
    transition: 0.5s margin-right;
}

.back-to-top i {
    font-size: 1rem;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.active-scroll {
    position: fixed;
    right: 1.875rem;
    bottom: 1.875rem;
    margin-right: 0;
    transition: 0.5s margin-right;
}

.title::before {
    display: inline-block;
    width: 0.25rem;
    height: 0.25rem;
    margin-right: 0.5rem;
    content: "";
    border: 0.275rem solid var(--main-color);
}

.post h2:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.1rem;
}

.border-custom {
    border-color: var(--main-color) !important;
}

.border-gray {
    border-color: #808080 !important;
}

article {
    top: 70px;
}

.navbar-toggler {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    display: block;
}

.navbar-toggler-icon {
    position: absolute;
    top: 10px;
    right: 0;
    width: 26px;
    height: 4px;
    border-radius: 5px;
    background-color: #ffffff;
    transition: all 0.5s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
}

.navbar-toggler-icon::before {
    transform: translate(-13px, -10px);
}

.navbar-toggler-icon::after {
    transform: translate(-13px, 10px);
}

.navbar-toggler[aria-expanded=true] > span.navbar-toggler-icon {
    background: transparent;
    transform: translateX(-30px);
}

.navbar-toggler[aria-expanded=true] > span.navbar-toggler-icon::before {
    transform: rotate(45deg) translate(13px, -13px);
}

.navbar-toggler[aria-expanded=true] > span.navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(13px, 13px);
}


.navbar-nav .sub-menu {
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0 0.5rem 0 0;
    font-size: 1rem;
    color: var(--navbar-color-collapse);
    background: var(--navbar-bg-collapse);
    border-radius: 0;
    list-style: none;
}

.navbar-nav span[role="button"]:focus-visible,
.navbar-nav .sub-menu a:focus-visible {
    outline: 1px solid #ff0000;
    outline-offset: -1px;
    background-color: transparent;
    box-shadow: none;
}

.navbar-collapse.show {
    height: calc(100vh - 80px);
}

.navbar-collapse, .navbar-collapse ul {
    background-color: var(--navbar-bg-collapse);
}

.navbar-nav {
    padding-top: 50px;
}

.navbar-nav .sub-menu {
    position: static;
    display: none;
    float: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 2rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.nav-link {
    font-size: 1.8rem;
    width: fit-content;
    padding-top: 0;
    padding-bottom: 0;
    color: var(--navbar-color-collapse);
}

.nav-link:hover, .nav-link:focus {
    color: var(--navbar-color-collapse);
    box-shadow: none;
}

/*paginacja */
.pagination {
    display: flex;
    gap: 4px;
}

.prev-link a, .next-link a,
.nav-links a, .nav-links span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #dee2e6;
    color: #212529;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.prev-link a:hover, .next-link a:hover,
.nav-links a:hover {
    background-color: #f8f9fa;
    border-color: #0f0f0f;
    color: #000;
}

.nav-links .current {
    background-color: #212529;
    color: #fff;
    border-color: #212529;
    font-weight: bold;
}

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

.cat-links a, .tag-links a {
    color: #000000;
    font-weight: 600;
}

.internal-header {
    display: inline-block;
    border-left: 2px solid var(--main-color);
    padding-left: 1rem;
    font-weight: 300;
    margin-left: 1rem;
}

@media (min-width: 992px) {
    .internal-header {
        font-size: 4rem;
        margin: 3rem 1.5rem;
        line-height: 4.5rem;
    }
}

@media (min-width: 460px) and (max-width: 991.98px) {
    .internal-header {
        margin: 3rem 1.5rem;
        font-size: 3rem;
    }
}

.text-custom {
    color: var(--main-color)
}

.news-elem {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.news-elem p:first-of-type {
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.3;
}

.news-elem h2 {
    font-size: 3.4rem;
    font-weight: 300;
}

.news-elem h3 {
    font-size: 1.75rem;
    font-weight: 300;
}

.news-elem h4 {
    font-size: 1.5rem;
    font-weight: 300;
}

.news-elem h2::before,
.news-elem h3::before,
.news-elem h4::before {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    margin-right: 0.375rem;
    content: "";
    border: 0.275rem solid var(--main-color)
}

.news-elem .cite {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
    border-left: solid 2px var(--main-color);
    padding-left: 1.5rem;
}

.section-padding-top {
    padding-top: 70px;
}

.text-end a {
    text-decoration: none;
}

.front-title {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    font-size: 4rem;
    font-weight: 300;
    color: #696969;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .front-title {
        font-size: 3rem;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .front-title {
        font-size: 2rem;
        margin-top: 2rem;
    }
}

/* breadcrumbs */
.breadcrumb {
    margin-top: 0.75rem;
    color: #696969;
    letter-spacing: -0.05rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}
.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .breadcrumb {
        font-size: 0.8rem;
        font-weight: 400;
    }
}

.breadcrumb a {
    color: var(--main-color);
    text-decoration: none;
}

.breadcrumb .sep{
    color: #696969;
}

.category-meta {
    font-size: medium;
    color: #000000;
}

.search-form {
    display: flex;
    align-items: center;
}

form:not(#main-search) .search-field {
    width: 0;
    padding: 0;
    border: none;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

form:not(#main-search) .search-field.is-active {
    width: 200px;
    padding: 6px 12px;
    opacity: 1;
    border: 1px solid #808080;
    margin-right: 5px;
}

form#main-search .search-field {
    width: 200px;
}


.search-submit {
    box-sizing: border-box;
    padding: 0;
    font-weight: 900;
    background-color: #ededed;
    width: 38px;
    height: 38px;
    border: 1px solid #ededed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-submit::after {
    content: "";
    width: 30px;
    height: 30px;
    background-color: #808080;
    -webkit-mask-image: url(./assets/lupa.svg);
    mask-image: url(./assets/lupa.svg);
    -webkit-mask-size: cover;
    mask-size: cover;
    mask-repeat: no-repeat;
}

.search-submit:hover {
    background-color: #ededed;
}

.search-submit:hover::after {
    background-color: #808080;
    scale: 1.2;
}

form:not(#main-search) .search-submit {
    margin-left: -2px !important;
    margin-bottom: 2px !important;
    background-color: transparent;
    border: 1px solid transparent;
}

form:not(#main-search) .search-submit:after {
    background-color: var(--navbar-color-collapse);
}

.form-control:focus {
    box-shadow: inset 0 0 1px 1px gray;
}

.form-control:focus-visible {
    outline-color: var(--main-color) !important;
}

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

.btn-outline-custom {
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

.btn-outline-custom:hover,
.btn:first-child:active, .btn-outline-custom:active {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #ffffff;
}

.page-numbers.current {
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
}

.article-img {
    min-width: 250px;
    margin-left: 2rem;
}

@media (min-width: 460px) and (max-width: 767.98px) {
    .article-img {
        float: right;
        margin: 0 1rem;
    }
}
@media (max-width: 459.98px) {
    .article-img {
        margin-left: 0;
    }
}

.article-img img {
    margin-top: 1.5rem;
    margin-right: auto;
    padding-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .article-img img {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .article-description {
        width: 60%;
    }
}

@media (min-width: 992px) {
    #navbarContent .nav-overflow {
        min-height: 80vh;
        overflow-y: auto;
    }
}

.footbg .widget-footer-wrap div,
.footbg .widget-footer-wrap p {
    color: var(--footer-color);
    font-size: 1rem;
}

.footbg .widget-footer-wrap .widgettitle {
    display: none;
    visibility: hidden;
}

.footbg .widget-footer-wrap ul {
    list-style: none;
}

.footbg .widget-footer-wrap ul li {
    border-left: 1px solid #808080;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

.footbg .widget-footer-wrap ul li a,
.footbg .widget-footer-wrap ul li a.nav-link {
    color: var(--footer-color);
    text-decoration: none;
    font-size: 1rem;
}

.footbg .widget-footer-wrap img {
    width: 60px;
    height: auto;
    margin: 0 auto;
}

.footbg .widget-footer-wrap:not(:has(ul li)) a {
    color: var(--footer-color);
    text-decoration: none;
    border-left: 1px solid #808080;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

a.skip-to-content {
    left: -999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.navbar-lang-switcher {
    position: absolute;
    right: 80px;
    top: 13px;
}

.navbar-lang-switcher li a.active {
    background-color: transparent;
    font-weight: bolder;
}

.navbar-lang-switcher li a:hover{
    text-decoration: underline;
    background-color: #4a4a4a;
}

.navbar-lang-switcher:hover,
.navbar-lang-switcher .btn:first-child:active {
    background-color:transparent;
}

.dropdown-menu-dark.dropdown-menu-end {
    min-width: auto !important;
    width: 80px !important;
    text-align: center;
}

.size-custom-thumb {
    width: 340px !important;
    height: 250px !important;
    object-fit: cover !important;
}

.menu-item-has-children > .nav-link.custom-pure-span::after{
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.1em;
    content: "";
    border-top: 0.25em solid transparent;
    border-right: 0;
    border-bottom: 0.25em solid transparent;
    border-left: 0.25em solid;
}

.menu-item-has-children.is-open > .nav-link.custom-pure-span::after{
    transform: rotate(90deg);
}

.navbar-collapse.show li a:hover{
    text-decoration: underline;
}

.bg-black {
    background-color:var(--navbar-bg) !important;
}
