/* Modern phone directory experience */
.phone-directory-page { color: #102d28; background: #f4faf8; }
.phone-directory-page .container { max-width: 1280px; }
.phone-directory-page [hidden] { display: none !important; }

.phone-directory-page .page-header {
    margin: 0;
    padding: 50px 0 94px;
    text-align: left;
    background:
        radial-gradient(circle at 88% 0,rgba(82,224,184,.20),transparent 32%),
        radial-gradient(rgba(255,255,255,.12) 1.4px,transparent 1.4px) 0 0/25px 25px,
        linear-gradient(120deg,#043b32 0%,#076350 58%,#087d63 100%);
    box-shadow: none;
}
.phone-directory-page .page-header::before { left: auto; right: 29%; bottom: -175px; width: 420px; height: 420px; border-width: 70px; }
.phone-directory-page .page-header-inner { display: grid; grid-template-columns: minmax(0,1fr) 350px; align-items: center; gap: 55px; }
.phone-directory-page .breadcrumb { margin: 0 0 25px; display: flex; align-items: center; gap: 9px; color: #a9d8cd; font-size: 11px; }
.phone-directory-page .breadcrumb i { font-size: 8px; opacity: .65; }
.phone-directory-page .breadcrumb a { color: #dff7f0; }
.phone-directory-page .page-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 11px; color: #91ecd2; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.phone-directory-page .page-header h1 { margin: 0; color: #fff; font-size: clamp(35px,4vw,52px); line-height: 1.16; letter-spacing: -.025em; }
.phone-directory-page .page-header h1 span { color: #98efd7; }
.phone-directory-page .page-header p { max-width: 630px; margin: 14px 0 0; color: #d4ebe5; font-size: 15px; line-height: 1.65; }

.phone-directory-page .main-contact-card {
    position: relative; z-index: 2; min-height: 150px; padding: 23px;
    display: grid; grid-template-columns: 56px minmax(0,1fr) 44px; align-items: center; gap: 15px;
    border: 1px solid rgba(255,255,255,.25); border-radius: 25px; color: #fff;
    background: rgba(255,255,255,.11); backdrop-filter: blur(14px); box-shadow: 0 20px 45px rgba(1,34,28,.18);
}
.phone-directory-page .main-contact-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; color: #064e3b; background: #c7fae9; font-size: 21px; }
.phone-directory-page .main-contact-card small { display: block; color: #bceadd; font-size: 10px; }
.phone-directory-page .main-contact-card div > a { display: block; margin: 1px 0 4px; color: #fff; font-size: 27px; font-weight: 700; line-height: 1.25; }
.phone-directory-page .main-contact-card div > span { display: block; color: #d1e9e3; font-size: 10px; }
.phone-directory-page .main-contact-card div > span i { margin-right: 4px; }
.phone-directory-page .main-contact-call { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: #e4572e; box-shadow: 0 9px 20px rgba(184,55,22,.28); transition: .2s; }
.phone-directory-page .main-contact-call:hover { color: #fff; transform: translateY(-2px) rotate(-4deg); }

.phone-directory-page .directory-wrapper { margin-bottom: 80px; }
.phone-directory-page .search-container {
    max-width: none; margin: -58px auto 42px; padding: 22px 24px 20px; border: 1px solid rgba(8,116,91,.12);
    border-radius: 26px; background: rgba(255,255,255,.97); box-shadow: 0 22px 52px rgba(6,78,59,.14); backdrop-filter: blur(14px);
}
.phone-directory-page .search-heading { margin-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.phone-directory-page .search-heading span { display: block; color: #073c32; font-size: 16px; font-weight: 600; }
.phone-directory-page .search-heading small { display: block; margin-top: 2px; color: #718a84; font-size: 11px; }
.phone-directory-page .search-heading strong { color: #08745b; font-size: 12px; font-weight: 600; }
.phone-directory-page .search-box { min-height: 58px; padding: 0 10px 0 18px; display: grid; grid-template-columns: 26px minmax(0,1fr) 40px; align-items: center; border: 1px solid #d6e8e3; border-radius: 17px; background: #f3f9f7; }
.phone-directory-page .search-box:focus-within { border-color: #58cbb0; box-shadow: 0 0 0 4px rgba(26,195,151,.10); }
.phone-directory-page .search-box > i { margin: 0; color: #6f9a90; font-size: 17px; }
.phone-directory-page .search-box input { padding: 15px 8px; font-size: 15px; }
.phone-directory-page .search-box button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #66837c; background: #e4efec; cursor: pointer; opacity: 0; pointer-events: none; transform: scale(.85); transition: .2s; }
.phone-directory-page .search-box button.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.phone-directory-page .category-jump { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.phone-directory-page .category-jump a { min-height: 36px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dcebe7; border-radius: 999px; color: #42675f; background: #fff; font-size: 11px; font-weight: 500; transition: .2s; }
.phone-directory-page .category-jump a:hover { color: #07644f; border-color: #98ddcd; background: #eaf9f4; transform: translateY(-1px); }

.phone-directory-page .directory-intro { margin: 0 0 24px; padding: 0 3px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.phone-directory-page .directory-intro span { color: #e4572e; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.phone-directory-page .directory-intro h2 { margin: 2px 0 0; color: #073c32; font-size: 30px; line-height: 1.25; }
.phone-directory-page .directory-intro p { max-width: 490px; margin: 0; padding: 10px 13px; border-radius: 13px; color: #5a756e; background: #eaf5f2; font-size: 11px; }
.phone-directory-page .directory-intro p i { margin-right: 5px; color: #0b8b6d; }

.phone-directory-page .category-group { --group-color:#0b8b6d; --group-tint:#e8f8f3; margin: 0 0 34px; scroll-margin-top: 110px; }
.phone-directory-page .category-emergency { --group-color:#e23e3e; --group-tint:#fff0f0; }
.phone-directory-page .category-ipd { --group-color:#3477b8; --group-tint:#edf5ff; }
.phone-directory-page .category-support { --group-color:#7453b4; --group-tint:#f4efff; }
.phone-directory-page .category-title { margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 0; color: #0b3029; }
.phone-directory-page .category-title::after { content: ''; grid-column: 2/4; align-self: start; height: 1px; margin-top: 10px; background: linear-gradient(90deg,var(--group-color),transparent); opacity: .32; }
.phone-directory-page .category-icon { grid-row: 1/3; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: var(--group-color); background: var(--group-tint); font-size: 18px; }
.phone-directory-page .category-title > span:nth-child(2) { display: block; font-size: 19px; line-height: 1.25; }
.phone-directory-page .category-title small { display: block; margin-bottom: 3px; color: var(--group-color); font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.phone-directory-page .category-count { align-self: center; padding: 6px 10px; border-radius: 999px; color: var(--group-color); background: var(--group-tint); font-size: 10px; font-weight: 600; }

.phone-directory-page .phone-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.phone-directory-page .phone-card {
    position: relative; min-width: 0; min-height: 102px; padding: 14px; display: grid; grid-template-columns: 44px minmax(0,1fr) 36px;
    align-items: center; gap: 11px; border: 1px solid #dcebe7; border-radius: 17px; background: #fff;
    box-shadow: 0 9px 24px rgba(6,78,59,.06); transition: .22s ease;
}
.phone-directory-page .phone-card::before { content: ''; position: absolute; left: -1px; top: 20px; bottom: 20px; width: 3px; border-radius: 0 999px 999px 0; background: var(--group-color); opacity: 0; transition: .2s; }
.phone-directory-page .phone-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--group-color) 32%,#dcebe7); box-shadow: 0 18px 36px rgba(6,78,59,.11); }
.phone-directory-page .phone-card:hover::before { opacity: 1; }
.phone-directory-page .icon-wrap,
.phone-directory-page .icon-wrap.bg-red,
.phone-directory-page .icon-wrap.bg-blue { width: 44px; height: 44px; border-radius: 13px; color: var(--group-color); background: var(--group-tint); font-size: 16px; }
.phone-directory-page .info-wrap { min-width: 0; }
.phone-directory-page .dept-name { margin: 0 0 5px; color: #163a33; font-size: 13px; line-height: 1.35; }
.phone-directory-page .phone-number { margin: 0; flex-wrap: wrap; gap: 5px; color: var(--group-color); font-size: 20px; line-height: 1.15; letter-spacing: 0; }
.phone-directory-page .phone-number a { color: var(--group-color); }
.phone-directory-page .ext-badge { padding: 4px 7px; border-radius: 7px; color: #667e78; background: #edf4f2; font-size: 9px; white-space: nowrap; }
.phone-directory-page .card-action { align-self: center; width: 36px; min-width: 36px; min-height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0; border: 0; border-radius: 11px; color: #08745b; background: #e8f8f3; font-family: inherit; font-size: 10px; font-weight: 500; cursor: pointer; transition: .2s; }
.phone-directory-page .card-action span { display: none; }
.phone-directory-page .card-action.is-call { color: #fff; background: #e23e3e; }
.phone-directory-page .card-action:hover { color: #fff; background: #08745b; transform: translateY(-2px); }
.phone-directory-page .card-action.is-call:hover { background: #c92e2e; }

.phone-directory-page .no-results { padding: 54px 24px; border: 1px dashed #b8d4cd; border-radius: 24px; background: #fff; }
.phone-directory-page .no-results-icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; color: #7d9a93; background: #edf5f3; font-size: 23px; }
.phone-directory-page .no-results h3 { margin: 0 0 5px; color: #173a33; }
.phone-directory-page .no-results p { margin: 0; }
.phone-directory-page .no-results button { margin-top: 16px; padding: 10px 15px; border: 0; border-radius: 999px; color: #fff; background: #08745b; font: 500 12px 'Kanit',sans-serif; cursor: pointer; }
.phone-directory-page .copy-notice { position: fixed; z-index: 9999; left: 50%; bottom: 28px; padding: 11px 16px; display: flex; align-items: center; gap: 8px; border-radius: 999px; color: #fff; background: #073c32; box-shadow: 0 14px 36px rgba(0,0,0,.22); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: .25s; }
.phone-directory-page .copy-notice.is-visible { opacity: 1; transform: translate(-50%,0); }
.phone-directory-page .copy-notice i { color: #74e7c4; }

@media (max-width: 1180px) {
    .phone-directory-page .page-header-inner { grid-template-columns: minmax(0,1fr) 310px; gap: 30px; }
    .phone-directory-page .phone-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .phone-directory-page .phone-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .phone-directory-page .page-header { padding: 32px 0 82px; }
    .phone-directory-page .page-header-inner { grid-template-columns: 1fr; gap: 25px; }
    .phone-directory-page .page-header h1 { font-size: 34px; }
    .phone-directory-page .main-contact-card { min-height: 124px; }
    .phone-directory-page .search-container { margin-top: -48px; padding: 18px 15px 16px; border-radius: 21px; }
    .phone-directory-page .search-heading { align-items: center; }
    .phone-directory-page .category-jump { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .phone-directory-page .category-jump a { justify-content: center; text-align: center; }
    .phone-directory-page .directory-intro { display: block; }
    .phone-directory-page .directory-intro p { max-width: none; margin-top: 13px; }
    .phone-directory-page .phone-grid { grid-template-columns: 1fr; }
    .phone-directory-page .phone-card { min-height: 94px; padding: 13px; }
}

@media (max-width: 430px) {
    .phone-directory-page .container { padding-inline: 14px; }
    .phone-directory-page .page-header h1 { font-size: 31px; }
    .phone-directory-page .page-header p { font-size: 13px; }
    .phone-directory-page .main-contact-card { grid-template-columns: 50px minmax(0,1fr) 40px; padding: 17px; gap: 11px; }
    .phone-directory-page .main-contact-icon { width: 50px; height: 50px; }
    .phone-directory-page .main-contact-card div > a { font-size: 22px; }
    .phone-directory-page .search-heading small { display: none; }
    .phone-directory-page .directory-intro h2 { font-size: 25px; }
    .phone-directory-page .category-title { grid-template-columns: 46px minmax(0,1fr) auto; gap: 10px; }
    .phone-directory-page .category-icon { width: 46px; height: 46px; }
    .phone-directory-page .category-title > span:nth-child(2) { font-size: 17px; }
    .phone-directory-page .phone-card { grid-template-columns: 42px minmax(0,1fr) 34px; gap: 10px; }
    .phone-directory-page .icon-wrap,
    .phone-directory-page .icon-wrap.bg-red,
    .phone-directory-page .icon-wrap.bg-blue { width: 42px; height: 42px; }
    .phone-directory-page .dept-name { font-size: 13px; }
    .phone-directory-page .phone-number { font-size: 19px; }
    .phone-directory-page .card-action { min-width: 34px; width: 34px; min-height: 34px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .phone-directory-page .phone-card,
    .phone-directory-page .card-action,
    .phone-directory-page .copy-notice { transition: none; }
}
