.cert-gallery-page {
    color: #1e293b;
    min-height: 100vh;
    background: transparent;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Custom Snappier Reveal for Gallery */
.cert-gallery-page .reveal {
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-gallery-page .reveal-up {
    transform: translateY(30px) scale(0.98);
}

.cert-gallery-page .reveal.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Detail Page Tags */
.cert-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cert-tags {
    display: flex;
    gap: 12px;
}

.cert-tags .tag-category {
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 48, 140, 0.2);
}

.cert-tags .tag-position {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    padding: 7px 18px;
    border-radius: 100px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 800;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.gallery-title-area {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.gallery-title-area h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.gallery-title-area .count {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 500;
}

.gallery-search-area {
    position: relative;
    width: 300px;
}

.gallery-search-area input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 40px 10px 0;
    font-size: 1rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #1e293b;
}

.gallery-search-area input:focus {
    border-color: var(--brand-primary);
    padding-right: 50px;
    letter-spacing: 0.5px;
}

.gallery-search-area i {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: all 0.4s ease;
}

.gallery-search-area input:focus+i {
    color: var(--brand-primary);
    transform: translateY(-50%) scale(1.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 25px;
    margin-bottom: 60px;
}

.gallery-card {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    transition: all 0.5s ease;
}

.gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.1);
}

.gallery-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.tag-category {
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(17, 48, 140, 0.2);
}

.tag-position {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.gallery-card-content {
    padding: 20px;
}

.gallery-card-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

.gallery-card:hover .gallery-card-title {
    color: var(--brand-primary);
}

.gallery-card-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Detail Page Premium Style */
.cert-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 80px 60px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.cert-detail-header {
    margin-bottom: 60px;
    text-align: left;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--brand-primary);
}

.cert-detail-meta {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.cert-detail-date {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

.cert-detail-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cert-detail-article {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    line-height: 2;
    color: #334155;
    font-size: 1.15rem;
    box-shadow: none;
}

.content-body {
    margin-top: 40px;
}

.content-body p {
    margin-bottom: 1.8rem;
}

.content-body h2,
.content-body h3 {
    color: #0f172a;
    margin: 3rem 0 1.5rem;
    font-weight: 800;
}

.cert-detail-article img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.detail-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* Pagination Style */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.gallery-pagination a,
.gallery-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.95rem;
    color: #64748b;
    transition: all 0.2s;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.gallery-pagination a:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(17, 48, 140, 0.3);
}

.gallery-pagination .active {
    background: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(17, 48, 140, 0.2);
}

.gallery-pagination .nav-btn {
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gallery-search-area {
        width: 100%;
    }

    .cert-detail-container {
        padding: 40px 20px;
    }

    .cert-detail-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}