/*
 * Teknik Şartnameler — kompakt doküman kartları
 * Tema şablonu ve ACF alanları değiştirilmeden yalnızca sayfa görünümü düzenlenir.
 */

.quest-field .animate-field > .wrapper > .editor {
    max-width: 840px !important;
}

.quest-field .animate-field > .wrapper > .editor h2 {
    margin-bottom: 16px !important;
    font-size: clamp(30px, 3.1vw, 44px) !important;
    line-height: 1.12 !important;
}

.quest-field .animate-field > .wrapper > .editor p {
    display: block !important;
    margin-bottom: 30px !important;
    color: rgba(51, 51, 51, 0.72) !important;
    font-size: clamp(15px, 1.2vw, 18px) !important;
    line-height: 1.75 !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

.quest-field .bg-pampas-100 {
    border: 1px solid rgba(51, 51, 51, 0.08);
    background: #f8f6f1 !important;
}

.quest-field .technical-content {
    padding: 24px !important;
}

.quest-field .technical-content .tiles-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quest-field .technical-content .technic-box {
    min-width: 0;
    min-height: 190px;
    padding: 0 !important;
    border: 1px solid rgba(51, 51, 51, 0.10) !important;
    background: #fff;
    box-shadow: 0 10px 28px rgba(34, 31, 27, 0.035);
    transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.quest-field .technical-content .technic-box:hover {
    border-color: rgba(204, 138, 86, 0.42) !important;
    box-shadow: 0 16px 34px rgba(34, 31, 27, 0.08);
    transform: translateY(-2px);
}

.quest-field .technical-content .technic-box > .container {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
        "icon content"
        "icon button";
    align-content: center;
    align-items: start !important;
    justify-content: stretch !important;
    width: 100%;
    max-width: none !important;
    min-height: 188px;
    padding: 24px !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
}

.quest-field .technical-content .technic-box .icon {
    grid-area: icon;
    align-self: start;
    width: 52px;
    padding-top: 2px;
}

.quest-field .technical-content .technic-box .icon a {
    display: block;
}

.quest-field .technical-content .technic-box .icon svg {
    display: block;
    width: 46px !important;
    height: auto !important;
}

.quest-field .technical-content .technic-box > .container > .editor {
    grid-area: content;
    min-width: 0;
    margin: 0 !important;
}

.quest-field .technical-content .technic-box .editor h3 {
    margin: 0 !important;
    color: #333 !important;
    font-size: clamp(18px, 1.45vw, 22px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em;
}

.quest-field .technical-content .technic-box:hover .editor h3 {
    color: #cc8a56 !important;
}

.quest-field .technical-content .technic-box .editor p {
    display: block !important;
    margin: 8px 0 0 !important;
    color: rgba(51, 51, 51, 0.66) !important;
    font-size: 14px !important;
    line-height: 1.62 !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

.quest-field .technical-content .technic-box .button-field {
    grid-area: button;
    justify-self: start;
    height: auto !important;
}

.quest-field .technical-content .technic-box .button-field .button {
    width: max-content !important;
    height: 40px !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
}

.quest-field .technical-content .technic-box .button-field .text {
    font-size: 14px !important;
    line-height: 1 !important;
}

@media (max-width: 980px) {
    .quest-field .technical-content .tiles-nav {
        grid-template-columns: 1fr;
    }

    .quest-field .technical-content .technic-box,
    .quest-field .technical-content .technic-box > .container {
        min-height: 166px;
    }
}

@media (max-width: 640px) {
    .quest-field {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    .quest-field .animate-field {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .quest-field .animate-field > .wrapper > .editor h2 {
        margin-bottom: 12px !important;
        font-size: 28px !important;
    }

    .quest-field .animate-field > .wrapper > .editor p {
        margin-bottom: 22px !important;
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .quest-field .technical-content {
        padding: 12px !important;
    }

    .quest-field .technical-content .tiles-nav {
        gap: 12px;
    }

    .quest-field .technical-content .technic-box,
    .quest-field .technical-content .technic-box > .container {
        min-height: 0;
    }

    .quest-field .technical-content .technic-box > .container {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "icon content"
            "button button";
        padding: 18px !important;
        column-gap: 14px !important;
        row-gap: 16px !important;
    }

    .quest-field .technical-content .technic-box .icon,
    .quest-field .technical-content .technic-box .icon svg {
        width: 38px !important;
    }

    .quest-field .technical-content .technic-box .editor h3 {
        font-size: 18px !important;
    }

    .quest-field .technical-content .technic-box .editor p {
        font-size: 13.5px !important;
        line-height: 1.58 !important;
    }

    .quest-field .technical-content .technic-box .button-field {
        width: 100%;
    }

    .quest-field .technical-content .technic-box .button-field .button {
        justify-content: center;
        width: 100% !important;
    }
}
