/* POTREBY RYBARSKE – MAGAZIN */

.magazine-page {
    padding-top: 24px;
    padding-bottom: 50px;
}

/* HERO */

.mag-hero {
    background: linear-gradient(135deg,#123d2c,#236b46);
    color: #fff;
    border-radius: 18px;
    padding: 48px;
    margin-bottom: 36px;
    overflow: hidden;
}

.mag-hero-label {
    display: inline-block;
    background: #ffffff20;
    border: 1px solid #ffffff40;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mag-hero h1 {
    font-size: clamp(32px,4vw,48px);
    line-height: 1.15;
    margin: 20px 0 14px;
    color: #fff;
}

.mag-hero p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 680px;
    color: #e4f2e9;
}

/* SECTION HEADINGS */

.mag-section {
    margin: 38px 0;
}

.mag-section-title {
    font-size: 26px;
    color: #173d2c;
    margin: 0 0 20px;
}

/* TOPIC CARDS */

.mag-topics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.mag-topic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 18px;
    background: #f5f9f6;
    border: 1px solid #dce9df;
    border-radius: 14px;
    color: #173d2c;
    text-decoration: none;
    transition: transform .2s,box-shadow .2s;
}

.mag-topic:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #123d2c15;
    text-decoration: none;
}

.mag-topic-icon {
    font-size: 30px;
}

.mag-topic strong {
    font-size: 17px;
}

.mag-topic span:last-child {
    font-size: 13px;
    line-height: 1.5;
    color: #53675b;
}

/* ARTICLE GRID */

.mag-articles {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

.mag-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e1e8e3;
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow .2s,transform .2s;
}

.mag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px #123d2c14;
}

.mag-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f4f1;
}

.mag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.mag-card:hover .mag-card-image img {
    transform: scale(1.04);
}

.mag-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mag-card h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.mag-card h2 a {
    color: #173d2c;
    text-decoration: none;
}

.mag-card h2 a:hover {
    color: #207448;
}

.mag-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #647067;
    margin: 0 0 18px;
}

.mag-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mag-card-footer small {
    color: #78867c;
    font-size: 12px;
}

.mag-read-more {
    font-size: 13px;
    font-weight: 800;
    color: #207448;
}

/* MOBILE */

@media(max-width:900px) {
    .mag-topics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .mag-articles {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px) {
    .magazine-page {
        padding-top: 14px;
    }

    .mag-hero {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .mag-hero p {
        font-size: 15px;
    }

    .mag-topics {
        gap: 10px;
    }

    .mag-topic {
        padding: 18px 12px;
    }

    .mag-topic strong {
        font-size: 15px;
    }

    .mag-articles {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mag-section-title {
        font-size: 23px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .mag-topic,
    .mag-card,
    .mag-card-image img {
        transition: none;
    }

    .mag-topic:hover,
    .mag-card:hover {
        transform: none;
    }
}
