/* GUIDE (PRUVODCE)
-------------------------------------------------- */

/* Hub - intro */
.guide .guide-intro {
    padding: 0 0 40px;
    background-color: #fff;
    margin-top: 90px;
}
.guide .guide-intro .wrapper {
    max-width: 1360px;
    margin-inline: auto;
    padding: 0 20px;
}
.guide .guide-intro h1 {
    font-family: var(--font-family-suez);
    font-size: 30px;
    margin: 0 0 16px;
    background-image: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.guide .guide-intro p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
}

/* Hub - category cards grid */
.guide-categories {
    position: relative;
    padding: 50px 0 100px;
}
.guide-categories::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 100px;
    background-color: #fff4ef;
}
.guide-categories .wrapper {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin-inline: auto;
    padding: 0 20px;
}
.guide-categories .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.guide-categories .card {
    display: flex;
    flex-direction: column;
    height: 250px;
    background-color: #fff;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    box-shadow: 0 12px 23px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}
.guide-categories .card:hover {
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.15);
}
.guide-categories .card .icon {
    margin-bottom: 16px;
}
.guide-categories .card .icon img {
    width: 40px;
    height: 40px;
}
.guide-categories .card h3 {
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    margin: 0 0 8px;
    font-family: var(--font-family);
    color: #4B326B;
}
.guide-categories .card:hover h3 {
    color: var(--c-accent);
}
.guide-categories .card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #2B282F;
}

/* Remove gap between beige section and footer on guide pages */
main.guide ~ footer {
    margin-top: 0;
}

/* Category detail - intro */
.guide-category-intro {
    padding: 60px 0 0;
}
.guide-category-intro .wrapper-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}
.guide-category-intro .back {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: #ff4c4f;
    text-decoration: none;
    padding-top: 30px;
    margin-bottom: 10px;
}
.guide-category-intro .back:hover {
    text-decoration: underline;
}
.guide-category-intro .wrapper {
    max-width: 1125px;
    margin-inline: auto;
    padding: 0 20px;
    text-align: left;
}
.guide-category-intro h1 {
    font-family: var(--font-family-suez);
    font-size: 30px;
    margin: 20px 0 16px;
    background-image: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.guide-category-intro p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
}

/* Category detail - article list */
.guide-article-list {
    position: relative;
    padding: 80px 0 60px;
}
.guide-article-list::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 120px;
    background-color: #fff4ef;
}
.guide-article-list .wrapper {
    position: relative;
    z-index: 1;
    max-width: 1125px;
    margin-inline: auto;
    padding: 0 20px;
}
.guide-article-list .list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(49, 31, 72, 0.07);
    overflow: hidden;
}
.guide-article-list .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    text-decoration: none;
    color: var(--c-text);
    border-bottom: 1px solid #f0e8e4;
    transition: background-color 0.15s ease;
}
.guide-article-list .item:last-child {
    border-bottom: none;
}
.guide-article-list .item:hover {
    background-color: #fdf8f6;
}
.guide-article-list .item .title {
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    color: var(--c-text);
}
.guide-article-list .item:hover .title {
    color: var(--c-accent);
}
.guide-article-list .item .arrow img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Category detail - other guides */
.guide-other-categories {
    padding: 50px 0 80px;
    background-color: #fff;
}
.guide-other-categories .wrapper {
    max-width: 1125px;
    margin-inline: auto;
    padding: 0 20px;
}
.guide-other-categories h2 {
    font-family: var(--font-family-suez);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 24px;
    color: #4B326B;
}
.guide-other-categories .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.guide-other-categories .card {
    display: flex;
    flex-direction: column;
    height: 210px;
    background-color: #fff;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    box-shadow: 0 12px 23px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}
.guide-other-categories .card:hover {
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.15);
}
.guide-other-categories .card .icon {
    margin-bottom: 12px;
}
.guide-other-categories .card .icon img {
    width: 36px;
    height: 36px;
}
.guide-other-categories .card h3 {
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    margin: 0 0 6px;
    color: #4B326B;
}
.guide-other-categories .card:hover h3 {
    color: var(--c-accent);
}
.guide-other-categories .card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #2B282F;
}

