:root {
    --gl-bg: var(--ui-bg);
    --gl-card: #ffffff;
    --gl-border: rgba(0, 0, 0, 0.08);
    --gl-accent: #1f55b5;
    --gl-text: #1e293b;
    --gl-muted: #64748b;
    --gl-font-display: var(--ui-font-head);
    --gl-font-body: var(--ui-font-body);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--gl-bg);
    font-family: var(--gl-font-body);
    color: var(--gl-text);
    -webkit-font-smoothing: antialiased;
}

.gl-page {
    background: var(--gl-bg);
    min-height: 100vh;
}

/* Hero */
.gl-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 80px; /* navbar offset */
}

.gl-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,10,30,0.55) 0%, rgba(10,10,30,0.75) 60%, rgba(10,10,30,0.92) 100%),
        url('https://infocare.upgris.ac.id/assets/uploads/Screenshot 2026-06-17 at 04.35.23.png') center/cover no-repeat;
}

.gl-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.gl-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.gl-hero-title em {
    font-style: normal;
    color: #2a64c8;
}

.gl-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Grid */
.gl-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.gl-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gl-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gl-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gl-border);
}

.gl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card */
.gl-card {
    background: var(--gl-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gl-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    animation: gl-fadein 0.5s ease both;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.gl-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 85, 181, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@keyframes gl-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.gl-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
}

.gl-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gl-card:hover .gl-card-thumb img {
    transform: scale(1.05);
}

.gl-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 85, 181, 0.15);
    opacity: 0;
    transition: opacity 0.25s;
}

.gl-card:hover .gl-card-hover {
    opacity: 1;
}

.gl-card-hover-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gl-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(31, 85, 181, 0.5);
    transform: scale(0.8);
    transition: transform 0.2s;
}

.gl-card:hover .gl-card-hover-btn {
    transform: scale(1);
}

.gl-card-hover-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gl-card-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
}

.gl-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gl-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gl-text);
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gl-muted);
}

/* Empty state */
.gl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--gl-muted);
    background: #ffffff;
    border: 1.5px dashed #e2e8f0;
    border-radius: 20px;
}

/* Lightbox */
.gl-lightbox-bg {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    transition: background 0.3s;
}

.gl-lightbox-bg.open {
    background: rgba(10, 15, 30, 0.92);
    pointer-events: auto;
}

.gl-lightbox {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gl-lightbox-bg.open .gl-lightbox {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.gl-lightbox-img-wrap {
    position: relative;
    background: #0f172a;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.gl-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}

.gl-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.gl-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gl-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 5;
    padding: 0;
}

.gl-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gl-lightbox-nav.prev { left: 14px; }
.gl-lightbox-nav.next { right: 14px; }

.gl-lightbox-nav svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.gl-lightbox-info {
    padding: 16px 24px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gl-lightbox-album {
    font-family: var(--gl-font-display);
    font-size: 24px;
    letter-spacing: 0.03em;
    color: var(--gl-text);
    margin: 0 0 4px;
}

.gl-lightbox-meta {
    font-size: 13px;
    color: var(--gl-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gl-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 24px 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gl-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gl-thumb.active {
    border-color: var(--gl-accent);
}

.gl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gl-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
    .gl-grid { grid-template-columns: 1fr; gap: 16px; }
    .gl-hero-title { font-size: 42px; }
    .gl-lightbox-nav { width: 36px; height: 36px; }
    .gl-lightbox-album { font-size: 20px; }
}

/* ===== Selaras global.css ===== */
.gl-grid-wrap {
    position: relative; z-index: 5;
    margin-top: clamp(-64px, -6vw, -40px) !important;
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-lg);
    padding: clamp(18px, 3vw, 32px) !important;
    max-width: calc(var(--ui-container) - 2 * var(--ui-gutter));
    margin-inline: auto;
    margin-bottom: var(--ui-section-y);
}
@media (max-width: 1240px) { .gl-grid-wrap { margin-inline: var(--ui-gutter); } }
