/* =========================================
   PUBLICATIONS HERO
========================================= */

.publications-hero {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            rgba(20, 15, 10, 0.72),
            rgba(20, 15, 10, 0.72)
        ),
        url("https://flhorvkvkxbodappjspg.supabase.co/storage/v1/object/public/kingdom-media/hero/hero-1.jpeg")
        center / cover no-repeat;
}


.publications-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 20px;
    text-align: center;
}


.publications-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 64px);
    color: #fff;
}


.publications-hero p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   PUBLICATIONS SECTION
========================================= */

.publications-section {
    padding: 80px 20px;
    background: #f8f6f1;
}


.publications-heading {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}


.publications-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 44px);
}


.publications-heading p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}


/* =========================================
   PUBLICATIONS GRID
========================================= */

.publications-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================
   PUBLICATION CARD
========================================= */

.publication-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.publication-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.12);
}


/* =========================================
   COVER
========================================= */

.publication-cover {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: #eee;
}


.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform .4s ease;
}


.publication-card:hover
.publication-cover img {
    transform: scale(1.04);
}


.publication-cover-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #e8e0d2,
            #f5f1e8
        );
}


.publication-cover-placeholder span {
    font-size: 55px;
}


.publication-cover-placeholder small {
    letter-spacing: 2px;
    font-weight: 700;
}


/* =========================================
   CATEGORY
========================================= */

.publication-category {
    position: absolute;
    left: 16px;
    bottom: 16px;

    padding: 7px 11px;

    border-radius: 5px;

    background: rgba(0,0,0,.75);
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
}


/* =========================================
   CONTENT
========================================= */

.publication-content {
    padding: 24px;
}


.publication-content h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.35;
}


.publication-description {
    margin: 0 0 18px;

    color: #666;

    font-size: 14px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================
   META
========================================= */

.publication-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 20px;

    padding-top: 15px;

    border-top: 1px solid #eee;

    color: #777;

    font-size: 12px;
}


/* =========================================
   BUTTON
========================================= */

.publication-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 13px 16px;

    border-radius: 7px;

    text-decoration: none;

    background: #222;
    color: #fff;

    font-size: 14px;
    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}


.publication-button:hover {
    background: #444;
}


.publication-button span {
    font-size: 18px;
}


/* =========================================
   LOADING
========================================= */

.publications-loading {
    min-height: 180px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;
}




/* =========================================
   EMPTY / ERROR
========================================= */

.publications-empty,
.publications-error {
    padding: 60px 20px;

    text-align: center;

    color: #666;
}


.publications-empty-icon {
    margin-bottom: 15px;
    font-size: 40px;
}


.publications-empty h3,
.publications-error h3 {
    margin-bottom: 8px;
    color: #222;
}


.publications-empty p,
.publications-error p {
    margin: 0;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .publications-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .publications-section {
        padding: 55px 16px;
    }


    .publications-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }


    .publication-cover {
        height: 250px;
    }


    .publications-hero {
        min-height: 280px;
    }

}