:root {
    --text-muted: var(--color-muted, #cbd5e1);
    --radius-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
    padding-bottom: 80px;
}

.container > .card-section:not(.footer-alert) {
    padding: 1.35rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: fadeUp 0.7s ease-out forwards;
    opacity: 0;
}

.container > .card-section:not(.footer-alert):hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.95rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.container > .card-section:not(.footer-alert):hover .icon-box { transform: scale(1.08); }

.container > .card-section:not(.footer-alert) h2 {
    font-size: 1.12rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.container > .card-section:not(.footer-alert) p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.container > .card-section:not(.footer-alert) strong { color: #fff; font-weight: 700; }

.footer-alert {
    grid-column: 1 / -1;
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
    padding: 26px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 16px;
}
.footer-alert i { font-size: 1.5rem; color: #f87171; }

.public-hub-empty {
    grid-column: 1 / -1;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.container > .card-section:not(.footer-alert):nth-child(1) { animation-delay: 0.05s; }
.container > .card-section:not(.footer-alert):nth-child(2) { animation-delay: 0.10s; }
.container > .card-section:not(.footer-alert):nth-child(3) { animation-delay: 0.15s; }
.container > .card-section:not(.footer-alert):nth-child(4) { animation-delay: 0.20s; }
.container > .card-section:not(.footer-alert):nth-child(5) { animation-delay: 0.25s; }
.container > .card-section:not(.footer-alert):nth-child(6) { animation-delay: 0.30s; }
.container > .card-section:not(.footer-alert):nth-child(7) { animation-delay: 0.35s; }
.container > .card-section:not(.footer-alert):nth-child(8) { animation-delay: 0.40s; }
.container > .card-section:not(.footer-alert):nth-child(9) { animation-delay: 0.45s; }
.container > .card-section:not(.footer-alert):nth-child(10) { animation-delay: 0.50s; }
.container > .card-section:not(.footer-alert):nth-child(11) { animation-delay: 0.55s; }
.container > .card-section:not(.footer-alert):nth-child(12) { animation-delay: 0.60s; }

@media (max-width: 768px) {
    body { padding: 15px; }
    .container { grid-template-columns: 1fr; }
    .footer-alert { flex-direction: column; }
}
