:root {
    --bg: #f5f7fb;
    --card: #fff;
    --muted: #6b7280;
    --accent: #0ea5a4
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: #0f172a;
    padding-bottom: 200px;
}

header {
    background: linear-gradient(180deg, #0b5fa5, #074a7a);
    color: #fff;
    padding: 28px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center
}

.logo {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    flex: 0 0 68px;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg,#ffffff 0%, #f0f7fb 100%);
    box-shadow: 0 6px 18px rgba(2,6,23,0.08);
    border: 1px solid rgba(15,23,42,0.06);
}


.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

h1 {
    font-size: 22px;
    margin: 0
}

p.lead {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.9)
}

p.lead { color: rgba(255,255,255,0.95); }

.controls {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.search {
    flex: 1;
    min-width: 180px
}

.search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: white
}


.search input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
}

.filters {
    display: flex;
    gap: 8px
}

button.btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer
}


.filters .btn {
    color: #fff;
    background: rgba(255,255,255,0.06);
    transition: color .18s ease, text-shadow .18s ease;
}


.filters .btn:hover,
.filters .btn:focus,
.filters .btn.active {
    color: #f6c94d;
    text-shadow: 0 6px 20px rgba(246,201,77,0.14);
}


.filters .btn:focus {
    outline: 2px solid rgba(246,201,77,0.14);
    outline-offset: 2px;
}

main {
    padding: 26px 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px
}

.cover {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #e6eef0
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.title {
    font-weight: 600;
    color: #0f172a
}

.author {
    color: var(--muted);
    font-size: 14px
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.tag {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155
}

.actions {
    margin-top: auto;
    display: flex;
    gap: 8px
}

.actions button {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: white;
    cursor: pointer
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 18px 0;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(180deg, #0b5fa5, #074a7a);
    z-index: 40;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -2px 12px rgba(3, 7, 18, 0.35);
}


footer .footer-flex {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #fff;
}

footer .footer-note {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center; 
    padding-top: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
}


footer img {
    max-height: 80px;
}


footer .footer-contact,
footer .footer-location,
footer .footer-author1,
footer .footer-right,
footer .footer-note {
    color: #fff;
}


footer .logo-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

footer a {
    color: #e6f7ff;
    text-decoration: none;
}

.footer-note {
    text-align: center;
    padding-top: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
}

footer .logo-footer .logo-text {
    display: inline-block;
    color: #f6c94d; 
    font-weight: 600;
    font-size: 16px;
    line-height: 48px; 
    transform: translateY(-2px); 
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}


footer .logo-footer img {
    vertical-align: middle;
    height: 48px;
}


@media (max-width: 760px) {
    footer .footer-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    footer img {
        max-height: 60px;
    }

    .footer-note {
        font-size: 12px;
        padding-top: 4px;
    }
}


@media (max-width:520px) {
    .cover {
        height: 160px
    }

    .brand h1 {
        font-size: 18px
    }
}


.empty {
    padding: 36px;
    text-align: center;
    color: var(--muted);
    background: linear-gradient(180deg, #fff, #fbfcff);
    border-radius: 12px
}


.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    padding: 20px;
    z-index: 999;
}

.modal.open {
    display: flex;
}

.modal .panel {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 8px 30px rgba(2,6,23,0.45);
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2,.9,.2,1), opacity .18s ease;
}


.modal .panel img {
    display: block;
    width: 100%;
    max-width: 440px;
    max-height: 70vh; 
    height: auto;
    margin: 8px auto 0;
    object-fit: contain;
    border-radius: 6px;
    transition: transform .22s ease;
    transform: scale(.98);
}

.modal.open .panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal.open .panel img {
    transform: scale(1);
}


.card .cover {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card .cover:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 34px rgba(2,6,23,0.12);
}


.modal .panel img {
    max-width: 440px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}


.grid .section-title {
    grid-column: 1 / -1;
    margin: 0 0 14px;
    font-size: 36px; 
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.2px;
    font-family: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(90deg, #06b6d4 0%, #0b5fa5 55%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 18px rgba(11,95,165,0.08);
    padding: 6px 0;
}


@media (max-width: 520px) {
    .grid .section-title {
        font-size: 20px;
    }
}