.hicoding-cases-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 16px;
}
.hicoding-cases-filter .filter-btn {
    padding: 8px 14px;
    border-radius: 18px;
    border: 1px solid #dcdfe6;
    background: #f6f7fb;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 14px;
}
.hicoding-cases-filter .filter-btn.active {
    background: #14AE67;
    border-color: #14AE67;
    color: #fff;
}
.hicoding-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.hicoding-cases-pagination {
    margin: 28px auto 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hicoding-cases-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    float: none;
}
.hicoding-cases-pagination .page-numbers li {
    display: inline-flex;
}
.hicoding-cases-pagination .page-numbers a,
.hicoding-cases-pagination .page-numbers span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    transition: all .15s ease;
}
.hicoding-cases-pagination .page-numbers .prev,
.hicoding-cases-pagination .page-numbers .next {
    min-width: 44px;
    padding: 0 14px;
}
.hicoding-cases-pagination .page-numbers a:hover {
    border-color: #14AE67;
    color: #14AE67;
    box-shadow: 0 8px 18px rgba(20,174,103,0.15);
}
.hicoding-cases-pagination .page-numbers .current {
    background: #14AE67;
    border-color: #14AE67;
    color: #fff;
    border-radius: 12px;
}
.hicoding-cases-pagination .page-numbers a:focus-visible {
    outline: 2px solid #14AE67;
    outline-offset: 2px;
    border-radius: 12px;
}
.hicoding-cases-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    color: #6b7280;
}
.hicoding-case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.hicoding-case-card .card-link-full {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.hicoding-case-card .card-thumb {
    padding-top: 62%;
    background-size: cover;
    background-position: center;
}
.hicoding-case-card .card-thumb.placeholder {
    background: #e9ecf3;
}
.hicoding-case-card .card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.hicoding-case-card .card-category {
    display: inline-block;
    padding: 4px 10px;
    background: #ecf9f0;
    color: #14AE67;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.hicoding-case-card .card-title {
    margin: 0;
    font-size: 17px;
}
.hicoding-case-card .card-excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
.hicoding-case-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: auto;
}
.hicoding-case-card .card-link {
    color: #14AE67;
    font-weight: 600;
}
.hicoding-case-card .card-link-full:hover .card-title {
    text-decoration: underline;
}
.hicoding-empty {
    grid-column: 1/-1;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.hicoding-cases-featured {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px clamp(10px, 4vw, 18px) 36px;
    overflow-x: hidden;
    --hicoding-cases-gap: 12px;
}
.hicoding-cases-featured__header {
    text-align: center;
    margin-bottom: 18px;
}
.hicoding-cases-featured__header h2 {
    margin: 0;
    font-size: 26px;
    color: #0f172a;
}
.hicoding-cases-featured__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hicoding-cases-gap);
    width: 100%;
    max-width: min(1200px, 100vw);
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}
.hicoding-cases-featured__card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
.hicoding-cases-featured__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}
.hicoding-cases-featured__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 10px;
    box-sizing: border-box;
    gap: 8px;
    min-width: 0;
}
.hicoding-cases-featured__link::before,
.hicoding-cases-featured__link::after {
    display: none;
    content: none;
}
.hicoding-cases-featured__thumb {
    position: relative;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    transition: transform .25s ease, filter .25s ease;
    margin-bottom: 4px;
    border-radius: 0;
}
.hicoding-cases-featured__thumb.is-placeholder {
    background: #e5e7eb;
}
.hicoding-cases-featured__card:hover .hicoding-cases-featured__thumb {
    transform: scale(1.02);
    filter: brightness(1.02);
}
.hicoding-cases-featured__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}
.hicoding-cases-featured__body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
}
.hicoding-cases-featured__body .meta {
    display: none;
}
.hicoding-cases-featured__cta {
    text-align: center;
    margin-top: 20px;
}
.hicoding-cases-featured__card,
.hicoding-cases-featured__link {
    width: 100%;
    box-sizing: border-box;
}
.hicoding-cases-featured__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #0b2416;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(34,197,94,0.25);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.hicoding-cases-featured__button:hover {
    background: linear-gradient(90deg, #16a34a, #15803d);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(34,197,94,0.32);
    text-decoration: none;
}

