/* Public portal — Ayo Ngopi */

/* TOPBAR */
.topbar {
    background: var(--accent);
    color: #94a3b8;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.topbar a:hover {
    color: #fff;
}

.topbar-cta {
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

/* NAVBAR */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.menu a {
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.menu a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.menu a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.menu .menu-search {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0.55rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: color var(--transition), background var(--transition);
}

.menu .menu-search:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.menu .menu-search i {
    font-size: 0.95rem;
    pointer-events: none;
}

/* BREAKING NEWS */
.breaking-wrapper {
    padding: 1rem 0 1.5rem;
}

.breaking-wrapper .container,
.breaking-container {
    max-width: var(--container);
    margin-inline: auto;
}

.breaking-wrapper {
    padding-left: max(1.25rem, calc((100% - 1200px) / 2));
    padding-right: max(1.25rem, calc((100% - 1200px) / 2));
}

.breaking-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.breaking-label {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.breaking-marquee {
    flex: 1;
    min-width: 0;
}

.breaking-marquee marquee {
    padding: 1rem 1.25rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

.breaking-marquee a {
    color: var(--text);
    text-decoration: none;
}

.breaking-marquee a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    padding: 1.5rem max(1.25rem, calc((100% - 1200px) / 2)) 2rem;
}

.hero-card {
    position: relative;
    height: clamp(380px, 55vh, 620px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-card:hover img {
    transform: scale(1.04);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.25) 55%, transparent 100%);
}

.hero-content {
    position: absolute;
    left: clamp(1.25rem, 4vw, 3rem);
    right: clamp(1.25rem, 4vw, 3rem);
    bottom: clamp(1.25rem, 4vw, 3rem);
    color: #fff;
    z-index: 2;
    max-width: 720px;
}

.category {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-block;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 1rem 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    background: #fff;
    color: var(--text);
    padding: 0.8rem 1.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* SEARCH */
.search-section {
    padding: 0 max(1.25rem, calc((100% - 1200px) / 2)) 2rem;
}

.search-section form {
    display: flex;
    max-width: 640px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-section input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-section button {
    width: 56px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}

.search-section button:hover {
    background: var(--primary-hover);
}

.search-page-form {
    padding-top: 0;
    margin-bottom: 2rem;
}

.search-page {
    min-height: 40vh;
}

/* Search overlay (navbar icon) */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 1.25rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.search-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.search-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    transition: transform 0.22s ease;
}

.search-overlay.is-visible .search-panel {
    transform: translateY(0);
}

.search-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.search-panel-close:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.search-panel-title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.search-panel-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.search-panel-field {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
}

.search-panel-field:focus-within {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.search-panel-field input {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-panel-field button {
    width: 52px;
    flex-shrink: 0;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}

.search-panel-field button:hover {
    background: var(--primary-hover);
}

body.search-open {
    overflow: hidden;
}

/* SECTIONS */
.trending-news,
.latest-news {
    padding: 2rem max(1.25rem, calc((100% - 1200px) / 2)) 3rem;
}

.section-title {
    margin-bottom: 1.75rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title p,
.section-subtitle {
    color: var(--text-muted);
    max-width: 720px;
    margin-top: 0.75rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.trending-card {
    position: relative;
    aspect-ratio: 4/5;
    min-height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.trending-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trending-card:hover img {
    transform: scale(1.06);
}

.trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
}

.trending-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-full);
    width: fit-content;
}

.trending-overlay h3 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.trending-category {
    margin-top: 0.5rem;
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-card:hover img {
    transform: scale(1.04);
}

.news-content {
    padding: 1.35rem;
}

.category-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 1.1rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    font-weight: 700;
    min-height: auto;
}

.news-excerpt {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
}

.read-more::after {
    content: "→";
    transition: transform var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination a {
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.agenda-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* DETAIL */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 2rem max(1.25rem, calc((100% - 1200px) / 2));
    max-width: 1400px;
    margin-inline: auto;
}

.detail-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.detail-category {
    background: var(--primary-soft);
    color: var(--primary-hover);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

.detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 1.25rem 0;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.detail-image {
    width: 100%;
    height: clamp(240px, 40vw, 480px);
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.detail-body {
    margin-top: 2rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.detail-embed,
.detail-audio {
    margin-top: 1.75rem;
}

.detail-embed iframe,
.detail-audio audio {
    width: 100%;
    display: block;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.detail-extra-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.detail-extra-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    cursor: pointer;
}
.detail-extra-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 220ms ease, filter 220ms ease;
}
.detail-extra-item:hover .detail-extra-image {
    transform: scale(1.05);
    filter: brightness(0.95);
}

@media (max-width: 900px) {
    .detail-extra-images { grid-template-columns: repeat(2, 1fr); }
    .detail-extra-image { height: 140px; }
}
@media (max-width: 560px) {
    .detail-extra-images { grid-template-columns: 1fr; }
    .detail-extra-image { height: 220px; }
}

/* Lightbox modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox-overlay.open { display: flex; }
.lightbox-inner {
    max-width: 95%;
    max-height: 92%;
    position: relative;
}
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(2,6,23,0.6);
    display: block;
}
.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #111;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display:flex;align-items:center;justify-content:center;
    box-shadow: 0 6px 18px rgba(2,6,23,0.2);
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 32px;
    cursor: pointer;
    user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.share-news {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.share-buttons a,
.share-buttons .share-btn {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.share-buttons a:hover,
.share-buttons .share-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* COMMENTS */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.comments-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comment-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-header strong {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    word-wrap: break-word;
}

.comment-reply {
    margin-left: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(239,71,111,0.04), rgba(255,209,102,0.04));
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.admin-badge {
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.comment-form-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(15,23,42,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(16,24,40,0.05);
}

.comment-form-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    background: var(--surface-muted);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.comment-form .submit-btn {
    padding: 0.9rem 1.25rem;
    background: linear-gradient(90deg, var(--primary) 0%, #FFD166 100%);
    color: #111;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 8px 20px rgba(239,71,111,0.15);
}

.comment-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(239,71,111,0.2);
}

.login-prompt {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(15,23,42,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(16,24,40,0.05);
}

.login-prompt-header {
    margin-bottom: 1rem;
}

.login-prompt-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.login-prompt-header p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
}

.login-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
}

.login-prompt-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.login-prompt-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
}

.login-prompt-actions .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.login-prompt-actions .btn-secondary:hover {
    background: var(--surface-muted);
}

.login-prompt-actions a {
    transition: transform var(--transition), box-shadow var(--transition);
}

.login-prompt-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16,24,40,0.08);
}

.login-prompt-actions .btn-primary:hover {
    background: var(--primary-hover);
}

@media (max-width: 600px) {
    .comments-section { margin-top: 2rem; }
    .comment-item { padding: 0.85rem; margin-bottom: 1rem; }
    .comment-reply { margin-left: 1rem; padding: 0.8rem; }
    .comment-form-section { padding: 1rem; }
    .login-prompt { padding: 1rem; }
    .login-prompt-actions { flex-direction: column; }
    .login-prompt-actions a { width: 100%; min-width: unset; }
    .comment-form textarea { padding: 0.75rem; font-size: 0.9rem; }
}

.login-prompt-note {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* SIDEBAR (detail page) */
.detail-container .sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-box {
    background: var(--surface);
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.sidebar-box h2 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.popular-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-item img {
    width: 80px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.popular-item h4 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.popular-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.related-news {
    margin-top: 3rem;
    padding: 0 max(1.25rem, calc((100% - 1200px) / 2)) 3rem;
}

.related-news h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.25rem;
}

.related-content h3 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.related-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

/* FOOTER */
.footer {
    background: var(--accent);
    color: #e2e8f0;
    margin-top: 4rem;
    padding-top: 3.5rem;
}

.footer-container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1.25rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.footer-brand-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    margin-bottom: 1rem;
    max-width: 100%;
}

.footer-brand-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-brand-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}

.footer-brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.25;
}

.footer-brand-tagline {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.footer-brand-head:hover .footer-brand-name {
    color: #f8fafc;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.875rem;
    margin: 0 0 1.25rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 0;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-menu h3,
.footer-contact h3 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.footer-menu {
    display: flex;
    flex-direction: column;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 0.85rem;
    line-height: 1.6;
    display: flex;
    gap: 0.65rem;
    font-size: 0.9rem;
    align-items: flex-start;
}

.footer-contact p i {
    margin-top: 0.2rem;
    flex-shrink: 0;
    color: var(--primary);
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact-more {
    margin-top: 0.5rem;
}

.footer-contact-more a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.section-subtitle {
    margin-top: 0.5rem;
}

.section-subtitle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.section-subtitle a:hover {
    text-decoration: underline;
}

.empty-state {
    grid-column: 1 / -1;
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* PAGES */
.page {
    padding: 2.5rem max(1.25rem, calc((100% - 1200px) / 2));
    min-height: 50vh;
}

.page-header {
    position: relative;
    min-height: 220px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.page-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem 1.25rem;
}

.page-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.page-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-box,
.contact-box,
.about-box,
.form-box,
.agenda-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin-inline: auto;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    background: var(--surface-muted);
}

.form-help {
    margin-top: -0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-box input:focus,
.form-box textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-box button {
    align-self: flex-start;
}

/* GALERI */
.gallery-section {
    padding: 2.5rem max(1.25rem, calc((100% - 1200px) / 2)) 3rem;
}

.gallery-category {
    margin-bottom: 3.5rem;
}

.category-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #0f172a;
    margin-bottom: 1.75rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.gallery-empty {
    padding: 2.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-overlay span {
    background: #fbbf24;
    color: #0f172a;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    width: max-content;
    margin-bottom: 0.75rem;
}

.gallery-overlay h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

a.gallery-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

#lightbox.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.25rem;
}

#lightbox.lightbox.is-open {
    display: flex;
}

#lightbox.lightbox[hidden] {
    display: none !important;
}

#lightbox img {
    max-width: min(90%, 1100px);
    max-height: 90vh;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

body.lightbox-open {
    overflow: hidden;
}

/* AGENDA */
.agenda-section {
    padding: 2.5rem max(1.25rem, calc((100% - 1200px) / 2)) 3rem;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.agenda-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.agenda-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.agenda-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.agenda-content {
    padding: 1.35rem;
}

.agenda-date {
    background: var(--primary-soft);
    color: var(--primary-hover);
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.agenda-content h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.agenda-info p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-desc {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* PROFILE PAGE — dark blue hero background */
.profile-page {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #071529;
    background-image:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.1), transparent 22%);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.profile-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 18, 51, 0.14), rgba(4, 18, 51, 0.32) 70%);
    pointer-events: none;
    z-index: 0;
}

.profile-page > * {
    position: relative;
    z-index: 1;
}

/* PROFILE HERO SECTION */
.profile-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 5vw, 5rem) 1.5rem clamp(4rem, 6vw, 6rem);
    background: rgba(15, 30, 60, 0.76);
    backdrop-filter: blur(24px);
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(7, 18, 44, 0.18);
    color: #fff;
    z-index: 1;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 24, 54, 0.84), rgba(10, 24, 54, 0.52));
    pointer-events: none;
    z-index: 0;
}

.profile-hero-container {
    width: min(100%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(2rem, 3vw, 3.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.profile-hero-content {
    color: #fff;
    max-width: 620px;
}

.profile-hero-greeting {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 0.75rem;
}

.profile-hero-name {
    font-size: clamp(3rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 0 0 1rem;
    color: #ffffff;
}

.profile-hero-tagline {
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1rem;
}

.profile-hero-mission {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.5rem;
    line-height: 1.8;
    max-width: 520px;
}

.profile-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.profile-hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-hero-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    margin-bottom: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.profile-hero-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-size: 1.1rem;
}

.profile-hero-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
    font-size: 0.98rem;
}

.profile-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    min-width: 170px;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Set a custom background image via inline style or custom CSS:
   <div class="profile-hero" style="--profile-hero-bg: url('assets/images/hero-bg.jpg'), linear-gradient(135deg, rgba(8,34,60,.9), rgba(12,35,72,.9));"> */

.profile-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    backdrop-filter: blur(18px);
}

.fact-item dt {
    color: rgba(255, 255, 255, 0.75);
}

.fact-item dd {
    font-size: 1rem;
    color: #fff;
}

/* PROFILE PAGE: hero layout (example-inspired) */
.profile-page {
    padding: 2rem max(1.25rem, calc((100% - 1200px) / 2));
}

.profile-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 2.25rem;
    background-color: var(--bg);
}

.profile-hero-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin-inline: auto;
}

.profile-hero-content {
    max-width: 680px;
}

.profile-hero-greeting {
    margin: 0 0 0.5rem 0;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-hero-name {
    font-size: clamp(2rem, 6vw, 4rem);
    margin: 0.1rem 0 0.6rem 0;
    line-height: 1.02;
    font-weight: 900;
    color: var(--text-primary);
}

.profile-name-accent {
    color: var(--primary);
    display: inline-block;
}

.profile-hero-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.profile-hero-buttons { margin-top: 1rem; }

.profile-hero-image {
    display: flex;
    justify-content: center;
}

.profile-photo-hero {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(13, 20, 30, 0.12);
    background: #fff;
}

.profile-photo-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Feature cards simplified */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 1.5rem auto 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.feature-icon { font-size: 1.25rem; color: var(--primary); }

.feature-card h3 { margin: 0; font-size: 1rem; font-weight: 800; }

.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
    .profile-hero-container { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-hero { padding: 1.25rem; }
}

.profile-hero-socials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-hero-image::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.18);
    top: -20px;
    right: -20px;
    filter: blur(40px);
    z-index: 0;
}

