/* Directory-only styling in the original orange, black and white palette. */
.directory-page { background: #fff; color: #1a1a1a; }
.directory-page .page-header { padding: 30px 0 26px; background: linear-gradient(120deg, #1a1a1a, #302318); }
.directory-eyebrow { color: #ffad68; font-size: .7rem; letter-spacing: .14em; font-weight: 600; }
.directory-page .page-header h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; margin: 10px 0 !important; }
.directory-page .page-header h1 span { color: #FF8218; }
.directory-page .page-header .lead { color: #ddd; font-size: .95rem; margin-bottom: 14px; }
.directory-page .breadcrumb { font-size: .78rem; margin-bottom: 0; }
.directory-page .alert-light { background: #fff7ef; border-color: #ffdfc3 !important; color: #78502d; border-radius: 10px; padding: 14px 20px; line-height: 1.7; margin-bottom: 0; }
.directory-toolbar { background: #fafafa; border: 1px solid #e9e9e9; padding: 18px 22px; border-radius: 12px; }
.directory-toolbar strong { font-size: .95rem; }
.directory-toolbar p { font-size: .8rem; color: #6c757d; margin-top: 4px; }
.directory-page .btn-pelekat { min-height: 44px; padding: 10px 16px; border-radius: 9px; font-size: .85rem; }
.directory-page .dropdown-menu { border: 1px solid #eee; border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px #00000012; max-width: calc(100vw - 32px); }
.directory-page .dropdown-item { white-space: normal; padding: 10px 12px; border-radius: 6px; font-size: .85rem; }
.directory-page .dropdown-item.active { background: #1a1a1a; color: #fff; }
.directory-page section.py-5 { padding-top: 44px !important; padding-bottom: 40px !important; }
.directory-page .section-title.mb-5 { margin-bottom: 28px !important; }
.directory-page .section-title h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.035em; }
.directory-page .section-title h2::after { width: 44px; height: 3px; }
.directory-page .section-title p { font-size: .9rem; }
.directory-page .card-pelekat { border: 1px solid #e9e9e9; border-radius: 15px; box-shadow: none; overflow: hidden; background: #fff; }
.directory-page .card-pelekat:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #00000008; }
.directory-page .card-body { padding: 22px !important; }
.directory-page [data-category="Senarai Ahli"] .card-pelekat { border-top: 3px solid #ffbc85; }
.directory-page .member-avatar { display: grid; place-items: center; width: 62px !important; height: 62px !important; margin-left: auto; margin-right: auto; font-size: 1.1rem !important; background: #fff1e5 !important; color: #a84800; border: 1px solid #ffd0aa !important; border-radius: 16px; }
.directory-page .card-body h6 { font-size: .95rem; line-height: 1.5; }
.directory-page .card-body p { line-height: 1.7; }
.directory-page .badge { border-radius: 6px; padding: 6px 9px; font-weight: 600; font-size: .65rem; white-space: normal; line-height: 1.5; }
.directory-page [data-category="Senarai Ahli"] .badge { background: #fff1e5 !important; color: #91420c !important; }
.directory-page #lokasi .col-lg-9 { width: 100%; }
.directory-page #lokasi .row.g-3 > .col-md-6 { width: 25%; }
.directory-page #lokasi .card-body { flex-wrap: wrap; gap: 12px; padding: 18px !important; }
.directory-page #lokasi .fw-bold { font-size: .86rem; }
.directory-page #lokasi .badge { background: #fff1e5 !important; color: #91420c; }
.directory-page #pensijilan .card-body > div { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.5rem !important; border-radius: 12px; color: #e67316 !important; background: #fff1e5; }
.directory-page #pensijilan .badge { background: #1a1a1a !important; }
.directory-page #pensijilan .card-body p { font-size: .85rem; }
.directory-page a:focus-visible, .directory-page button:focus-visible { outline: 3px solid #FF8218; outline-offset: 3px; }
@media (max-width: 991.98px) {
    .directory-page #lokasi .row.g-3 > .col-md-6 { width: 50%; }
}
@media (max-width: 575.98px) {
    .directory-page .container { padding-left: 16px; padding-right: 16px; }
    .directory-page .page-header { padding: 16px 0; }
    .directory-eyebrow { font-size: .6rem; letter-spacing: .1em; }
    .directory-page .page-header h1 { font-size: 1.7rem; margin: 6px 0 !important; }
    .directory-page .page-header .lead { font-size: .78rem; margin-bottom: 6px; }
    .directory-page .breadcrumb { font-size: .7rem; }
    .directory-page > .container.mt-4 { margin-top: 12px !important; }
    .directory-page .alert-light { padding: 10px 12px; font-size: .72rem !important; text-align: left !important; line-height: 1.6; }
    .directory-toolbar { flex-direction: column; align-items: stretch !important; padding: 12px; gap: 8px !important; }
    .directory-toolbar strong { font-size: .82rem; }
    .directory-toolbar p { font-size: .73rem; margin-top: 2px; }
    .directory-toolbar .btn { width: 100%; text-align: left; font-size: .78rem; white-space: normal; }
    .directory-page section.py-5 { padding-top: 22px !important; padding-bottom: 18px !important; }
    .directory-page .section-title.mb-5 { margin-bottom: 16px !important; }
    .directory-page .section-title h2 { font-size: 1.3rem; margin-bottom: 8px; padding-bottom: 10px; }
    .directory-page .section-title p { font-size: .78rem; margin-bottom: 0; }
    .directory-page .row { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
    .directory-page .row > .mb-4 { margin-bottom: 0 !important; }
    .directory-page [data-category="Senarai Ahli"] .col-lg-3 { width: 50%; }
    .directory-page .card-body { padding: 12px !important; }
    .directory-page .member-avatar { width: 40px !important; height: 40px !important; font-size: .8rem !important; border-radius: 10px; margin-bottom: 8px !important; }
    .directory-page .card-body h6 { font-size: .8rem; line-height: 1.4; margin-bottom: 6px !important; }
    .directory-page [data-category="Senarai Ahli"] .card-body p { font-size: .7rem !important; line-height: 1.5; margin-bottom: 5px !important; overflow-wrap: anywhere; }
    .directory-page .badge { padding: 4px 6px; font-size: .58rem; }
    .directory-page #lokasi .card-body { padding: 12px !important; gap: 6px; }
    .directory-page #lokasi .card-body > .d-flex { align-items: baseline !important; gap: 5px !important; }
    .directory-page #lokasi .fw-bold { font-size: .76rem; }
    .directory-page #lokasi .bi { font-size: .85rem !important; }
    .directory-page #pensijilan .card-body { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 10px; text-align: left !important; }
    .directory-page #pensijilan .card-body > div { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 36px; font-size: 1.2rem !important; margin: 0 !important; }
    .directory-page #pensijilan .badge { grid-column: 2; justify-self: start; margin-bottom: 6px !important; }
    .directory-page #pensijilan .card-body p { grid-column: 2; font-size: .76rem; line-height: 1.55; }
    .directory-page #pensijilan .container > p { font-size: .76rem !important; line-height: 1.6; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .directory-page *, .directory-page *::before, .directory-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
