/*
Theme Name: Wissa Szczuczyn Theme
Author: Łukasz
Version: 3.0
*/

/* =====================================
   RESET
===================================== */

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

/* =====================================
   BODY
===================================== */

html,
body{
    min-height:100%;
}

body{
    background:#efefef;
    font-family:sans-serif;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
    color:#111;
}

/* =====================================
   HEADER
===================================== */

header{
    background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("assets/img/background-stadion.jpg");

    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    min-height:400px;

    padding:20px;
}

.img-logo{
    max-width:150px;
    transition:0.3s;
    margin-top:60px;
}

.img-logo:hover{
    transform:scale(1.08);
}

header .Nazwa h1{
    color:white;
    text-transform:uppercase;
    -webkit-text-stroke:1px black;
    font-size:48px;
    margin-top:10px;
}

header .Nazwa h2{
    color:white;
    text-transform:uppercase;
    -webkit-text-stroke:1px black;
    margin-top:10px;
    font-size:22px;
}

/* =====================================
   MOBILE BUTTON
===================================== */

.mobile-menu-btn{
    display:none;
    width:100%;
    background:#b92e04;
    color:white;
    border:none;
    padding:16px;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
}

/* =====================================
   NAVIGATION
===================================== */

.main-nav{
    width:100%;
    background:#023805;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    z-index:999;
}

.menu{
    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

.menu li{
    position:relative;
}

.nav-item{
    color:white;
    text-decoration:none;
    padding:18px 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    text-transform:uppercase;
    font-weight:bold;
    position:relative;
    overflow:hidden;
    transition:0.3s;
}

.nav-item::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:0;
    height:4px;
    background:red;
    transition:0.3s;
}

.nav-item:hover::after{
    width:100%;
}

.nav-item:hover{
    background:#177704;
}

.home-link{
    background:#b92e04;
    color:white;
    text-decoration:none;
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.3s;
}

.home-link:hover{
    background:#177704;
}

/* =====================================
   SUBMENU
===================================== */

.submenu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    list-style:none;
    background:#023805;
    box-shadow:0 8px 15px rgba(0,0,0,0.2);
    z-index:9999;
}

.submenu li a{
    display:block;
    color:white;
    text-decoration:none;
    padding:15px 18px;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
    border-bottom:1px solid rgba(255,255,255,0.08);
    transition:0.3s;
}

.submenu li a:hover{
    background:#177704;
    padding-left:25px;
}

@media(min-width:769px){

    .dropdown:hover > .submenu{
        display:block;
    }

}

/* =====================================
   SEARCH
===================================== */

.search-item{
    margin-left:25px;
    display:flex;
    align-items:center;
}

.search-form{
    display:flex;
    align-items:center;
    background:rgba(255,255,255,0.1);
    border:1px solid #07a80f;
    border-radius:20px;
    padding:4px 12px;
}

.search-field{
    background:transparent;
    border:none;
    outline:none;
    color:white;
    width:110px;
}

.search-submit{
    background:none;
    border:none;
    color:white;
    cursor:pointer;
}

/* =====================================
   MAIN CONTENT
===================================== */

.kontener-glowny{
    display:flex;
    max-width:1200px;
    width:100%;
    margin:20px auto;
    gap:20px;
    padding:20px;
    align-items:flex-start;
    flex:1;
}

/* =====================================
   POSTS
===================================== */

.news-list{
    display:flex;
    flex-direction:column;
    gap:30px;
    flex:3;
}

.post-item{
    display:flex;
    background:white;
    border-top:5px solid #177704;
    border-radius:10px;
    box-shadow:0 4px 8px rgba(0,0,0,0.1);
    overflow:hidden;
    transition:0.3s;
}

.post-item:hover{
    transform:translateY(-3px);
}

.news-image{
    flex-shrink:0;
}

.news-image img{
    width:220px;
    height:100%;
    object-fit:cover;
    display:block;
}

.news-content{
    padding:20px;
    width:100%;
}

.news-content h2{
    margin-bottom:12px;
    line-height:1.3;
}

/* =====================================
   BUTTON
===================================== */

.article{
    display:inline-block;
    margin-top:15px;
    background:#d8d8d8;
    color:darkgreen;
    text-decoration:none;
    border-radius:40px;
    padding:8px 20px;
    transition:0.3s;
}

