.ipats-public-navigation ul {
    overflow: visible;
}

.ipats-public-navigation ul li a {
    padding-left: 19px;
    padding-right: 19px;
}

.ipats-public-content {
    min-height: 520px;
}

.ipats-ads-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d6dde4;
    border-top: 5px solid #6ca520;
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(0, 27, 52, .10);
}

.ipats-ads-kicker {
    display: block;
    color: #6ca520;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.ipats-ads-hero h1,
.ipats-public-detail-header h1,
.ipats-empty-public h2 {
    color: #003a63;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.16;
    margin: 0;
}

.ipats-ads-hero h1 {
    font-size: 31px;
}

.ipats-ads-hero p {
    color: #4f545b;
    font-size: 14px;
    line-height: 1.55;
    margin: 8px 0 0;
    padding: 0;
}

.ipats-ads-hero a,
.ipats-ad-card-actions a,
.ipats-detail-topbar a,
.ipats-pagination a,
.ipats-pagination span {
    font-weight: bold;
    text-decoration: none;
}

.ipats-ads-hero a,
.ipats-ad-card-actions a {
    background: #6ca520;
    color: #fff;
    display: inline-block;
    padding: 11px 15px;
}

.ipats-ads-hero a:hover,
.ipats-ad-card-actions a:hover {
    background: #5b8e1b;
}

.ipats-ad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ipats-ad-card {
    background: #fff;
    border: 1px solid #d6dde4;
    box-shadow: 0 8px 18px rgba(0, 27, 52, .08);
    overflow: hidden;
}

.ipats-ad-image {
    align-items: center;
    background: #eaf0f4;
    color: #6c7882;
    display: flex;
    height: 178px;
    justify-content: center;
    text-decoration: none;
}

.ipats-ad-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ipats-ad-card-body {
    padding: 15px;
}

.ipats-ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.ipats-ad-meta span {
    background: #eef6e8;
    color: #315e14;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 7px;
}

.ipats-ad-card h2 {
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 9px;
}

.ipats-ad-card h2 a {
    color: #003a63;
    text-decoration: none;
}

.ipats-ad-card h2 a:hover {
    color: #6ca520;
}

.ipats-ad-card p {
    color: #4f545b;
    line-height: 1.55;
    min-height: 82px;
    padding: 0;
}

.ipats-ad-card-actions {
    align-items: center;
    border-top: 1px solid #d6dde4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
}

.ipats-ad-card-actions span {
    color: #003a63;
    font-weight: bold;
    text-align: right;
}

.ipats-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 28px;
    padding: 14px;
    background: #fff;
    border: 1px solid #d6dde4;
    box-shadow: 0 8px 18px rgba(0, 27, 52, .06);
}

.ipats-pagination a,
.ipats-pagination span {
    align-items: center;
    background: #fff;
    border: 1px solid #c5d0d9;
    color: #003a63;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ipats-pagination a:hover {
    background: #eef6e8;
    border-color: #6ca520;
    color: #315e14;
}

.ipats-pagination .is-active {
    background: #003a63;
    border-color: #003a63;
    color: #fff;
}

.ipats-pagination .is-disabled {
    background: #f3f6f8;
    border-color: #d6dde4;
    color: #8a97a2;
    cursor: not-allowed;
}

.ipats-pagination-control {
    min-width: 82px;
}

.ipats-pagination-ellipsis {
    background: transparent;
    border-color: transparent;
    color: #6c7882;
    min-width: 28px;
    padding-left: 4px;
    padding-right: 4px;
}

.ipats-public-alert,
.ipats-empty-public {
    background: #fff;
    border: 1px solid #d6dde4;
    color: #4f545b;
    padding: 24px;
}

.ipats-detail-topbar {
    margin-bottom: 16px;
}

.ipats-detail-topbar a {
    background: #eef3f6;
    border: 1px solid #c5d0d9;
    color: #003a63;
    display: inline-block;
    padding: 10px 13px;
}

.ipats-public-detail {
    background: #fff;
    border: 1px solid #d6dde4;
    box-shadow: 0 10px 24px rgba(0, 27, 52, .10);
    padding: 24px;
}

.ipats-public-detail-header {
    border-bottom: 1px solid #d6dde4;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.ipats-public-detail-header span {
    color: #6ca520;
    display: block;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ipats-public-detail-header h1 {
    font-size: 32px;
}

.ipats-public-detail-header p {
    color: #4f545b;
    font-weight: bold;
    margin: 8px 0 0;
    padding: 0;
}

.ipats-detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.ipats-detail-gallery a {
    background: #eaf0f4;
    display: block;
    height: 120px;
    overflow: hidden;
}

.ipats-detail-gallery .is-featured {
    grid-column: span 2;
    grid-row: span 2;
    height: 250px;
}

.ipats-detail-gallery img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ipats-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 24px;
}

.ipats-detail-body h2 {
    color: #003a63;
    font-size: 21px;
    margin: 0 0 10px;
}

.ipats-detail-body p {
    color: #4f545b;
    font-size: 14px;
    line-height: 1.75;
    padding: 0;
}

.ipats-detail-body aside {
    background: #f3f6f8;
    border-left: 5px solid #6ca520;
    padding: 18px;
}

.ipats-detail-body dl,
.ipats-detail-body dd {
    margin: 0;
}

.ipats-detail-body dt {
    color: #6c7882;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .06em;
    margin-top: 12px;
    text-transform: uppercase;
}

.ipats-detail-body dt:first-child {
    margin-top: 0;
}

.ipats-detail-body dd {
    color: #003a63;
    font-weight: bold;
    padding-top: 4px;
}

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

    .ipats-detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ipats-ads-hero,
    .ipats-ad-card-actions {
        display: block;
    }

    .ipats-ads-hero a {
        margin-top: 14px;
    }

    .ipats-pagination {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 11px;
    }

    .ipats-pagination a,
    .ipats-pagination span {
        min-height: 36px;
        min-width: 36px;
        padding: 7px 10px;
    }

    .ipats-pagination-control {
        min-width: auto;
    }

    .ipats-ad-grid,
    .ipats-detail-gallery {
        grid-template-columns: 1fr;
    }

    .ipats-detail-gallery .is-featured,
    .ipats-detail-gallery a {
        grid-column: auto;
        grid-row: auto;
        height: 220px;
    }
}
