/* Hybrid Skeleton Loader Styles */

/* Hide real content until loaded, but NOT the skeleton itself */
.skeleton-active > *:not(#site-skeleton) {
    visibility: hidden !important;
}

.site-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    pointer-events: none; /* Let clicks pass */
    font-family: sans-serif;
}

/* Base Pulse Animation */
.sk-shimmer {
    background: #f0f1f0;
    background: linear-gradient(90deg, #f0f1f0 25%, #f9faf9 50%, #f0f1f0 75%);
    background-size: 1000px 100%;
    animation: sk-shimmer-ani 1.8s infinite linear;
    border-radius: 4px;
}

@keyframes sk-shimmer-ani {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* NAV MATCHING */
.sk-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: white;
}

.sk-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .sk-nav { padding: 0.75rem 3rem; }
    .sk-nav-top { width: 100%; }
}

.sk-nav-side { flex: 1; }
.sk-nav-logo { width: 96px; height: 96px; border-radius: 50%; }
.sk-nav-search { width: 24px; height: 24px; }

.sk-nav-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    width: 100%;
}

.sk-nav-link { width: 50px; height: 10px; }

/* HERO MATCHING (The Green Strip) */
.sk-hero {
    background-color: #2c493e;
    padding: 3.75rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .sk-hero { padding: 4.75rem 1.5rem; }
}

.sk-hero-title {
    width: 80%;
    max-width: 600px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    margin: 0 auto 1.25rem;
}

.sk-hero-sub {
    width: 60%;
    max-width: 450px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
}

/* CONTAINER MATCHING */
.sk-container {
    max-width: 1152px; /* 6xl - 72rem */
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sk-container { padding: 3rem 1.5rem; }
}

/* GRID MATCHING (The 1:1 Aspect Ratio Fix) */
.sk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .sk-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 1.5rem;
    }
}

.sk-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sk-card-img {
    width: 100%;
    aspect-ratio: 1/1; /* Matches your real images */
}

.sk-card-text-box {
    padding: 0.875rem 0.5rem;
    min-height: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.sk-line-sm { height: 10px; width: 80%; }
.sk-line-xs { height: 10px; width: 60%; }

/* SECTION HEADERS */
.sk-header-group { margin-bottom: 1.5rem; }
.sk-h1 { width: 120px; height: 42px; margin-bottom: 0.5rem; }
.sk-h2 { width: 250px; height: 18px; }

/* About Page Support */
.sk-split { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .sk-split { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Sidebar Support */
.sk-sidebar { border: 1px solid #f0f0f0; padding: 1.5rem; }

/* DIVIDER */
.sk-divider {
    height: 6px;
    background: linear-gradient(-45deg, #C87F41, #C87F41 3px, transparent 3px, transparent 6px);
    margin: 2rem 0;
}