.article:hover{
    background:#023805;
    color:white;
}

/* =====================================
   SIDEBAR
===================================== */

.sidebar{
    flex:1;
    background:#f9f9f9;
    padding:20px;
    border-top:5px solid #d10a0a;
    border-radius:8px;
    box-shadow:0 4px 8px rgba(0,0,0,0.1);
}

/* =====================================
   SINGLE POST
===================================== */

.single-post-card{
    width:100%;
    background:#fff;
    border-top:5px solid #177704;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    padding:25px;
}

.single-top{
    display:block;
}

.single-thumbnail{
    width:100%;
    margin-bottom:25px;
}

.single-thumbnail img{
    width:100%;
    max-height:550px;
    object-fit:contain;
    border-radius:12px;
    display:block;
    background:#f3f3f3;
}

.single-info{
    width:100%;
}

.single-title{
    font-size:48px;
    margin-bottom:15px;
    line-height:1.2;
}

.single-text{
    font-size:20px;
    line-height:1.9;
    color:#222;
}

/* =====================================
   WP GALLERY
===================================== */

.single-text .wp-block-image{
    display:inline-block;
    margin:10px;
    vertical-align:top;
}

.single-text .wp-block-image img{
    border-radius:10px;
    max-width:100%;
    height:auto;
}

.single-text .wp-block-gallery{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
    margin:30px 0;
}

/* =====================================
   KADRA
===================================== */

.strona-kadry{
    max-width:1400px;
    margin:0 auto;
    padding:30px 15px;
    flex:1;
}

.kadraaa{
    text-align:center;
    font-size:48px;
    margin-bottom:50px;
    text-transform:uppercase;
}

.naglowek-formacji{
    text-align:center;
    font-size:32px;
    margin:60px 0 30px;
    text-transform:uppercase;
    border-bottom:2px solid #dcdcdc;
    padding-bottom:10px;
}

.kadra-grupa{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:25px;
    max-width:1100px;
    margin:0 auto 60px auto;
}

.Bramkarze{
    width:220px;
    min-height:280px;
    background:#ffffff;
    border-radius:14px;
    padding:20px;
    text-align:center;
    border-top:5px solid #177704;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    transition:0.3s;
}

.Bramkarze:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 20px rgba(0,0,0,0.18);
}

.Bramkarze img{
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:15px;
}

.bramka{
    font-size:20px;
    font-weight:bold;
    line-height:1.3;
    text-transform:uppercase;
}

/* =====================================
   ZARZĄD
===================================== */

.zarzad-container{
    max-width:1200px;
    margin:50px auto;
    padding:20px;
    flex:1;
}

.zarzad-title{
    text-align:center;
    font-size:42px;
    margin-bottom:50px;
    text-transform:uppercase;
}

.sekcja-title{
    text-align:center;
    font-size:28px;
    margin:40px 0 30px;
    text-transform:uppercase;
    border-bottom:2px solid #d8d8d8;
    padding-bottom:10px;
}

.zarzad-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:25px;
    margin-bottom:50px;
}

.zarzad-card{
    width:260px;
    background:#ffffff;
    border-top:5px solid #177704;
    border-radius:12px;
    padding:25px 20px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    transition:0.3s;
}

.zarzad-card:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 18px rgba(0,0,0,0.15);
}

.zarzad-name{
    font-size:22px;
    font-weight:bold;
    margin-bottom:12px;
    text-transform:uppercase;
    line-height:1.4;
}

.zarzad-role{
    font-size:17px;
    color:red;
    font-weight:bold;
    line-height:1.5;
}

/* =====================================
   FOOTER
===================================== */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:30px 15px;
    margin-top:60px;
    border-top:4px solid #b92e04;
    width:100%;
}

footer p{
    margin:0;
    font-size:16px;
    line-height:1.6;
}

/* =====================================
   MOBILE
===================================== */

