/* GALERIJA VPRAŠANJ IN ODGOVOROV */

.gallery-page {
    margin: 0;
    background: #f5f7f5;
    color: #17231e;
}

.gallery-header {
    background: #ffffff;
    border-bottom: 1px solid #e4ebe6;
    padding: 22px 24px;
}

.gallery-header-inner {
    max-width: 1180px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gallery-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #07543c;
}

.gallery-brand strong {
    font-size: 23px;
}

.gallery-brand span {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #718077;
}

.gallery-back {
    color: #07543c;
    font-weight: 700;
    text-decoration: none;
}

.gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.gallery-hero {
    padding: 85px 0 70px;
    text-align: center;
    background: #ffffff;
}

.gallery-eyebrow {
    color: #07543c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.gallery-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.15;
    margin: 22px 0;
}

.gallery-hero h1 span {
    color: #07543c;
}

.gallery-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #6b7970;
    line-height: 1.8;
}

.gallery-section {
    padding: 55px 0 85px;
}

.gallery-toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.gallery-search,
.gallery-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-toolbar label {
    font-weight: 700;
    font-size: 14px;
}

.gallery-toolbar input,
.gallery-toolbar select {
    width: 100%;
    padding: 16px;
    border: 1px solid #dbe5dd;
    border-radius: 12px;
    background: white;
    color: #17231e;
    font: inherit;
    box-sizing: border-box;
}

.gallery-toolbar input:focus,
.gallery-toolbar select:focus {
    outline: 2px solid #07543c;
    outline-offset: 2px;
}

.gallery-count {
    color: #718077;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.gallery-grid .flip-card {
    min-width: 0;
    min-height: 230px;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 20px;
    background: #ffffff;
    border-radius: 16px;
    color: #718077;
}

.gallery-more {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.gallery-more button {
    padding: 16px 32px;
    border: 1px solid #07543c;
    border-radius: 10px;
    background: #ffffff;
    color: #07543c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.gallery-more button:hover {
    background: #07543c;
    color: #ffffff;
}

.gallery-more button[hidden] {
    display: none;
}

.gallery-bottom {
    margin-top: 95px;
    padding: 50px 25px;
    text-align: center;
    background: #e8f1eb;
    border-radius: 22px;
}

.gallery-bottom h2 {
    margin: 0 0 12px;
}

.gallery-bottom p {
    color: #607368;
    margin-bottom: 30px;
}

.gallery-ask {
    display: inline-block;
    padding: 16px 28px;
    background: #07543c;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.gallery-footer {
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #ffffff;
    color: #607368;
}

.gallery-footer a {
    color: #07543c;
}

/* PRILAGODITEV ZASLONOM */

@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-toolbar {
        grid-template-columns: 1fr;
    }

    .gallery-hero {
        padding: 55px 0;
    }

    .gallery-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid .flip-card {
        min-height: 180px;
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================================
   IZBOLJŠANE KARTICE VPRAŠANJ
================================== */

.gallery-grid {
    gap: 22px;
}

.gallery-grid .flip-card {
    min-width: 0;
    min-height: 245px;
    aspect-ratio: 1 / 1.1;
    border-radius: 20px;
}

.gallery-grid .flip-card-inner {
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-grid .flip-card-front,
.gallery-grid .flip-card-back {
    border-radius: 20px;
    padding: 23px;
}

/* Sprednja stran */

.gallery-grid .flip-card-front {
    background: linear-gradient(145deg, #ffffff, #f8fbf9);
    border: 1px solid #dce9df;
    box-shadow: 0 12px 35px rgba(0, 65, 43, 0.07);
}

.gallery-grid .flip-card-front .flip-label {
    color: #006747;
    font-size: 11px;
}

.gallery-grid .flip-question {
    font-size: 16px;
    line-height: 1.5;
}

/* Zadnja stran */

.gallery-grid .flip-card-back {
    background: linear-gradient(145deg, #006747, #00452f);
    box-shadow: 0 15px 35px rgba(0, 65, 43, 0.15);
}

.gallery-grid .flip-card-back .flip-label {
    color: #ffdc00;
}

.gallery-grid .flip-answer {
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Namig za obračanje */

.gallery-grid .flip-hint {
    font-size: 11px;
    opacity: 0.8;
}

/* Mobilna različica */

@media (max-width: 700px) {
    .gallery-grid {
        gap: 12px;
    }

    .gallery-grid .flip-card {
        min-height: 190px;
        aspect-ratio: 1 / 1.25;
    }

    .gallery-grid .flip-card-front,
    .gallery-grid .flip-card-back {
        padding: 14px;
        border-radius: 15px;
    }

    .gallery-grid .flip-question {
        font-size: 13px;
    }

    .gallery-grid .flip-answer {
        font-size: 11px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-grid .flip-card-inner {
        transition: none;
    }
}