* {
    font-family: 'Open Sans', sans-serif;
    user-select: none;
    scroll-behavior: smooth;
}
body {
    background-color: #f2f2f2;
}
hr {
    height: 2px;
    border: none;
    background-color: #d9d9d9;
    width: 85%;
}
#menu {
    display: flex;
    width: 100%;
    position: sticky;
    top: 0;
    flex-wrap: wrap;
}
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
    opacity: 60%;
}
.burger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 0;
    right: 0;
}
.bar {
    width: 25px;
    height: 3px;
    background-color: #f2f2f2;
    margin: 6px 0;
}
.menuElement {
    border: 3px solid;
    border-image: linear-gradient(to right, #4ba142, #ac231d, #27499d);
    border-image-slice: 1;
    box-sizing: border-box;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    background-color: #000;
    color: #f2f2f2;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.menuElement > a {
    color: #f2f2f2;
    text-decoration: none;
}

.menuElement:hover {
    background-color: #686774;
}
@media only screen and (max-width: 800px) {
    .burger-icon {
        display: flex;
        background-color: #00010D;
    }
    .bar {
        background-color: #f2f2f2;
    }
    .menuElement {
        flex: none;
        width: 100%;
        display: none;
        background-color: #000;
        color: #f2f2f2;
        border: 2px solid;
        border-image: linear-gradient(to right, #4ba142, #ac231d, #27499d);
        border-image-slice: 1;
        font-weight: 600;
    }
    .menuElement.active {
        display: block;
    }
}
#top {
    display: flex;
    flex-direction: row;
}
#leftIMG, #rightIMG, #centerIMG {
    background-image: url('../header-logo/pasLubelski.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#centerIMG {
    background-image: url('../header-logo/pasLubelskiInvert.png');
    width: auto
}
#leftIMG, #rightIMG {
    flex: 1;
    /* height: auto; */
} 
#centerIMG img {
    height: 400px;
    width: 400px;
    display: block;
    margin: 0 auto;
} 
#abtGroup { 
    text-align: center; 
}
#photoGallery {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #212121;
}
#photoGallery img {
    width: auto;
    margin: 0 auto;
    display: block;
    height: 500px;
}
#left, #right { flex: 1; }
#left img {
    height: 50px;
    width: 50px;
}
#right, #left {
    display: flex;
    align-items: center;
}
#right img {
    height: 50px;
    width: 50px;
}
#links {
    position: sticky;
    bottom: 5px;
    display: flex;
    justify-content: space-between;
    width: 100px;
}
.link {
    border-radius: 25px;
    height: 50px;
    width: 50px;
    border: 1px solid black;
    cursor: pointer;
}

