/* Gaya halaman Tentang Kami (dipindahkan daripada nws.mysverse.workers.dev), dipadankan dengan warna jenama NWS. */
:root {
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.08);
  --text-main: #f4f7ff;
  --text-sub: #9fb0d0;
  --accent-blue: #7aa2ff;
  --accent-blue-bg: #1641bf;
}
.page-container { max-width: 1000px; margin: 0 auto; padding: clamp(112px, 15vw, 148px) var(--gutter) 80px; }
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 32px; }
.subnav a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 0.9rem; background: var(--surface); transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.subnav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.subnav a.active { color: #fff; background: rgba(var(--brand-rgb), 0.55); border-color: rgba(var(--accent-rgb), 0.55); }
.page-container h1, .page-container h2, .page-container h3 { letter-spacing: -0.02em; }
.page-container .info-panel h1, .page-container .history-header h1 { font-weight: 800; }

/* ---- Komponen disalin daripada laman asal ---- */
.animated-item{ opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.animated-item.is-visible{ opacity: 1; transform: translateY(0); }
@keyframes softPulse{ 0% { opacity: 0.85; } 50% { opacity: 1; } 100% { opacity: 0.85; } }
.info-panel{ background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 1.8rem; margin-top: 1rem; }
.info-panel h1{ font-size: 1.6rem; margin-bottom: 1rem; color: var(--text-main); }
.info-panel p{ color: var(--text-sub); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.history-header{ text-align: center; margin-bottom: 2.5rem; }
.history-header h1{ font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.history-header p{ color: var(--text-sub); font-size: 0.98rem; max-width: 650px; margin: 0 auto; }
.history-timeline{ position: relative; max-width: 850px; margin: 0 auto; padding: 10px 0; }
.history-timeline::before{ content: ''; position: absolute; top: 0; bottom: 0; left: 20px; width: 2px; background: linear-gradient(180deg, rgba(122, 162, 255, 0.5), rgba(255, 255, 255, 0.1), transparent); }
.timeline-item{ position: relative; padding-left: 55px; margin-bottom: 2rem; }
.timeline-item:last-child{ margin-bottom: 0; }
.timeline-dot{ position: absolute; left: 14px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-dark); border: 2px solid var(--accent-blue); z-index: 2; }
.timeline-content{ background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 1.5rem; backdrop-filter: blur(10px); transition: all 0.25s ease; }
.timeline-content:hover{ border-color: rgba(255, 255, 255, 0.2); background: var(--card-hover); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); }
.timeline-date{ display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; color: #7aa2ff; background: rgba(122, 162, 255, 0.12); border: 1px solid rgba(122, 162, 255, 0.35); padding: 3px 12px; border-radius: 6px; margin-bottom: 12px; box-shadow: 0 0 10px rgba(122, 162, 255, 0.15); }
.timeline-title{ font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.timeline-body{ color: var(--text-sub); font-size: 0.92rem; line-height: 1.65; }
.timeline-body p{ margin-bottom: 10px; }
.timeline-body p:last-child{ margin-bottom: 0; }
.ops-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.ops-card{ background: rgba(255, 255, 255, 0.02); border: 1px solid var(--card-border); border-radius: 8px; padding: 12px 14px; font-size: 0.88rem; }
.ops-card-title{ font-weight: 700; color: var(--text-main); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.official-badge-banner{ border-color: rgba(122, 162, 255, 0.3); background: rgba(30, 58, 138, 0.15); }
@media (max-width: 768px){.history-header h1{ font-size: 1.6rem; }.timeline-item{ padding-left: 42px; }.history-timeline::before{ left: 12px; }.timeline-dot{ left: 6px; width: 12px; height: 12px; }}
.nws-directory-container{ max-width: 1100px; margin: 0 auto 40px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.nws-directory-header{ text-align: center; margin-bottom: 35px; }
.nws-directory-header h2{ font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.nws-directory-header p{ color: var(--text-sub); font-size: 1rem; margin: 0; }
.nws-chart-diagram-box{ background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; margin-bottom: 40px; text-align: center; backdrop-filter: blur(8px); }
.nws-chart-diagram-img{ max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.nws-section{ margin-bottom: 35px; }
.nws-section-header{ display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--card-border); }
.nws-section-header.top-leadership{ border-bottom-color: #2f63ee; }
.nws-section-header.admin-board{ border-bottom-color: #1f4fd6; }
.nws-section-header.sub-departments{ border-bottom-color: #0d9488; }
.nws-section-header h3{ font-size: 1.2rem; font-weight: 800; color: var(--text-main); margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.nws-section-header span{ font-size: 0.85rem; color: var(--text-sub); margin-left: 10px; font-weight: 400; font-style: italic; }
.nws-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nws-grid-center{ display: flex; justify-content: center; width: 100%; }
.nws-grid-center .nws-card{ width: 100%; max-width: 340px; }
@media (max-width: 900px){.nws-grid{ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }.nws-subsector-block{ padding: 15px; }}
.nws-card{ background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 22px 20px 18px; transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; justify-content: space-between; text-align: center; cursor: pointer; position: relative; backdrop-filter: blur(10px); }
.nws-card:hover{ background: var(--card-hover); border-color: rgba(122, 162, 255, 0.4); box-shadow: 0 8px 25px rgba(0,0,0,0.5); transform: translateY(-4px) !important; }
.nws-card-hint{ font-size: 0.75rem; color: var(--text-sub); margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.1); font-weight: 600; letter-spacing: 0.3px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.25s ease; }
.nws-card:hover .nws-card-hint{ color: #7aa2ff; border-top-color: rgba(122, 162, 255, 0.3); }
.nws-card-hint i{ font-size: 0.8rem; }
.nws-avatar-wrapper{ position: relative; width: 86px; height: 86px; margin: 0 auto 14px; }
.nws-avatar{ width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #7aa2ff; background-color: #0f172a; box-shadow: 0 0 15px rgba(122, 162, 255, 0.25); }
.top-leadership .nws-avatar{ border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }
.admin-board .nws-avatar{ border-color: #7aa2ff; box-shadow: 0 0 15px rgba(122, 162, 255, 0.3); }
.sub-departments .nws-avatar{ border-color: #2dd4bf; box-shadow: 0 0 15px rgba(45, 212, 191, 0.3); }
.nws-role-group{ margin-bottom: 8px; }
.nws-role-ms{ font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #7aa2ff; line-height: 1.25; }
.nws-role-en{ font-size: 0.78rem; font-weight: 500; color: var(--text-sub); margin-top: 3px; font-style: italic; }
.nws-name{ font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; line-height: 1.35; }
.nws-badge-container{ margin-top: 6px; margin-bottom: 10px; display: block; }
.nws-badge-acting{ display: inline-block; background-color: rgba(217, 119, 6, 0.25); color: #f59e0b; font-size: 0.68rem; font-weight: 800; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.4px; border: 1px solid rgba(245, 158, 11, 0.4); }
.nws-contact-info{ border-top: 1px solid var(--card-border); padding-top: 14px; font-size: 0.88rem; text-align: left; }
.nws-contact-item{ display: flex; align-items: center; margin-bottom: 8px; color: var(--text-sub); word-break: break-all; }
.nws-contact-item:last-child{ margin-bottom: 0; }
.nws-icon{ width: 18px; height: 18px; margin-right: 10px; flex-shrink: 0; fill: var(--text-sub); }
.nws-contact-item a{ color: #7aa2ff; text-decoration: none; position: relative; z-index: 2; }
.nws-contact-item a:hover{ text-decoration: underline; }
.nws-subsector-block{ background: rgba(255, 255, 255, 0.015); border: 1px solid var(--card-border); border-radius: 12px; padding: 24px; }
.nws-modal-overlay{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; background: rgba(4, 9, 22, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: none; justify-content: center; align-items: center; z-index: 2147483647; padding: 20px; box-sizing: border-box; opacity: 0; transition: opacity 0.25s ease; }
.nws-modal-overlay.show{ display: flex; }
.nws-modal-overlay.active{ opacity: 1; }
.nws-modal-content{ background: #0a1530; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; width: 100%; max-width: 480px; padding: 30px 20px 25px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9); position: relative; text-align: center; box-sizing: border-box; color: var(--text-main); max-height: 85vh; overflow-y: auto; margin: auto; transform: scale(0.88) translateY(15px); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nws-modal-overlay.active .nws-modal-content{ transform: scale(1) translateY(0); }
.nws-modal-close{ position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--card-border); font-size: 18px; font-weight: bold; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; z-index: 10; }
.nws-modal-close:hover{ background: rgba(255, 255, 255, 0.25); transform: scale(1.08); }
.nws-modal-avatar-wrapper{ width: 100px; height: 100px; margin: 0 auto 15px; }
.nws-modal-avatar{ width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #7aa2ff; box-shadow: 0 0 25px rgba(122, 162, 255, 0.3); }
.nws-modal-role-ms{ font-size: 0.95rem; font-weight: 800; text-transform: uppercase; color: #7aa2ff; letter-spacing: 0.5px; line-height: 1.3; }
.nws-modal-role-en{ font-size: 0.82rem; font-weight: 500; color: var(--text-sub); margin-top: 4px; font-style: italic; }
.nws-modal-name{ font-size: 1.2rem; font-weight: 800; color: #ffffff; margin: 12px 0 6px; line-height: 1.3; }
.nws-modal-contact-box{ background: rgba(255, 255, 255, 0.03); border: 1px solid var(--card-border); border-radius: 10px; padding: 15px; text-align: left; font-size: 0.88rem; margin-top: 14px; }
