:root {
    --brand: #ad1f26;
    --brand-dark: #8a1720;
    --brand-deep: #5c0f14;
    --brand-light: #f5e6e7;
    --brand-mid: #d94f55;
    --gold: #c9a84c;
    --gold-light: #f0dfa0;
    --text-primary: #1a1a1a;
    --text-muted: #6b6b6b;
    --bg: #fdf8f8;
    --white: #ffffff;
    --border: rgba(173, 31, 38, 0.15);
}

/* ── CARD ── */
.card {
    position: relative;
    width: 300px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .3s ease;
    overflow: hidden;
    cursor: default;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--gold));
    border-radius: 16px 16px 0 0;
}

.card::after {
    content: '\2315';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(173, 31, 38, 0.88) 0%, rgba(92, 15, 20, 0.84) 100%);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
    pointer-events: none;
    border-radius: 16px;
    z-index: 2;
}

/* .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 56px rgba(173, 31, 38, 0.18), 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: rgba(173, 31, 38, 0.35);
}

.card:hover::after {
    transform: translateY(0);
    opacity: 1;
} */

/* ── BADGE ── */
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .8px;
    padding: 3px 9px;
    border-radius: 20px;
    border: 0.5px solid rgba(173, 31, 38, 0.2);
}

/* ── FILE ICON ── */
.file-wrap {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    position: relative;
}

.card:hover .file-wrap {
    transform: scale(1.08) rotate(-5deg);
}

.file-body {
    width: 52px;
    height: 64px;
    background: var(--brand-light);
    border: 1.5px solid rgba(173, 31, 38, 0.3);
    border-radius: 4px 14px 4px 4px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
    justify-content: center;
}

.file-fold {
    width: 14px;
    height: 14px;
    background: rgba(173, 31, 38, 0.3);
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 0 0 4px;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.file-fold2 {
    width: 14px;
    height: 14px;
    background: var(--brand-light);
    border: 1.5px solid rgba(173, 31, 38, 0.3);
    position: absolute;
    top: -1px;
    right: -1px;
    border-radius: 0 4px 0 0;
}

.file-pdf {
    font-size: 9px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 1px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: white;
    padding: 1px 5px;
    border-radius: 2px;
    border: 0.5px solid rgba(173, 31, 38, 0.25);
}

.file-lines {
    position: absolute;
    top: 22px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-line {
    height: 2px;
    background: rgba(173, 31, 38, 0.2);
    border-radius: 1px;
    transition: width .35s ease;
}

.card:hover .file-line:nth-child(1) {
    width: 28px;
}

.card:hover .file-line:nth-child(2) {
    width: 20px;
}

.card:hover .file-line:nth-child(3) {
    width: 25px;
}

/* ── TITLES ── */
.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.45;
    transition: color .3s ease;
}

.card-title::after {
    content: '';
    display: block;
    width: 42px;
    height: 2px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.card-title a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color .3s ease, text-decoration-color .3s ease;
}

.card:hover .card-title a {
    color: var(--brand);
    text-decoration-color: rgba(173, 31, 38, 0.4);
}

.card-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: .5;
    display: inline-block;
}

/* ── DIVIDER ── */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── BUTTON ── */
.dl-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
    width: 100%;
    justify-content: center;
    letter-spacing: .2px;
}

.dl-btn:hover {
    background: var(--brand-dark);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(173, 31, 38, 0.3);
}

.dl-btn:active {
    transform: scale(0.98);
}

.dl-btn .arrow {
    transition: transform .25s ease;
}

.dl-btn:hover .arrow {
    transform: translateY(2px);
}

.shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: 200% 0;
    pointer-events: none;
}

.dl-btn:hover .shimmer {
    animation: sh .55s ease forwards;
}

@keyframes sh {
    to {
        background-position: -200% 0;
    }
}

/* ── PULSE ── */
.pulse-dot {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(173, 31, 38, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(173, 31, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(173, 31, 38, 0);
    }
}

/* ── GOLD ACCENT ── */
.gold-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 1px;
    margin: -6px 0;
}

.section-m-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.section-m-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #951419, #95141987);
    border-radius: 1.5px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #ad1f26;
    border-radius: 1px;
}

.resource-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.resource-card {
    width: 100%;
    height: 150px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}

.resource-card::after {
    content: '\2315';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    color: var(--white);
    font-size: 28px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    z-index: 2;
}

.resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.resource-card:hover,
.resource-link:hover .resource-card {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 10px 24px rgba(173, 31, 38, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(173, 31, 38, 0.28);
}

.resource-card:hover::after,
.resource-link:hover .resource-card::after {
    opacity: 1;
    transform: translateY(0);
}

.resource-card:hover .resource-image,
.resource-link:hover .resource-image {
    transform: scale(1.06);
}

.lb-outerContainer {
    position: relative;
}

.lb-close {
    position: absolute !important;
    top: -40px !important;
    right: 10px !important;
    opacity: 1 !important;
}

.lb-close {
    width: 35px !important;
    height: 35px !important;
    background-size: 20px 20px !important;
}



@media only screen and (max-width: 480px) {
    .lb-nav .lb-prev, .lb-nav .lb-next {
        opacity: 1 !important;
    }

    .card{
        margin: 0 auto;
    }

    .section-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 18px;
        position: relative;
    }

    .resource-card {
        width: 80%;
        height: auto;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 12px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
        overflow: hidden;
        margin: 0 auto;
    }
}
