/* Kuya Ely — business permits page */

.permits-page .breadcumb-section.style__two {
    padding: 220px 0 90px;
    height: auto;
}

.ke-permits {
    background: #122327;
    padding: 80px 0 90px;
}

.ke-permits-lead {
    max-width: 680px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.7;
}

.ke-permits-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 38px 0 32px;
}

.ke-permits-stats > div {
    padding: 22px 18px;
    border-radius: 16px;
    background: #1C2D31;
    border: 1px solid rgba(245, 197, 24, 0.16);
    text-align: center;
}

.ke-permits-stats strong {
    display: block;
    color: #F5C518;
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.ke-permits-stats span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.ke-permits-tabs {
    margin-bottom: 32px;
}

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

.ke-permit {
    margin: 0;
}

.ke-permit.is-hidden {
    display: none;
}

.ke-permit.is-feature {
    grid-column: span 1;
}

.ke-permit.is-wide {
    grid-column: span 1;
}

.ke-permit a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #1C2D31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ke-permit a:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 197, 24, 0.45);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    color: inherit;
}

.ke-permit-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 16px 16px 8px;
    background:
        linear-gradient(180deg, rgba(245, 197, 24, 0.08), transparent 40%),
        #f3efe4;
    overflow: hidden;
    user-select: none;
}

.ke-permit.is-wide .ke-permit-frame {
    min-height: 220px;
}

.ke-permit-frame img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    pointer-events: none;
}

.ke-permit-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--title-font);
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: 0.18em;
    color: rgba(18, 35, 39, 0.08);
    pointer-events: none;
    transform: rotate(-18deg);
}

.ke-permit-body {
    padding: 18px 20px 20px;
}

.ke-permit-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: #F5C518;
    font-family: var(--title-font);
    font-size: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.ke-permit-body h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.ke-permit-body p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.ke-permit-body ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ke-permit-body li {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.ke-permits-empty {
    display: none;
    grid-column: 1 / -1;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.ke-permits-note {
    max-width: 720px;
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

@media (min-width: 992px) {
    .ke-permit.is-feature:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 1199px) {
    .ke-permits-stats,
    .ke-permits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ke-permit.is-feature:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .ke-permits {
        padding: 56px 0 70px;
    }

    .ke-permits-stats,
    .ke-permits-grid {
        grid-template-columns: 1fr;
    }

    .ke-permit.is-feature:nth-child(1),
    .ke-permit.is-wide {
        grid-column: span 1;
    }
}
