/* Hero section */
.hero {
    padding: 60px 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    text-align: center;
    border-radius: 10px;
}

.hero h1 {
    font-size: 1.8rem;
    color: #d9d9d9;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 1px;
}

.hero .search-form input[type="text"] {
    padding: 10px;
    width: 60%;
    max-width: 300px;
    outline: none;
    border-radius: 5px;
    color: #eee;
    background-color: #2c2c2c;
    border: 2px solid transparent;
}

.hero .search-form input[type="text"]:focus {
    border: 2px solid #ff8f00;
}


.hero .search-form button {
    background-color: #db7b00;
    border-radius: 5px;
    color: #eee;
    height: 39px;
    padding: 10px 15px;
    cursor: pointer;
    transition: .2s;
    border: none;
    outline: none;
}

.hero .search-form button:hover {
    background-color: #ff8f00;
}

/* categories-home */
.categories-home{
    margin-bottom: 30px;
}

.categories-home h2{
    text-align: center;
}

.categories-buttons {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* desktop */
    gap: 10px;
    margin-top: 15px;
}

.categories-buttons a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding: 8px 14px;
    background: #111;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
}

.categories-buttons a img{
    width: 40px;
    height: 40px;
}

.categories-buttons a:hover {
    background: #6c5ce7;
    transform: translateY(-2px);
}


/* seo-text */
.seo-text h2{
    text-align: center;
    font-size: 1rem;
    margin-bottom: 5px;
}

.seo-text p{
    text-align: center;
    font-size: 0.7rem;
    margin-top: 5px;
    margin-bottom: 20px;
}


/* Sekcja „Dlaczego Sex-Słownik?” */
.why-usAboutWrap {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.why-us {
    flex-basis: 34%;
    background: #111;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #111 0%, #000 100%);
}

.why-us h2 {
    font-size: 1.5rem;
}

.about {
    flex-basis: 64%;
    background: #111;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #111 0%, #000 100%);
}

section ul {
    list-style: none;
    padding-left: 0;
}

section ul li {
    font-size: 1rem;
}


/* Najnowsze artykuły*/
.popular-articles {
    margin-top: 50px;
}

.pupular1{
    background-image: 
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
        url(../images/top_20_fetyszy.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 0.2s;
}

.pupular1:hover {
    background-image: 
        linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
        url(../images/top_20_fetyszy.png);
}


.popular-articles h2 {
    font-size: 1.5rem;
    color: #eee;
    margin-bottom: 25px;
    text-align: center;
}

.popular-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.popular-articles .article-item {
    background-color: #0a0e0e;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.popular-articles .article-item:hover {
    transform: translateY(-5px);
}

.popular-articles .article-item h3 {
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #0000005e;
    border-radius: 10px;
    font-size: 1rem;
    padding: 5px;
    letter-spacing: 1px;
}

.popular-articles .article-item p {
    font-size: 0.8rem;
    color: #ffffff;
    background-color: #0a2023bd;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
}

.popular-articles .article-item span {
    margin-top: 10px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Najnowsze hasła*/
.latest-articles {
    margin-top: 50px;
}

.latest-articles h2 {
    font-size: 1.5rem;
    color: #eee;
    margin-bottom: 25px;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.article-item {
    background-color: #0a0e0e;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-item h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.article-item p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #eee;
    cursor: default;
}

.article-item .read-more {
    margin-top: 10px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: bold;
    text-decoration: none;
}

.article-item .read-more:hover {
    text-decoration: underline;
}

/* Popularne hasła */
.popular-terms {
    margin: 50px 0;
    text-align: center;
}

.popular-terms h2 {
    color: #ccc;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.popular-terms ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.popular-terms ul li {
    background: #2c2c2c;
    padding: 10px;
    border-radius: 10px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.popular-terms ul li a {
    border-radius: 5px;
    text-decoration: none;
    color: #ccc;
    font-weight: bold;
    transition: background 0.3s;
}

.popular-terms ul li a:hover {
    color: #fff;
}

/* Infografiki mini */
.educational-graphics-links {
    padding: 40px 0;
}

.educational-graphics-links h2 {
    text-align: center
}

.graphics-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.graphics-links-grid a {
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.graphics-links-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.graphics-links-grid a:hover {
    transform: translateY(-3px);
}

.graphics-links-grid a:hover img {
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Infografiki edukacyjne */
.educational-graphics {
    margin: 50px 0;
    text-align: center;
}

.educational-graphics h2 {
    color: #ccc;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.graphics-grid figure {
    margin: 0;
    background: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
}

.graphics-grid figure img {
    max-width: 100%;
    border-radius: 10px;
}


.graphics-grid figcaption {
    font-size: 0.9rem;
    color: #ccc;
}

/* did-you-know */
.did-you-know h2{
    text-align: center;
}

.facts {
    font-size: 14px;
}

.facts p{
    margin: 0;
    margin-top: 5px;
    padding: 10px;
    background-color: #111
}

.facts p:nth-child(2n){
    background-color: #222
}


/* responsiven */

@media (max-width: 1024px) {
    .graphics-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 1000px) {
    .categories-buttons {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 935px) {
    .why-us {
        flex-basis: 44%;
    }

    .about {
        flex-basis: 54%;
    }
}

@media (max-width: 835px) {
    .why-us {
        flex-basis: 49%;
    }

    .about {
        flex-basis: 49%;
    }
}

@media (max-width: 768px) {
    .articles-grid,
    .graphics-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {
    .categories-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .graphics-links-grid {
        grid-template-columns: 1fr;
    }
    
    .why-usAboutWrap {
        flex-direction: column;
    }
}