/* Article detail - perex */
.guide-perex {
    padding: 0 0 30px;
}
.guide-perex .wrapper {
    max-width: 860px;
    margin-inline: auto;
    padding: 0 20px;
}
.guide-perex .perex {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--c-text);
    margin: 0;
}

/* Article detail - related articles */
.guide-related {
    padding: 50px 0 80px;
    border-top: 1px solid var(--bg-color-beige);
    margin-top: 40px;
}
.guide-related .wrapper {
    max-width: 860px;
    margin-inline: auto;
    padding: 0 20px;
}
.guide-related h2 {
    font-family: var(--font-family-suez);
    font-size: 28px;
    margin: 0 0 20px;
    color: var(--c-text);
}
.guide-related .list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.guide-related .item {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--c-accent);
    text-decoration: none;
    line-height: 1.4;
}
.guide-related .item:hover {
    text-decoration: underline;
}

/* GLOSSARY (SLOVNIK)
-------------------------------------------------- */

/* Glossary - intro */
.glossary .glossary-intro {
    padding: 0 0 40px;
    background-color: #fff;
    margin-top: 90px;
}
.glossary .glossary-intro .wrapper {
    max-width: 1125px;
    margin-inline: auto;
    padding: 0 20px;
}
.glossary .glossary-intro h1 {
    font-family: var(--font-family-suez);
    font-size: 30px;
    margin: 0 0 16px;
    background-image: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glossary .glossary-intro p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
}

/* Glossary - letter navigation */
.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 28px;
}
.glossary-nav .letter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: solid 1px #f0d8ce;
    border-radius: 0;
    margin: 0 -1px -1px 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: #ff5251;
    background: #fff;
    transition: color 0.3s, border-color 0.3s;
}
.glossary-nav .letter-link:hover {
    color: #db2120;
    border-color: #ff5251;
    border-left-width: 1px;
    z-index: 1;
}
.glossary-nav .letter-link.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* Glossary - listing */
.glossary-listing {
    padding: 50px 0 80px;
    background-color: #fff4ef;
}
.glossary-listing .wrapper {
    max-width: 1125px;
    margin-inline: auto;
    padding: 0 20px;
}
.glossary-listing .letter-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 40px;
}
.glossary-listing .letter-group h2 {
    font-family: var(--font-family-suez);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0d8ce;
    color: #4B326B;
}
.glossary-listing .letter-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.glossary-listing .letter-group li {
    padding: 3px 0;
}
.glossary-listing .letter-group a {
    font-size: 15px;
    color: var(--c-accent);
    text-decoration: none;
}
.glossary-listing .letter-group a:hover {
    text-decoration: underline;
}

/* Glossary - remove footer gap */
main.glossary ~ footer {
    margin-top: 0;
}

/* Responsive */
@media (min-width: 600px) {
    .guide-categories .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-other-categories .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .glossary-listing .letter-groups {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 922px) {
    .guide .guide-intro,
    .guide-category-intro,
    .glossary .glossary-intro {
        padding-top: 132px;
    }
    .guide .guide-intro h1 {
        font-size: 62px;
    }
    .guide .guide-intro p {
        font-size: 18px;
    }
    .guide-category-intro h1 {
        font-size: 42px;
    }
    .guide-category-intro p {
        font-size: 18px;
    }
    .guide-other-categories .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .guide-perex .perex {
        font-size: 19px;
    }
    .glossary .glossary-intro h1 {
        font-size: 42px;
    }
    .glossary .glossary-intro p {
        font-size: 18px;
    }
    .glossary-nav .letter-link {
        flex: 1 1 0;
        width: auto;
        margin: 0 0 0 -1px;
    }
    .glossary-nav .letter-link:first-child {
        margin-left: 0;
        border-radius: 2px 0 0 2px;
    }
    .glossary-nav .letter-link:last-child {
        border-radius: 0 2px 2px 0;
    }
    .glossary-listing .letter-groups {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1200px) {
    .guide-categories .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1400px) {
    .guide-categories .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