#yt { background-image: url('../footer/yt_panel.jpg'); }
#fb { background-image: url('../footer/fb_panel.jpg'); }
#eng { background-image: url('../footer/eng_panel.jpg'); }
#yt, #eng, #fb {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#herbLpu {
    height: 5%;
    width: 5%;
}
.descAndImage {
    display: flex;
    margin-bottom: 8px;
}
.descAndImage img{
    display: block;
    width: 50%;
    height: auto;
    margin: 0 auto;
}
.ddesc{
    flex: 1;
}
.dname{
    flex: 2;
}
#main {
    text-align: center;
}
#sendEmail {
    border: 0;
    background-color: black;
    color: #f2f2f2;
    width: 25%;
    height: 15%;
}
#sendEmail:hover {
    background-color: #f4511e;
}
footer {
    text-align: center;
    font-size: 16px;
}
#imgContainer {
    display: flex;
    flex-direction: row;
    background-color: white;
}
#imgContainer img{
    display: block;
    margin: 0 auto;
}
.dname {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pdf {
    width: 90%;
    height: 800px;
}
.article {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.articleText {
    font-size: 16px;
}
.newsDate {
    text-align: left;
}
.insertDate {
    text-align: right;
}
.nImgContainer, .filesContainer, .pdfContainer {
    max-width: 100%;
    height: auto; 
    text-align: center; 
}
.nImgContainer img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
.content {
    font-size: 24px;
}
.sectionInfo {
    font-size: 20px;
    font-weight: bold;
}
@media (min-width: 1700px) {
    #centerIMG img {
        height: 500px;
        width: 500px;
    }
}
@media (max-width: 1300px) {
    #centerIMG img {
        height: 300px;
        width: 300px;
    }
}
@media (max-width: 1000px) {
    #centerIMG img {
        height: 250px;
        width: 250px;
    }
}
@media (max-width: 900px) {
    #photoGallery img {
        margin: 0 auto;
        display: block;
        width: auto;
        height: 325px;
    }
    #left img {
        height: 50px;
        width: 50px;
    }
    #right img {
        height: 50px;
        width: 50px;
    }
    .descAndImage {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 750px) {
    #imgContainer {
        flex-direction: column;
    }
}
@media (max-width: 650px) {
    #centerIMG img {
        height: 200px;
        width: 200px;
    }
}
@media (max-width: 600px) {
    * {font-size: 0.95em;}
    #left img {
        height: 30px;
        width: 30px;
    }
    #right img {
        height: 30px;
        width: 30px;
    }
    .descAndImage {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .descAndImage img{
        display: block;
        width: 50%;
        height: auto;
        margin: 0 auto;
    }
    footer{
        text-align: center;
    }
    .pdf {
        height: 550px;
    }
    .content {
        font-size: 15px;
    }

}
@media (max-width: 550px) {
    #photoGallery img {
        margin: 0 auto;
        display: block;
        width: auto;
        height: 150px;
    }
    #left img {
        height: 20px;
        width: 20px;
    }
    #right img {
        height: 20px;
        width: 20px;
    }
}
@media (max-width: 520px) {
    .link {
        width: 45px;
        height: 45px;
    }
}
@media (max-width: 500px) {
    #centerIMG img {
        height: 150px;
        width: 150px;
    }
    footer {
        font-size: 12px;
    }
}
@media (max-width: 350px) {
    #photoGallery img {
        margin: 0 auto;
        display: block;
        width: auto;
        height: 100px;
    }
    #left img {
        height: 15px;
        width: 15px;
    }
    #right img {
        height: 15px;
        width: 15px;
    }
    #centerIMG img {
        height: 100px;
        width: 100px;
    }
}
@media (max-width: 300px) {
    * {font-size: 0.85em;}
    #photoGallery img {
        margin: 0 auto;
        display: block;
        width: auto;
        height: 100px;
    }
    #left img {
        height: 15px;
        width: 15px;
    }
    #right img {
        height: 15px;
        width: 15px;
    }
}
.copyable {
    user-select: text;
}

/* ============================================ */
/*              Blog Listing Styles             */
/* ============================================ */

#blog-listing {
    background-color: #f2f2f2;
    padding: 40px 0;
}

.cs-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog article wrapper */
.cs-article {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 40px;
    border: 3px solid;
    border-image: linear-gradient(to right, #4ba142, #ac231d, #27499d);
    border-image-slice: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-article:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Article image */
.cs-article-image {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: calc(8 / 16 * 1rem) calc(8 / 16 * 1rem) 0 0;
}

.cs-article-image img {
    display: block;
    width: 100%;
    height: clamp(12.5rem, 30vw, 25rem);
    object-fit: contain;
}

#single-article .cs-article-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Text content inside article */
.cs-article-group {
    padding: 20px 30px;
}

/* Author and date group */
.cs-author-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.cs-author-img img {
    border-radius: 50%;
    background-color: #212121;
    padding: 3px;
}

.cs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #888;
    display: inline-block;
}

.cs-article-title {
    font-size: 24px;
    color: #000;
    margin: 10px 0;
    font-weight: 700;
}

.cs-article-desc {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Continue reading button */
.cs-button-solid {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: #f2f2f2;
    text-decoration: none;
    border: 2px solid;
    border-image: linear-gradient(to right, #4ba142, #ac231d, #27499d);
    border-image-slice: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.cs-button-solid:hover {
    background-color: #686774;
    color: #fff;
}

/* Title when no posts exist */
.cs-title {
    text-align: center;
    color: #000;
    font-size: 28px;
    margin: 50px 0;
}

/* Featured posts inclusion */
#blog-listing .featured-posts {
    margin-top: 60px;
}

/* ======================= */
/* Responsive Adjustments  */
/* ======================= */
@media (max-width: 900px) {
    .cs-container {
        width: 90%;
    }

    .cs-article-group {
        padding: 15px;
    }

    .cs-article-title {
        font-size: 20px;
    }

    .cs-article-desc {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .cs-article {
        margin-bottom: 25px;
    }

    .cs-article-title {
        font-size: 18px;
    }

    .cs-author-group {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .cs-button-solid {
        padding: 8px 15px;
        font-size: 14px;
    }
}
