/* ==========================================================================
   SUSUNAN INFO FOOTER PROFESIONAL (INDEX.PHP)
   ========================================================================== */
.portal-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: stretch;
}

.bottom-grid-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(2, 6, 23, 0.75) 100%);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bottom-grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 184, 87, 0.32);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.bottom-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.bottom-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(226, 184, 87, 0.12);
    border: 1px solid rgba(226, 184, 87, 0.22);
    color: var(--accent-gold, #e2b857);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottom-grid-title {
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Pratinjau 3 Baris Kemas Tanpa Pecah Tag */
.bottom-grid-excerpt {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.88rem;
    line-height: 1.65;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 18px 0;
}

/* Susunan Hubungi Kami Penuh */
.bottom-contact-body {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 400;
    white-space: pre-line;
}

.bottom-grid-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(226, 184, 87, 0.12);
    color: var(--accent-gold, #e2b857);
    border: 1px solid rgba(226, 184, 87, 0.25);
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-read-more:hover {
    background: var(--accent-gold, #e2b857);
    color: #020617;
    box-shadow: 0 4px 14px rgba(226, 184, 87, 0.25);
}

.btn-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-read-more:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   MODAL BACAAN PENUH PROFESIONAL (SOKONG FORMAT TINYMCE)
   ========================================================================== */
.portal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.portal-modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.22s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.portal-modal-box {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(226, 184, 87, 0.28);
    border-radius: 22px;
    max-width: 680px;
    width: 100%;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.portal-modal-header {
    padding: 20px 26px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.modal-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold, #e2b857);
    margin-bottom: 4px;
}

.portal-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.portal-modal-body {
    padding: 26px;
    color: #e2e8f0;
    font-size: 0.96rem;
    line-height: 1.8;
    overflow-y: auto;
}

/* Tipografi & Elemen Rich Text TinyMCE di dalam Modal */
.rich-text-view h1 { font-size: 1.45rem; color: #ffffff; margin: 14px 0 8px; }
.rich-text-view h2 { font-size: 1.25rem; color: #e2b857; margin: 14px 0 8px; }
.rich-text-view h3 { font-size: 1.08rem; color: #f1f5f9; margin: 12px 0 6px; }
.rich-text-view p { margin-bottom: 14px; }
.rich-text-view ul, .rich-text-view ol { padding-left: 24px; margin: 12px 0; }
.rich-text-view li { margin-bottom: 6px; }
.rich-text-view blockquote {
    border-left: 3px solid #e2b857;
    background: rgba(226, 184, 87, 0.05);
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    margin: 14px 0;
    color: #cbd5e1;
    font-style: italic;
}
.rich-text-view a { color: #e2b857; text-decoration: underline; }
.rich-text-view table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.88rem;
}
.rich-text-view table th, .rich-text-view table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    text-align: left;
}
.rich-text-view table th {
    background: rgba(226, 184, 87, 0.1);
    color: #e2b857;
}

.portal-modal-footer {
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
}

.btn-modal-done {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-done:hover {
    background: var(--accent-gold, #e2b857);
    color: #020617;
    border-color: var(--accent-gold, #e2b857);
}