@media(max-width:992px){

    .kontener-glowny{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .post-item{
        flex-direction:column;
    }

    .news-image img{
        width:100%;
        height:auto;
        max-height:350px;
    }

}

@media(max-width:768px){

    header{
        min-height:220px;
    }

    .img-logo{
        max-width:110px;
        margin-top:20px;
    }

    header .Nazwa h1{
        font-size:30px;
    }

    header .Nazwa h2{
        font-size:16px;
    }

    .mobile-menu-btn{
        display:block;
    }

    .main-nav{
        display:none;
        flex-direction:column;
    }

    .main-nav.active{
        display:flex;
    }

    .menu{
        flex-direction:column;
        width:100%;
    }

    .menu li{
        width:100%;
    }

    .nav-item,
    .home-link{
        width:100%;
        font-size:16px;
        padding:18px;
    }

    .submenu{
        position:static;
        width:100%;
        box-shadow:none;
        background:#025d08;
    }

    .dropdown.active .submenu{
        display:block;
    }

    .submenu li a{
        text-align:center;
    }

    .search-item{
        width:100%;
        margin:15px 0;
        justify-content:center;
    }

    .search-form{
        width:90%;
    }

    .search-field{
        width:100%;
    }

    .kontener-glowny{
        padding:10px;
    }

    .news-content{
        text-align:center;
    }

    .news-content h2{
        font-size:24px;
    }

    .single-post-card{
        padding:15px;
    }

    .single-title{
        font-size:28px;
    }

    .single-text{
        font-size:16px;
    }

    .single-thumbnail img{
        max-height:320px;
    }

    .kadraaa{
        font-size:34px;
    }

    .naglowek-formacji{
        font-size:26px;
    }

    .Bramkarze{
        width:100%;
        max-width:320px;
        min-height:auto;
    }

    .Bramkarze img{
        width:200px;
        height:200px;
    }

    .bramka{
        font-size:22px;
    }

    .zarzad-title{
        font-size:30px;
    }

    .sekcja-title{
        font-size:22px;
    }

    .zarzad-card{
        width:100%;
        max-width:320px;
    }

}
/* =====================================
   SPONSORZY
===================================== */

.sponsorzy-container{

    max-width:1400px;

    margin:60px auto;

    padding:20px;
}

.sponsorzy-title{

    text-align:center;

    font-size:42px;

    text-transform:uppercase;

    margin-bottom:50px;
}

/* GRID */

.sponsorzy-grid{

    display:grid !important;

    grid-template-columns:repeat(4, 1fr) !important;

    gap:25px;

    width:100%;
}

/* KARTA */

.sponsor-card{

    background:#fff;

    border-top:5px solid #177704;

    border-radius:14px;

    padding:25px;

    min-height:180px;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 4px 12px rgba(0,0,0,0.1);

    transition:0.3s;
}

.sponsor-card:hover{

    transform:translateY(-5px);

    border-top:5px solid #b92e04;
}

/* LOGO */

.sponsor-card img{

    max-width:100%;

    max-height:120px;

    width:auto;

    height:auto;

    object-fit:contain;
}

/* TABLET */

@media(max-width:1000px){

    .sponsorzy-grid{

        grid-template-columns:repeat(2, 1fr) !important;
    }

}

/* MOBILE */

@media(max-width:600px){

    .sponsorzy-grid{

        grid-template-columns:1fr !important;
    }

}

/* =========================
   SOCIAL MEDIA HEADER
========================= */

header{
    position:relative;
}

.header-socials{

    position:absolute;

    top:25px;

    right:30px;

    display:flex;

    gap:15px;

    z-index:50;
}

.social-icon{

    width:46px;

    height:46px;

    background:rgba(255,255,255,0.12);

    backdrop-filter:blur(6px);

    border:1px solid rgba(255,255,255,0.2);

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:0.3s;
}

.social-icon:hover{

    transform:translateY(-4px) scale(1.08);

    background:rgba(255,255,255,0.2);
}

.social-icon img{

    width:24px;

    height:24px;

    object-fit:contain;
}

/* MOBILE SOCIAL FIX */

@media(max-width:768px){

    header{

        min-height:320px;

        padding-top:80px;

    }

    .header-socials{

        position:absolute;

        top:15px;

        left:50%;

        transform:translateX(-50%);

        right:auto;

        gap:10px;

        width:100%;

        justify-content:center;
    }

    .social-icon{

        width:42px;

        height:42px;
    }

    .social-icon img{

        width:20px;

        height:20px;
    }

    .img-logo{

        margin-top:10px;
    }

}