.profile-hero-image::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    bottom: 1rem;
    left: 1rem;
    z-index: 0;
}

.profile-photo-hero {
    margin: 0;
    width: 100%;
    max-width: 520px;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 42px 110px rgba(7, 16, 37, 0.22);
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.profile-photo-hero:hover {
    transform: translateY(-5px);
}

.profile-photo-hero img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.profile-photo-hero:hover img {
    transform: scale(1.03);
}

.profile-edit-link {
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.profile-edit-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* FEATURE CARDS */
.profile-features {
    background: transparent;
    padding: 3rem 1rem 4rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    max-width: 1120px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    grid-auto-rows: 1fr;
}

.feature-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: calc(var(--radius-lg) + 8px);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.feature-icon {
    width: 68px;
    height: 68px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.feature-icon i {
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #111827;
}

.feature-card p {
    font-size: 0.98rem;
    color: rgba(17, 24, 39, 0.76);
    margin: 0;
    line-height: 1.8;
}

.profile-shell {
    position: relative;
    width: min(100%, 1120px);
    margin: 0 auto 2rem;
    padding: 2.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: 0 40px 90px rgba(6, 18, 40, 0.08);
    backdrop-filter: blur(12px);
}

.profile-shell--wide {
    width: min(100%, 1120px);
    margin: 2rem auto 3rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
}

.profile-edit-link {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 0.35rem 0;
}

.profile-edit-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.profile-intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xs);
}

.profile-photo {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.profile-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.profile-intro-body {
    min-width: 0;
    padding-top: 0.15rem;
}

.profile-label {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.profile-intro-body h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text);
}

.profile-role {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.75rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
}

.profile-facts > div {
    min-width: 0;
}

.profile-facts dt {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-facts dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

.profile-connect {
    margin-top: 1.25rem;
}

.profile-connect-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-page .profile-social-icons a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.profile-page .profile-social-icons a:hover {
    color: #fff;
}

.profile-page .profile-social-icons a[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.profile-page .profile-social-icons a[aria-label="Instagram"]:hover {
    background: #e4405f;
    border-color: #e4405f;
}

.profile-page .profile-social-icons a[aria-label="TikTok"]:hover {
    background: #0f172a;
    border-color: #0f172a;
}

.profile-block {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-top: 1.25rem;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.profile-block h2,
.profile-block h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.profile-block h2::after,
.profile-block h3::after {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 2px;
    background: var(--primary);
}

.profile-prose,
.profile-prose.section-content {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.profile-prose p {
    margin: 0 0 0.85rem;
}

.profile-prose p:last-child {
    margin-bottom: 0;
}

.profile-block-title {
    margin-bottom: 1rem;
}

.profile-block-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.profile-block-title h2::after {
    display: none;
}

.profile-block-title p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Visi & Misi — satu panel, misi 3+2 */
.profile-vm {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.profile-vm-visi {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.profile-vm > .profile-vm-visi:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.profile-vm-label {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.profile-vm-label::after {
    content: "";
    display: block;
    width: 1.75rem;
    height: 2px;
    margin-top: 0.45rem;
    border-radius: 1px;
    background: var(--primary);
}

.profile-vm-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.profile-empty-hint {
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.profile-empty-hint a {
    color: var(--primary);
    font-weight: 600;
}

.profile-misi-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.profile-misi-item {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-md);
    min-height: 100%;
}

.profile-misi-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.profile-misi-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.profile-misi-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.profile-misi-item p {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-misi-group {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--surface-muted, #f8fafc);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.admin-misi-group .admin-section-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.admin-field-hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.admin-misi-group label[for^="misi_"] {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.admin-misi-group textarea {
    margin-bottom: 0.25rem;
}

.profile-summary-section {
    padding: 3rem max(1.25rem, calc((100% - 1120px) / 2));
}

.profile-summary-section .section-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.profile-summary-section h2,
.vision-card h3,
.section-box h2 {
    margin-bottom: 1rem;
    font-size: 1.85rem;
    color: var(--primary);
}

.profile-summary-section .section-content,
.contact-content {
    color: var(--text-secondary);
    line-height: 1.9;
}

.profile-section {
    padding: 2rem max(1.25rem, calc((100% - 1120px) / 2));
}

.contact-box {
    border-radius: var(--radius-xl);
}

.contact-content p {
    margin-bottom: 0.9rem;
}

.contact-content a {
    color: var(--primary);
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .profile-page {
        padding: 1.25rem 1rem 2.5rem;
    }

    .profile-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    .profile-photo {
        max-width: 200px;
        margin-inline: auto;
    }

    .profile-facts {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .profile-connect {
        text-align: center;
    }

    .profile-page .profile-social-icons {
        justify-content: center;
    }

    .profile-misi-list {
        grid-template-columns: 1fr;
    }

    .profile-misi-item,
    .profile-misi-item:nth-child(4),
    .profile-misi-item:nth-child(5) {
        grid-column: 1 / -1;
    }

    .profile-block {
        padding: 1.35rem 1.25rem;
    }

    .profile-vm {
        padding: 1.35rem 1.25rem;
    }
}

@media (min-width: 521px) and (max-width: 900px) {
    .profile-misi-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-misi-item,
    .profile-misi-item:nth-child(4),
    .profile-misi-item:nth-child(5) {
        grid-column: auto;
    }

    .profile-misi-item:nth-child(5) {
        grid-column: 1 / -1;
    }
}
