/* Responsive — Public Portal */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .profile-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image img {
        max-width: 400px;
        margin-inline: auto;
    }

    .profile-social {
        justify-content: center;
    }

    .profile-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-hero-image {
        order: -1;
        justify-content: center;
    }

    .profile-hero-facts {
        grid-template-columns: 1fr;
    }

    .profile-page {
        background-position: center top;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: calc(var(--header-h) + 52px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 0.75rem;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
        z-index: 999;
    }

    .menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        padding: 0.85rem 1rem;
        border-radius: var(--radius-md);
    }

    body.nav-open {
        overflow: hidden;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-inner {
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo-text {
        min-width: 0;
        overflow: hidden;
    }

    .menu {
        top: calc(var(--header-h) + 56px);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .hero-card {
        height: clamp(320px, 70vh, 480px);
    }

    .hero-content h1 {
        font-size: 1.65rem;
    }

    .news-grid,
    .trending-grid,
    .agenda-grid,
    .gallery-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand-head {
        justify-content: center;
        text-align: left;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .detail-title {
        font-size: 1.65rem;
    }

    .detail-image {
        height: 260px;
    }

    .page-content h1 {
        font-size: 1.75rem;
    }

    .profile-image img {
        height: 300px;
    }

    .profile-content h1 {
        font-size: 2rem;
    }

    .profile-hero {
        padding: 2rem 1.25rem 1.5rem;
    }

    .profile-hero-name {
        font-size: 2.2rem;
    }

    .profile-hero-tagline {
        font-size: 1rem;
    }

    .profile-hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-hero-facts {
        grid-template-columns: 1fr;
        gap: 1rem;
        font-size: 0.95rem;
    }

    .profile-hero-image {
        justify-content: center;
    }

    .profile-hero-content {
        text-align: center;
    }

    .profile-hero-buttons {
        justify-content: center;
    }

    .profile-hero-socials {
        justify-content: center;
    }

    .profile-shell,
    .profile-shell--wide,
    .profile-features {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .profile-shell {
        padding-top: 2rem;
    }

    .profile-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-hero-image {
        margin-top: 0;
    }

    .profile-hero-image::before,
    .profile-hero-image::after {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .breaking-label {
        padding: 0.75rem 1rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
        font-size: 0.85rem;
    }

    .search-section form {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .search-section button {
        width: 100%;
        height: 48px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .pagination a {
        min-width: 38px;
        height: 38px;
    }

    .profile-hero {
        padding: 1.5rem 1rem 1.25rem;
    }

    .profile-hero-name {
        font-size: 1.85rem;
    }

    .profile-hero-mission {
        font-size: 0.95rem;
    }

    .profile-hero-buttons {
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .profile-shell,
    .profile-shell--wide,
    .profile-features {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .profile-hero-container {
        gap: 1.5rem;
    }
}
