/* ============================================
   ARTIKEL PORTAL - MODERN UX REDESIGN
============================================ */

:root {
    --hc-navy: #001f49;
    --hc-sky: #00aeef;
    --hc-navy-light: #002d6b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-soft: #e2e8f0;
    --radius-sharp: 4px;
}

.artikel-portal, .artikel-detail-portal {
    background: #fff;
    color: var(--text-main);
}

/* ============================================
   HERO PORTAL
============================================ */
.artikel-hero {
    background: var(--hc-navy);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.artikel-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.1));
}

.hero-portal-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.breadcrumb-portal {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 15px;
    margin-bottom: 20px;
}

.breadcrumb-portal a, .breadcrumb-portal li {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.breadcrumb-portal li.active {
    color: var(--hc-sky);
}

.portal-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.portal-title span {
    color: var(--hc-sky);
}

.portal-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.portal-search-box {
    background: #fff;
    padding: 8px;
    border-radius: var(--radius-sharp);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-input-group i {
    color: var(--text-muted);
    margin-right: 12px;
}

.search-input-group input {
    border: none;
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    outline: none;
}

.btn-portal-search {
    background: var(--hc-sky);
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-portal-search:hover {
    background: #0099cc;
}

/* ============================================
   CATEGORY NAVIGATION
============================================ */
.category-nav-wrapper {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 15px 0;
    z-index: 1000;
}

.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.category-pills::-webkit-scrollbar { display: none; }

.pill-item {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.pill-item:hover {
    background: #f1f5f9;
    color: var(--hc-navy);
}

.pill-item.active {
    background: var(--hc-navy);
    color: #fff;
    border-color: var(--hc-navy);
}

/* ============================================
   ARTICLE CARDS
============================================ */
.portal-card {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 30px;
    height: 100%;
}

.card-img-wrapper {
    position: relative;
    border-radius: var(--radius-sharp);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portal-card:hover img { transform: scale(1.05); }

.card-cat {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--hc-sky);
    color: #fff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 2px;
}

.card-meta-top {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 3px; height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
}

.card-title-portal {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.card-title-portal a {
    color: var(--hc-navy);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title-portal a:hover { color: var(--hc-sky); }

.card-excerpt-portal {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   FEATURED PORTAL
============================================ */
.featured-portal-card {
    position: relative;
    border-radius: var(--radius-sharp);
    overflow: hidden;
}

.featured-img-container {
    position: relative;
    aspect-ratio: 21/9;
    min-height: 350px;
}

.featured-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,31,73,0.9), transparent);
    color: #fff;
}

.feat-badge {
    background: var(--hc-sky);
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.feat-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    max-width: 80%;
}

.feat-meta {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   SIDEBAR PORTAL
============================================ */
.widget-title-portal {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hc-navy);
    margin-bottom: 25px;
    position: relative;
}

.trending-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    transition: transform 0.2s;
}

.trending-item:hover { transform: translateX(5px); }

.trending-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border-soft);
    line-height: 1;
    min-width: 32px;
    text-align: left;
}

.trending-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hc-navy);
    margin-bottom: 5px;
}

.trending-cat {
    font-size: 11px;
    color: var(--hc-sky);
    font-weight: 700;
    text-transform: uppercase;
}

.newsletter-portal {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-sharp);
}

.btn-portal-action {
    background: var(--hc-navy);
    color: #fff;
    font-weight: 700;
    padding: 12px;
}

/* ============================================
   DETAIL PORTAL
============================================ */
.detail-nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
}

.breadcrumb-detail {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 15px;
}

.breadcrumb-detail a, .breadcrumb-detail li {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-detail li.active { color: var(--hc-sky); }
.breadcrumb-detail li:not(:last-child)::after { content: "/"; margin-left: 15px; color: #cbd5e1; }

.back-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--hc-navy);
    text-decoration: none;
}

.detail-cat-label {
    color: var(--hc-sky);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.detail-main-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--hc-navy);
    line-height: 1.2;
    margin-bottom: 30px;
}

.detail-author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.author-img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--hc-navy);
}

.post-date {
    font-size: 13px;
    color: var(--text-muted);
}

.main-img {
    border-radius: var(--radius-sharp);
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.detail-text-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.detail-quote {
    border-left: 4px solid var(--hc-sky);
    padding: 20px 30px;
    background: var(--bg-light);
    font-style: italic;
    font-size: 1.35rem;
    margin: 40px 0;
    color: var(--hc-navy);
}

.portal-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 4px;
    margin-right: 5px;
}

.share-icon {
    width: 35px; height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--hc-navy);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.share-icon:hover { background: var(--hc-sky); color: #fff; }

/* ============================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
============================================ */
@media (max-width: 991px) {
    .featured-img-container { min-height: 250px; }
    .feat-title { font-size: 1.5rem; max-width: 100%; }
    .detail-main-title { font-size: 2rem; }
    .detail-sidebar-portal { margin-top: 40px; }
}

@media (max-width: 767px) {
    .artikel-hero { padding: 40px 0; }
    .portal-search-box { margin-bottom: 20px; padding: 5px; }
    .btn-portal-search { padding: 10px 15px; font-size: 14px; }

    .category-nav-wrapper { padding: 10px 0; }
    .pill-item { padding: 6px 15px; font-size: 12px; }

    .featured-img-container { min-height: 200px; aspect-ratio: 16/9; }
    .featured-overlay { padding: 20px; }
    .feat-title { font-size: 1.25rem; margin-bottom: 8px; }
    .feat-badge { margin-bottom: 8px; }

    .portal-card { padding-bottom: 20px; margin-bottom: 20px; }
    .card-title-portal { font-size: 1.15rem; }

    .detail-main-title { font-size: 1.75rem; margin-bottom: 20px; }
    .detail-author-meta { gap: 10px; margin-bottom: 25px; }
    .detail-text-body { font-size: 1.05rem; }
    .detail-quote { font-size: 1.15rem; padding: 15px 20px; margin: 30px 0; }

    .detail-nav-bar .back-link span { display: none; } /* Hide text, keep arrow if needed */
}

@media (max-width: 480px) {
    .portal-title { font-size: 2rem; }
    .portal-subtitle { font-size: 1rem; margin-bottom: 25px; }
    .card-meta-top { font-size: 11px; }
    .trending-num { font-size: 1.2rem; }
    .trending-info h5 { font-size: 0.85rem; }
}