.hicoding-single {
    color: #1f2937;
}
.hicoding-single .hero {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: 380px;
    padding: 56px 36px;
    color: #fff;
    background: #0f172a;
    background-size: cover;
    background-position: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.hicoding-single .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}
.hicoding-single .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1290px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}
.hicoding-single .hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hicoding-single .back-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}
.hicoding-single .back-link:hover {
    color: #fff;
}
.hicoding-single .hero .pill {
    background: #14AE67;
    color: #fff;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 16px;
    display: inline-block;
    font-weight: 600;
    width: fit-content;
}
.hicoding-single .hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.25;
    color: #fff;
}
.hicoding-single .hero .subtitle {
    margin: 0;
    color: #e5e7eb;
    font-size: 15px;
}
.hicoding-single .hero-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #d1d5db;
    justify-content: center;
}
.hicoding-single .hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.32);
    border-radius: 10px;
}
.hicoding-single .hero-meta .meta-item::before {
    display: inline-block;
    font-size: 14px;
}
.hicoding-single .hero-meta .icon-calendar::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='%23e0e7ff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2a1 1 0 0 0-1 1v1H5a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3h-1V3a1 1 0 1 0-2 0v1H8V3a1 1 0 0 0-1-1Zm-2 6h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hicoding-single .hero-meta .icon-location::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='%23e0e7ff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hicoding-single .hero-meta .icon-area::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='%23e0e7ff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3a1 1 0 0 0-1 1v1h2V4a1 1 0 0 0-1-1Zm3 1v1h2V4H7Zm3 0v1h2V4h-2Zm3 0v1h2V4h-2Zm3 0v1h2V4a1 1 0 0 0-1-1h-1ZM4 7v2h2V7H4Zm14 0v2h2V7h-2ZM4 10v2h2v-2H4Zm14 0v2h2v-2h-2ZM4 13v2h2v-2H4Zm14 0v2h2v-2h-2ZM4 16v2a1 1 0 0 0 1 1h1v-3H4Zm14 0v3h1a1 1 0 0 0 1-1v-2h-2ZM7 16v3h2v-3H7Zm3 0v3h2v-3h-2Zm3 0v3h2v-3h-2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hicoding-single .case-gallery {
    margin: 40px auto 72px;
    max-width: 1200px;
    padding: 0 18px;
}
.hicoding-single .case-gallery .gallery-list {
    display: grid;
    gap: 18px;
}
.hicoding-single .case-gallery .gallery-list img {
    width: 100%;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}
.case-gallery--stack .gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 6px 2px 10px;
}
.gallery-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #dfe3ea;
    background: rgba(255,255,255,0.9);
    color: #111827;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.gallery-control:hover {
    background: #14AE67;
    border-color: #14AE67;
    color: #fff;
    box-shadow: 0 8px 18px rgba(20,174,103,0.25);
}
.gallery-nav {
    display: inline-flex;
    gap: 8px;
}
.hicoding-icon-list {
    width: 18px;
    height: 14px;
    display: inline-block;
    line-height: 0;
    overflow: hidden;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cpath d='M1 1h16v2H1V1Zm0 5h16v2H1V6Zm0 5h16v2H1v-2Z' fill='%23111827'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
    .hicoding-single .hero {
        padding: 32px 22px;
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .hicoding-cases-featured {
        padding: 18px clamp(10px, 4vw, 14px) 28px;
        --hicoding-cases-gap: 10px;
    }
    .hicoding-cases-featured__link {
        padding: 8px;
    }
}

@media (min-width: 1100px) {
    .hicoding-cases-featured {
        padding: 28px clamp(12px, 2vw, 20px) 48px;
        --hicoding-cases-gap: 18px;
    }
    .hicoding-cases-featured__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
