/*
  Portal Hamlonaghl â€” Final Execution Prototype CSS
  Purpose: implementation-ready visual prototype for WordPress/GeneratePress child theme.
  Direction: Industrial Premium Newsroom, RTL, mobile-first, light/dark-ready.
*/

:root {
  color-scheme: light;
  --ph-color-authority-navy: #071D36;
  --ph-color-deep-blue: #123E68;
  --ph-color-news-blue: #1663B7;
  --ph-color-transport-cyan: #00A3B4;
  --ph-color-signal-orange: #FF9F1C;
  --ph-color-breaking-red: #E4362D;
  --ph-color-text-primary: #101521;
  --ph-color-text-secondary: #667085;
  --ph-color-text-muted: #8A94A6;
  --ph-color-page-bg: #F4F6FA;
  --ph-color-surface: #FFFFFF;
  --ph-color-surface-soft: #EEF3FA;
  --ph-color-surface-warm: #FFF7E8;
  --ph-color-border: #DCE4EF;
  --ph-color-border-strong: #B9C8DA;
  --ph-cat-road: #1663B7;
  --ph-cat-rail: #10A56A;
  --ph-cat-maritime: #00A3B4;
  --ph-cat-aviation: #38BDF8;
  --ph-cat-economy: #FF9F1C;
  --ph-cat-infra: #123E68;
  --ph-cat-infographic: #7C3AED;
  --ph-cat-analysis: #071D36;
  --ph-font-family-base: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
  --ph-text-xs: 12px;
  --ph-text-sm: 13px;
  --ph-text-md: 15px;
  --ph-text-base: 16px;
  --ph-text-article: 18px;
  --ph-text-card-title: 18px;
  --ph-text-section-title: 26px;
  --ph-text-article-title: 42px;
  --ph-text-hero-title: 44px;
  --ph-leading-tight: 1.35;
  --ph-leading-heading: 1.5;
  --ph-leading-card: 1.65;
  --ph-leading-normal: 1.8;
  --ph-leading-article: 2.08;
  --ph-space-1: 4px;
  --ph-space-2: 8px;
  --ph-space-3: 12px;
  --ph-space-4: 16px;
  --ph-space-5: 20px;
  --ph-space-6: 24px;
  --ph-space-8: 32px;
  --ph-space-10: 40px;
  --ph-space-12: 48px;
  --ph-space-16: 64px;
  --ph-radius-sm: 8px;
  --ph-radius-md: 12px;
  --ph-radius-lg: 16px;
  --ph-radius-xl: 20px;
  --ph-radius-2xl: 24px;
  --ph-radius-pill: 999px;
  --ph-shadow-xs: 0 1px 2px rgba(7, 29, 54, 0.06);
  --ph-shadow-sm: 0 6px 16px rgba(7, 29, 54, 0.06);
  --ph-shadow-md: 0 12px 30px rgba(7, 29, 54, 0.08);
  --ph-shadow-lg: 0 20px 48px rgba(7, 29, 54, 0.12);
  --ph-shadow-focus: 0 0 0 3px rgba(255, 159, 28, 0.35);
  --ph-container: 1180px;
  --ph-container-wide: 1240px;
  --ph-gutter: 16px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ph-color-page-bg: #07111F;
  --ph-color-surface: #0D1B2E;
  --ph-color-surface-soft: #10233A;
  --ph-color-surface-warm: #13243A;
  --ph-color-text-primary: #F5F7FA;
  --ph-color-text-secondary: #AAB6C5;
  --ph-color-text-muted: #7F8DA3;
  --ph-color-border: #24364D;
  --ph-color-border-strong: #35506E;
  --ph-color-news-blue: #5EA8FF;
  --ph-color-transport-cyan: #26C6DA;
  --ph-color-signal-orange: #FFB547;
  --ph-color-breaking-red: #FF5A52;
  --ph-shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.22);
  --ph-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.28);
  --ph-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ph-color-page-bg);
  color: var(--ph-color-text-primary);
  font-family: var(--ph-font-family-base);
  font-size: var(--ph-text-base);
  line-height: var(--ph-leading-normal);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ph-color-news-blue); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ph-color-signal-orange);
  outline-offset: 3px;
  box-shadow: var(--ph-shadow-focus);
}
img { max-width: 100%; height: auto; }

.ph-container { width: min(var(--ph-container), calc(100% - (var(--ph-gutter) * 2))); margin-inline: auto; }
.ph-container-wide { width: min(var(--ph-container-wide), calc(100% - (var(--ph-gutter) * 2))); margin-inline: auto; }
.ph-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ph-topbar { background: var(--ph-color-authority-navy); color: #fff; border-bottom: 3px solid var(--ph-color-signal-orange); font-size: var(--ph-text-sm); }
.ph-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: var(--ph-space-4); }
.ph-live-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--ph-color-breaking-red); margin-left: var(--ph-space-2); }
.ph-site-header { background: var(--ph-color-surface); border-bottom: 1px solid var(--ph-color-border); position: sticky; top: 0; z-index: 100; }
.ph-header-main { display: flex; align-items: center; justify-content: space-between; gap: var(--ph-space-4); padding-block: var(--ph-space-4); }
.ph-brand { display: flex; align-items: center; gap: var(--ph-space-3); }
.ph-logo { width: 50px; height: 50px; border-radius: var(--ph-radius-lg); background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-news-blue)); position: relative; box-shadow: var(--ph-shadow-sm); flex: none; }
.ph-logo::after { content: ""; position: absolute; inset: 14px 10px; border-top: 3px solid #fff; border-bottom: 3px solid rgba(255,255,255,.72); transform: skewX(-18deg); }
.ph-brand__title { margin: 0; color: var(--ph-color-authority-navy); font-size: 24px; line-height: 1.25; }
[data-theme="dark"] .ph-brand__title { color: var(--ph-color-text-primary); }
.ph-brand__subtitle { margin: 3px 0 0; color: var(--ph-color-text-secondary); font-size: var(--ph-text-sm); }
.ph-header-actions { display: flex; align-items: center; gap: var(--ph-space-2); }
.ph-pill { min-height: 42px; border: 1px solid var(--ph-color-border); background: var(--ph-color-surface-soft); color: var(--ph-color-deep-blue); border-radius: var(--ph-radius-pill); padding-inline: var(--ph-space-4); display: inline-flex; align-items: center; gap: var(--ph-space-2); font: inherit; }
[data-theme="dark"] .ph-pill { color: var(--ph-color-text-primary); }
.ph-nav { display: flex; gap: var(--ph-space-4); overflow-x: auto; white-space: nowrap; border-top: 1px solid var(--ph-color-border); padding-block: var(--ph-space-3); color: var(--ph-color-deep-blue); font-size: 14px; }
[data-theme="dark"] .ph-nav { color: var(--ph-color-text-secondary); }
.ph-nav a[aria-current="page"] { color: var(--ph-color-news-blue); font-weight: 900; }

.ph-ad { border: 1px dashed #D8A84B; background: var(--ph-color-surface-warm); border-radius: var(--ph-radius-xl); min-height: 90px; display: grid; place-items: center; color: #8A5A00; position: relative; text-align: center; padding: var(--ph-space-4); }
.ph-ad::before { content: "ØªØ¨Ù„ÛŒØºØ§Øª"; position: absolute; top: 8px; right: 12px; font-size: 11px; color: var(--ph-color-text-secondary); }
[data-theme="dark"] .ph-ad { color: var(--ph-color-text-secondary); border-color: var(--ph-color-border-strong); }
.ph-ad--inline { min-height: 250px; margin-block: var(--ph-space-8); }
.ph-ad--vertical { min-height: 500px; }

.ph-section { margin-block: var(--ph-space-10); }
.ph-section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--ph-space-4); margin-bottom: var(--ph-space-4); border-bottom: 3px solid var(--ph-color-authority-navy); padding-bottom: var(--ph-space-3); }
.ph-section__title { margin: 0; color: var(--ph-color-authority-navy); font-size: var(--ph-text-section-title); line-height: var(--ph-leading-heading); }
[data-theme="dark"] .ph-section__title { color: var(--ph-color-text-primary); }
.ph-section__link { color: var(--ph-color-news-blue); font-weight: 800; font-size: var(--ph-text-sm); }

.ph-badge { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; max-width: max-content; min-height: 28px; padding: 2px 11px; border-radius: var(--ph-radius-pill); color: #fff; font-size: var(--ph-text-xs); font-weight: 900; line-height: 1.4; }
.ph-badge--road { background: var(--ph-cat-road); }
.ph-badge--rail { background: var(--ph-cat-rail); }
.ph-badge--maritime { background: var(--ph-cat-maritime); }
.ph-badge--aviation { background: var(--ph-cat-aviation); color: var(--ph-color-authority-navy); }
.ph-badge--economy { background: var(--ph-cat-economy); color: var(--ph-color-authority-navy); }
.ph-badge--analysis { background: var(--ph-cat-analysis); }
.ph-badge--infographic { background: var(--ph-cat-infographic); }
.ph-badge--breaking { background: var(--ph-color-breaking-red); }
/* Prevent parent link hover from changing badge text color */
a:hover .ph-badge,
.ph-card:hover .ph-badge { color: #fff !important; }
a:hover .ph-badge--aviation,
.ph-card:hover .ph-badge--aviation,
a:hover .ph-badge--economy,
.ph-card:hover .ph-badge--economy { color: var(--ph-color-authority-navy) !important; }

.ph-hero-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) 360px; gap: var(--ph-space-5); margin-top: var(--ph-space-5); }
.ph-hero-card, .ph-card, .ph-panel { background: var(--ph-color-surface); border: 1px solid var(--ph-color-border); border-radius: var(--ph-radius-2xl); box-shadow: var(--ph-shadow-md); overflow: hidden; }
.ph-hero-card { box-shadow: var(--ph-shadow-lg); }
.ph-hero-card__media { min-height: 350px; background: linear-gradient(135deg, rgba(7,29,54,.86), rgba(22,99,183,.72)), radial-gradient(circle at 70% 15%, rgba(0,163,180,.35), transparent 35%), linear-gradient(135deg, var(--ph-color-deep-blue), var(--ph-color-authority-navy)); display: grid; align-items: end; padding: var(--ph-space-6); color: #fff; }
.ph-hero-card__body { padding: var(--ph-space-6); }
.ph-hero-card__title { margin: var(--ph-space-3) 0 var(--ph-space-2); color: var(--ph-color-authority-navy); font-size: clamp(30px, 4vw, var(--ph-text-hero-title)); line-height: 1.45; }
[data-theme="dark"] .ph-hero-card__title { color: var(--ph-color-text-primary); }
.ph-hero-card__lead { margin: 0; color: var(--ph-color-text-secondary); font-size: 16px; line-height: 1.95; }
.ph-latest { padding: var(--ph-space-5); }
.ph-latest__title { margin: 0 0 var(--ph-space-2); color: var(--ph-color-authority-navy); font-size: 22px; }
[data-theme="dark"] .ph-latest__title { color: var(--ph-color-text-primary); }
.ph-latest-item { display: grid; grid-template-columns: 34px 1fr; gap: var(--ph-space-2); padding-block: var(--ph-space-3); border-top: 1px solid var(--ph-color-border); }
.ph-latest-item:first-of-type { border-top: 0; }
.ph-latest-item__num { color: var(--ph-color-news-blue); font-weight: 900; }
.ph-latest-item__title { color: var(--ph-color-deep-blue); font-weight: 800; font-size: 14px; line-height: 1.7; }
[data-theme="dark"] .ph-latest-item__title { color: var(--ph-color-text-primary); }
.ph-meta { display: block; color: var(--ph-color-text-secondary); font-size: var(--ph-text-xs); margin-top: var(--ph-space-1); }

.ph-editor-pick { background: linear-gradient(135deg, var(--ph-color-surface-soft), var(--ph-color-surface)); border-right: 5px solid var(--ph-color-signal-orange); padding: var(--ph-space-6); }
.ph-editor-pick__title { margin: var(--ph-space-2) 0; color: var(--ph-color-authority-navy); font-size: 24px; line-height: 1.6; }
[data-theme="dark"] .ph-editor-pick__title { color: var(--ph-color-text-primary); }
.ph-editor-pick__text { margin: 0; color: var(--ph-color-text-secondary); }

.ph-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ph-space-4); }
.ph-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.ph-card:hover { transform: translateY(-2px); box-shadow: var(--ph-shadow-lg); }
.ph-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-news-blue)); display: grid; place-items: center; color: #fff; font-weight: 900; }
.ph-card__media--cyan { background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-transport-cyan)); }
.ph-card__media--green { background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-cat-rail)); }
.ph-card__media--purple { background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-cat-infographic)); position: relative; }
.ph-card__media--no-image { background: linear-gradient(135deg, #EAF2FA, #D7E6F7); color: var(--ph-color-deep-blue); border-bottom: 1px dashed #B7C8DC; }
[data-theme="dark"] .ph-card__media--no-image { background: linear-gradient(135deg, #13243A, #10233A); color: var(--ph-color-text-secondary); border-color: var(--ph-color-border-strong); }
.ph-play { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(7,29,54,.88); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.6); }
.ph-card__body { padding: var(--ph-space-4); }
.ph-card__title { margin: var(--ph-space-2) 0; color: var(--ph-color-authority-navy); font-size: var(--ph-text-card-title); line-height: var(--ph-leading-card); }
[data-theme="dark"] .ph-card__title { color: var(--ph-color-text-primary); }
.ph-card__excerpt { margin: 0; color: var(--ph-color-text-secondary); font-size: var(--ph-text-sm); }

.ph-topic-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ph-space-5); padding: var(--ph-space-5); }
.ph-topic-main .ph-card__media { border-radius: var(--ph-radius-lg); overflow: hidden; }
.ph-topic-main h3 { color: var(--ph-color-authority-navy); font-size: 24px; line-height: 1.6; margin: var(--ph-space-3) 0 var(--ph-space-1); }
[data-theme="dark"] .ph-topic-main h3 { color: var(--ph-color-text-primary); }
.ph-compact-list { display: grid; align-content: start; }
.ph-compact-item { padding-block: 10px; border-top: 1px solid var(--ph-color-border); display: block; text-decoration: none; }
.ph-compact-item:first-child { border-top: 0; }
.ph-compact-item strong { color: var(--ph-color-deep-blue); font-size: 14px; font-weight: 700; line-height: 1.6; display: block; margin-bottom: 4px; transition: color 0.15s ease; }
.ph-compact-item:hover strong { color: var(--ph-color-news-blue); }
.ph-compact-item .ph-meta { font-size: 12px; color: var(--ph-color-text-secondary); display: block; }
[data-theme="dark"] .ph-compact-item strong { color: var(--ph-color-text-primary); }

.ph-newsletter { display: grid; grid-template-columns: 1fr auto; gap: var(--ph-space-5); align-items: center; background: linear-gradient(135deg, var(--ph-color-surface-soft), var(--ph-color-surface)); border: 1px solid var(--ph-color-border); border-radius: var(--ph-radius-2xl); box-shadow: var(--ph-shadow-md); padding: var(--ph-space-6); }
.ph-newsletter h3 { margin: 0 0 var(--ph-space-2); color: var(--ph-color-authority-navy); }
[data-theme="dark"] .ph-newsletter h3 { color: var(--ph-color-text-primary); }
.ph-newsletter p { margin: 0; color: var(--ph-color-text-secondary); }
.ph-form { display: flex; gap: var(--ph-space-2); }
.ph-input { min-height: 46px; border: 1px solid var(--ph-color-border); background: var(--ph-color-surface); color: var(--ph-color-text-primary); border-radius: var(--ph-radius-pill); padding-inline: var(--ph-space-4); font: inherit; }
.ph-button { min-height: 46px; border: 0; border-radius: var(--ph-radius-pill); background: var(--ph-color-signal-orange); color: var(--ph-color-authority-navy); font: inherit; font-weight: 900; padding-inline: var(--ph-space-5); cursor: pointer; }

.ph-breadcrumb { color: var(--ph-color-text-secondary); font-size: var(--ph-text-sm); padding-block: var(--ph-space-5) var(--ph-space-3); }
.ph-single { width: 100%; flex: 1; }
.ph-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--ph-space-8); align-items: start; padding-bottom: var(--ph-space-16); width: 100%; }
.ph-article { background: var(--ph-color-surface); border: 1px solid var(--ph-color-border); border-radius: var(--ph-radius-2xl); box-shadow: var(--ph-shadow-md); overflow: hidden; }
.ph-article__head { padding: var(--ph-space-8) var(--ph-space-10) var(--ph-space-6); }
.ph-article__title { margin: var(--ph-space-3) 0 var(--ph-space-4); color: var(--ph-color-authority-navy); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.48; }
[data-theme="dark"] .ph-article__title { color: var(--ph-color-text-primary); }
.ph-article__lead { margin: 0; color: var(--ph-color-text-secondary); font-size: 16px; line-height: 1.85; }
.ph-article__meta { display: flex; flex-wrap: wrap; gap: var(--ph-space-2) var(--ph-space-4); border-top: 1px solid var(--ph-color-border); margin-top: var(--ph-space-5); padding-top: var(--ph-space-4); color: var(--ph-color-text-secondary); font-size: var(--ph-text-sm); }
.ph-featured { height: 340px; margin: 0 var(--ph-space-10) var(--ph-space-6); border-radius: var(--ph-radius-xl); background: linear-gradient(135deg, rgba(7,29,54,.84), rgba(0,163,180,.64)), radial-gradient(circle at 80% 10%, rgba(255,159,28,.4), transparent 28%), linear-gradient(135deg, var(--ph-color-deep-blue), var(--ph-color-authority-navy)); }
.ph-article-body { padding: 0 var(--ph-space-10) var(--ph-space-8); font-size: var(--ph-text-article); line-height: var(--ph-leading-article); color: var(--ph-color-text-primary); }
.ph-article-body p { margin: 0 0 var(--ph-space-5); }
.ph-article-body h2 { font-size: 25px; line-height: 1.6; color: var(--ph-color-authority-navy); border-right: 4px solid var(--ph-color-news-blue); padding-right: var(--ph-space-3); margin: var(--ph-space-8) 0 var(--ph-space-4); }
[data-theme="dark"] .ph-article-body h2 { color: var(--ph-color-text-primary); }
.ph-article-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.ph-table-wrap { overflow-x: auto; border: 1px solid var(--ph-color-border); border-radius: var(--ph-radius-lg); margin-block: var(--ph-space-6); }
.ph-article-body th, .ph-article-body td { padding: 12px 14px; border-bottom: 1px solid var(--ph-color-border); text-align: right; }
.ph-article-body th { background: var(--ph-color-surface-soft); color: var(--ph-color-deep-blue); }
[data-theme="dark"] .ph-article-body th { color: var(--ph-color-text-primary); }
.ph-iframe-wrap { aspect-ratio: 16 / 9; background: var(--ph-color-authority-navy); color: #fff; border-radius: var(--ph-radius-lg); display: grid; place-items: center; margin-block: var(--ph-space-6); }
.ph-tags, .ph-share { display: flex; flex-wrap: wrap; gap: var(--ph-space-2); padding-inline: var(--ph-space-10); }
.ph-share { padding-top: var(--ph-space-4); }
.ph-chip { border: 1px solid var(--ph-color-border); background: var(--ph-color-surface); color: var(--ph-color-deep-blue); border-radius: var(--ph-radius-pill); min-height: 38px; padding: 4px 12px; display: inline-flex; align-items: center; font-size: var(--ph-text-sm); }
[data-theme="dark"] .ph-chip { color: var(--ph-color-text-primary); background: var(--ph-color-surface-soft); }
.ph-chip--primary { background: var(--ph-color-news-blue); color: #fff; border-color: var(--ph-color-news-blue); }
.ph-author-box { margin: var(--ph-space-6) var(--ph-space-10) var(--ph-space-8); border: 1px solid var(--ph-color-border); border-radius: var(--ph-radius-xl); padding: var(--ph-space-5); display: grid; grid-template-columns: 60px 1fr; gap: var(--ph-space-4); align-items: center; }
.ph-avatar { width: 60px; height: 60px; border-radius: var(--ph-radius-lg); background: linear-gradient(135deg, var(--ph-color-deep-blue), var(--ph-color-transport-cyan)); }
.ph-author-box h3 { margin: 0 0 var(--ph-space-1); color: var(--ph-color-authority-navy); }
[data-theme="dark"] .ph-author-box h3 { color: var(--ph-color-text-primary); }
.ph-author-box p { margin: 0; color: var(--ph-color-text-secondary); font-size: 14px; }
.ph-sidebar { display: grid; gap: var(--ph-space-5); }
.ph-side-card { background: var(--ph-color-surface); border: 1px solid var(--ph-color-border); border-radius: var(--ph-radius-2xl); box-shadow: var(--ph-shadow-md); padding: var(--ph-space-5); }
.ph-side-card h2, .ph-side-card h3 { margin: 0 0 var(--ph-space-3); color: var(--ph-color-authority-navy); font-size: 16px; font-weight: 800; }
[data-theme="dark"] .ph-side-card h2, [data-theme="dark"] .ph-side-card h3 { color: var(--ph-color-text-primary); }

.ph-site-footer { background: var(--ph-color-authority-navy); color: #fff; margin-top: var(--ph-space-16); padding-block: var(--ph-space-12); }
.ph-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--ph-space-8); }
.ph-footer-grid h3, .ph-footer-grid h4 { margin-top: 0; }
.ph-footer-grid a, .ph-footer-grid p { color: rgba(255,255,255,.76); }

@media (max-width: 1023px) {
  :root { --ph-gutter: 16px; --ph-text-article: 16.5px; --ph-text-section-title: 22px; }
  .ph-brand__subtitle, .ph-pill__text { display: none; }
  .ph-logo { width: 42px; height: 42px; border-radius: 13px; }
  .ph-brand__title { font-size: 20px; }
  .ph-topbar__inner { display: block; padding-block: var(--ph-space-2); }
  .ph-hero-layout, .ph-topic-layout, .ph-newsletter, .ph-article-layout, .ph-footer-grid { grid-template-columns: 1fr; }
  .ph-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-hero-card__media { min-height: 230px; }
  .ph-article__head, .ph-article-body, .ph-tags, .ph-share { padding-inline: var(--ph-space-5); }
  .ph-featured, .ph-author-box { margin-inline: var(--ph-space-5); }
  .ph-featured { height: 230px; }
  .ph-form { display: grid; }
  .ph-input, .ph-button { width: 100%; }
}

@media (max-width: 640px) {
  .ph-card-grid { grid-template-columns: 1fr; }
  .ph-section { margin-block: var(--ph-space-8); }
  .ph-hero-card__body { padding: var(--ph-space-5); }
  .ph-article__lead { font-size: 16px; }
}


/* WordPress / GeneratePress compatibility layer for final execution prototype. */
body.portalham-site .site-header {
  background: var(--ph-color-surface);
  border-bottom: 1px solid var(--ph-color-border);
  box-shadow: var(--ph-shadow-xs);
}
body.portalham-site .inside-header {
  width: min(var(--ph-container), calc(100% - (var(--ph-gutter) * 2)));
  margin-inline: auto;
  padding: var(--ph-space-4) 0;
}
body.portalham-site .site-branding .main-title a,
body.portalham-site .site-branding .main-title {
  color: var(--ph-color-authority-navy);
  font-family: var(--ph-font-family-base);
  font-weight: 900;
}
[data-theme="dark"] body.portalham-site .site-branding .main-title a,
[data-theme="dark"] body.portalham-site .site-branding .main-title {
  color: var(--ph-color-text-primary);
}
body.portalham-site .site-description {
  color: var(--ph-color-text-secondary);
  font-family: var(--ph-font-family-base);
}
body.portalham-site .main-navigation {
  background: var(--ph-color-surface);
  border-top: 1px solid var(--ph-color-border);
}
body.portalham-site .main-navigation .inside-navigation {
  width: min(var(--ph-container), calc(100% - (var(--ph-gutter) * 2)));
  margin-inline: auto;
}
body.portalham-site .main-navigation .main-nav ul li a {
  color: var(--ph-color-deep-blue);
  font-family: var(--ph-font-family-base);
  font-weight: 800;
}
body.portalham-site .main-navigation .main-nav ul li[class*="current-menu"] > a,
body.portalham-site .main-navigation .main-nav ul li a:hover {
  color: var(--ph-color-news-blue);
}
[data-theme="dark"] body.portalham-site .main-navigation .main-nav ul li a {
  color: var(--ph-color-text-secondary);
}
body.portalham-site .site-footer,
body.portalham-site .site-info {
  background: var(--ph-color-authority-navy);
  color: #fff;
  font-family: var(--ph-font-family-base);
}
body.portalham-site .site-footer a,
body.portalham-site .site-info a {
  color: rgba(255, 255, 255, .82);
}
.ph-card__media img,
.ph-hero-card__media img,
.ph-featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-featured {
  overflow: hidden;
  display: block;
}
.ph-featured--no-image {
  display: grid;
  place-items: center;
}
.ph-featured--no-image::after {
  content: "Ù¾Ø±ØªØ§Ù„ Ø­Ù…Ù„â€ŒÙˆÙ†Ù‚Ù„";
  color: rgba(255,255,255,.85);
  font-weight: 900;
}
.ph-card-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ph-article .ph-section {
  margin-block: var(--ph-space-8);
}
.ph-article .ph-ad--single_after_content {
  margin: 0 var(--ph-space-10) var(--ph-space-8);
}
.ph-ad--sidebar_top,
.ph-ad--sidebar_vertical {
  min-height: 250px;
}
.ph-ad--sidebar_vertical {
  min-height: 500px;
}
.ph-ad--mobile-sticky {
  position: fixed;
  inset-inline: var(--ph-space-3);
  bottom: var(--ph-space-3);
  z-index: 80;
  display: none;
}
.ph-ad__close {
  position: absolute;
  top: 4px;
  inset-inline-end: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.ph-article-body .ph-ad {
  font-size: var(--ph-text-base);
  line-height: var(--ph-leading-normal);
}
@media (max-width: 1023px) {
  body.portalham-site .inside-header,
  body.portalham-site .main-navigation .inside-navigation {
    width: min(100% - 24px, var(--ph-container));
  }
  .ph-card-grid--related {
    grid-template-columns: 1fr;
  }
  .ph-article .ph-ad--single_after_content {
    margin-inline: var(--ph-space-5);
  }
}
@media (max-width: 640px) {
  .ph-ad--mobile-sticky:not([hidden]) {
    display: grid;
  }
}


/* Custom Portalham header/footer activation over GeneratePress defaults. */
body.portalham-site > .site-header,
body.portalham-site > nav.main-navigation,
body.portalham-site > .site-footer,
body.portalham-site > .site-info {
  display: none !important;
}
.ph-brand__title,
.ph-brand__subtitle {
  display: block;
}
.ph-header-search {
  display: flex;
  align-items: center;
  gap: var(--ph-space-2);
  margin: 0;
}
.ph-header-search__input {
  min-height: 42px;
  width: min(260px, 28vw);
  border: 1px solid var(--ph-color-border);
  background: var(--ph-color-surface);
  color: var(--ph-color-text-primary);
  border-radius: var(--ph-radius-pill);
  padding-inline: var(--ph-space-4);
  font: inherit;
}
.ph-site-header .ph-brand:hover {
  color: inherit;
}
.ph-site-footer {
  background: var(--ph-color-authority-navy);
  color: #fff;
  margin-top: var(--ph-space-16);
  padding-block: var(--ph-space-12);
}
.ph-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--ph-space-8);
}
.ph-footer-grid h3,
.ph-footer-grid h4 {
  margin-top: 0;
  margin-bottom: var(--ph-space-3);
  color: #fff;
}
.ph-footer-grid p,
.ph-footer-grid a {
  color: rgba(255,255,255,.78);
}
.ph-footer-grid a:hover {
  color: #fff;
}
@media (max-width: 1023px) {
  .ph-header-main {
    align-items: flex-start;
  }
  .ph-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .ph-header-search__input {
    display: none;
  }
  .ph-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .ph-footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Visual QA refinements â€” header/footer, GeneratePress compatibility, responsive polish. */
body.portalham-site .site-header:not(.ph-site-header),
body.portalham-site .main-navigation,
body.portalham-site #mobile-header,
body.portalham-site .site-footer:not(.ph-site-footer),
body.portalham-site .site-info {
  display: none !important;
}
body.portalham-site {
  background: var(--ph-color-page-bg) !important;
}
body.portalham-site .site-main,
body.portalham-site .inside-article {
  background: transparent;
}
body.portalham-site .grid-container,
body.portalham-site .site-content {
  max-width: none;
}
.ph-topbar a {
  color: #fff;
  font-weight: 700;
}
.ph-topbar strong {
  color: var(--ph-color-signal-orange);
}
.ph-site-header {
  box-shadow: 0 8px 22px rgba(7,29,54,.045);
}
.ph-nav {
  scrollbar-width: thin;
}
.ph-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.ph-header-search__input::placeholder,
.ph-input::placeholder {
  color: var(--ph-color-text-muted);
}
.ph-card__media img,
.ph-hero-card__media img,
.ph-featured img {
  border: 0;
}
.ph-home .ph-section--top-ad {
  margin-top: var(--ph-space-6);
}
.ph-hero-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-hero-card__media:has(img) {
  padding: 0;
}
.ph-article-body iframe,
.ph-article-body video,
.ph-article-body embed,
.ph-article-body object {
  max-width: 100%;
}
.ph-article-body > *:first-child {
  margin-top: 0;
}
.ph-article-body p:empty {
  display: none;
}
.ph-article-body blockquote {
  margin: var(--ph-space-6) 0;
  padding: var(--ph-space-5);
  border-right: 4px solid var(--ph-color-signal-orange);
  border-radius: var(--ph-radius-lg);
  background: var(--ph-color-surface-soft);
  color: var(--ph-color-deep-blue);
  font-weight: 700;
}
[data-theme="dark"] .ph-article-body blockquote {
  color: var(--ph-color-text-primary);
}
.ph-related {
  padding-inline: var(--ph-space-10);
}
.ph-related .ph-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ph-single .ph-ad--single_after_content {
  margin: 0 var(--ph-space-10) var(--ph-space-8);
}
.ph-site-footer + .site-footer,
.ph-site-footer + .site-info {
  display: none !important;
}
@media (max-width: 1023px) {
  .ph-header-main {
    gap: var(--ph-space-3);
  }
  .ph-header-actions {
    margin-inline-start: auto;
  }
  .ph-related {
    padding-inline: var(--ph-space-5);
  }
  .ph-related .ph-card-grid {
    grid-template-columns: 1fr;
  }
  .ph-single .ph-ad--single_after_content {
    margin-inline: var(--ph-space-5);
  }
}
@media (max-width: 640px) {
  .ph-topbar__inner {
    font-size: 12px;
  }
  .ph-header-main {
    align-items: center;
  }
  .ph-brand__title {
    font-size: 18px;
  }
  .ph-logo {
    width: 40px;
    height: 40px;
  }
  .ph-pill {
    min-height: 40px;
    padding-inline: var(--ph-space-3);
  }
  .ph-section__head {
    align-items: center;
  }
  .ph-section__title {
    font-size: 20px;
  }
  .ph-article__head {
    padding-top: var(--ph-space-6);
  }
}


/* Visual Polish Pass 1 â€” density, mobile readability, ad polish, no-image tuning. */
:root {
  --ph-container: 1240px;
  --ph-container-wide: 1320px;
}
.ph-container-wide {
  width: min(var(--ph-container-wide), calc(100% - (var(--ph-gutter) * 2)));
}
.ph-home .ph-hero-layout {
  grid-template-columns: minmax(0, 1.65fr) 340px;
  gap: var(--ph-space-6);
}
.ph-home .ph-hero-card__media {
  min-height: 390px;
}
.ph-home .ph-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ph-home .ph-card__title {
  min-height: 3.2em;
}
.ph-card__media--no-image {
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 99, 183, .18), transparent 35%),
    linear-gradient(135deg, #F1F6FC, #D9E9F8);
  color: var(--ph-color-deep-blue);
}
.ph-card__media--no-image span,
.ph-card__media--no-image {
  font-size: 13px;
}
.ph-ad {
  background:
    linear-gradient(135deg, rgba(255, 159, 28, .12), rgba(255,255,255,.84)),
    var(--ph-color-surface-warm);
  border-color: #E7C06F;
  color: #7A4B08;
  font-weight: 800;
}
.ph-ad::before {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(216,168,75,.45);
  border-radius: var(--ph-radius-pill);
  padding: 1px 8px;
  top: 7px;
  right: 10px;
}
.ph-article {
  max-width: 100%;
}
.ph-article-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  width: 100%;
  max-width: 100%;
}
.ph-article-body {
  max-width: 100%;
}
.ph-article__head {
  max-width: 100%;
  width: 100%;
}
.ph-featured {
  max-width: 100%;
  margin-bottom: var(--ph-space-6);
  height: auto;
  min-height: 380px;
  max-height: 520px;
}
.ph-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ph-radius-xl);
}
.ph-tags,
.ph-share,
.ph-author-box,
.ph-related,
.ph-single .ph-ad--single_after_content,
.ph-article > .ph-section {
  max-width: 100%;
}
.ph-related .ph-card__media {
  aspect-ratio: 16 / 9;
}
.ph-related .ph-card__title {
  font-size: 15px;
}
@media (max-width: 1023px) {
  :root {
    --ph-gutter: 18px;
  }
  .ph-home .ph-hero-layout,
  .ph-article-layout {
    grid-template-columns: 1fr;
  }
  .ph-home .ph-hero-card__media {
    min-height: 260px;
  }
  .ph-home .ph-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ph-article__head,
  .ph-article-body,
  .ph-featured,
  .ph-tags,
  .ph-share,
  .ph-author-box,
  .ph-related,
  .ph-single .ph-ad--single_after_content,
  .ph-article > .ph-section {
    max-width: none;
  }
}
@media (max-width: 640px) {
  :root {
    --ph-gutter: 14px;
  }
  .ph-topbar__inner {
    line-height: 1.7;
  }
  .ph-site-header {
    position: static;
  }
  .ph-header-actions {
    gap: 6px;
  }
  .ph-nav {
    padding-block: 8px;
    gap: 12px;
  }
  .ph-nav a {
    min-height: 34px;
    font-size: 13px;
  }
  .ph-home .ph-hero-card__media {
    min-height: 190px;
  }
  .ph-hero-card__body {
    padding: 16px;
  }
  .ph-hero-card__title {
    font-size: 25px;
    line-height: 1.5;
  }
  .ph-home .ph-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ph-card__media {
    aspect-ratio: 16 / 8.5;
  }
  .ph-card__media--no-image {
    aspect-ratio: 16 / 6.5;
  }
  .ph-card__body {
    padding: 12px 14px 14px;
  }
  .ph-home .ph-card__title {
    min-height: 0;
  }
  .ph-topic-layout {
    padding: 14px;
  }
  .ph-newsletter {
    padding: 18px;
  }
  .ph-article__head {
    padding: 22px 18px 18px;
  }
  .ph-article__title {
    font-size: 27px;
    line-height: 1.55;
  }
  .ph-article__lead {
    font-size: 16px;
    line-height: 1.95;
  }
  .ph-article__meta {
    gap: 6px 12px;
    font-size: 12px;
  }
  .ph-featured {
    height: 210px;
    margin-inline: 18px;
    margin-bottom: 20px;
  }
  .ph-article-body {
    padding: 0 18px 24px;
    font-size: 16.5px;
    line-height: 2.12;
  }
  .ph-article-body p {
    margin-bottom: 18px;
  }
  .ph-ad--inline,
  .ph-article-body .ph-ad {
    min-height: 128px;
    margin-block: 22px;
  }
  .ph-tags,
  .ph-share {
    padding-inline: 18px;
  }
  .ph-author-box {
    margin: 20px 18px 24px;
    grid-template-columns: 48px 1fr;
    padding: 14px;
  }
  .ph-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .ph-related {
    padding-inline: 18px;
  }
  .ph-related .ph-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: stretch;
  }
  .ph-related .ph-card__media {
    aspect-ratio: auto;
    min-height: 92px;
  }
  .ph-related .ph-card__body {
    padding: 10px 12px;
  }
  .ph-related .ph-card__title {
    font-size: 14px;
    line-height: 1.65;
  }
  .ph-side-card {
    padding: 14px;
  }
  .ph-ad--sidebar_vertical {
    min-height: 180px;
  }
}

/* Visual Polish Pass 2 â€” homepage balance, sidebar depth, compact mobile footer. */
:root {
  --ph-container-wide: 1288px;
}

/* Desktop homepage: closer to the final premium newsroom prototype. */
.ph-home .ph-section {
  margin-block: 36px;
}
.ph-home .ph-section--top-ad {
  margin-top: 20px;
  margin-bottom: 28px;
}
.ph-home .ph-hero-layout {
  grid-template-columns: minmax(0, 1.72fr) 330px;
  gap: 26px;
  align-items: stretch;
}
.ph-home .ph-hero-card {
  border-radius: 26px;
  box-shadow: 0 22px 52px rgba(7, 29, 54, .13);
}
.ph-home .ph-hero-card__media {
  min-height: 382px;
}
.ph-home .ph-hero-card__body {
  padding: 24px 28px 26px;
}
.ph-home .ph-hero-card__title {
  font-size: clamp(34px, 3.35vw, 48px);
  line-height: 1.46;
  letter-spacing: -.02em;
  max-width: 920px;
}
.ph-home .ph-hero-card__lead {
  max-width: 780px;
}
.ph-home .ph-latest {
  padding: 24px 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(238, 243, 250, .88), rgba(255, 255, 255, .98));
}
.ph-home .ph-latest__title,
.ph-side-card h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 8px;
  font-weight: 900;
}
.ph-home .ph-latest__title::after,
.ph-side-card h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: var(--ph-radius-pill);
  background: linear-gradient(90deg, var(--ph-color-signal-orange), var(--ph-color-news-blue));
}
.ph-home .ph-latest-item {
  grid-template-columns: 32px 1fr;
  padding-block: 13px;
}
.ph-home .ph-latest-item__num {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 99, 183, .09);
  font-size: 12px;
}
.ph-home .ph-card-grid {
  gap: 18px;
}
.ph-home .ph-card,
.ph-home .ph-panel {
  border-color: rgba(185, 200, 218, .78);
}
.ph-home .ph-card__title,
.ph-related .ph-card__title {
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.62;
}
.ph-home .ph-card__excerpt {
  line-height: 1.86;
}
.ph-home .ph-topic-layout {
  gap: 24px;
  padding: 24px;
}
.ph-topic-main h3 {
  font-size: 25px;
  line-height: 1.58;
}
.ph-compact-item strong {
  font-weight: 850;
  text-underline-offset: 4px;
}
.ph-compact-item:hover strong {
  color: var(--ph-color-news-blue);
}
.ph-newsletter {
  box-shadow: 0 18px 42px rgba(7, 29, 54, .09);
}

/* Article desktop sidebar: stronger editorial cards without changing markup. */
.ph-article-layout {
  gap: 34px;
}
.ph-sidebar {
  gap: 22px;
}
@media (min-width: 1024px) {
  .ph-sidebar {
    position: static;
    top: auto;
  }
}
.ph-side-card {
  padding: 22px;
  border-color: rgba(185, 200, 218, .82);
  box-shadow: 0 18px 42px rgba(7, 29, 54, .09);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,243,250,.42));
}
.ph-side-card .ph-compact-item {
  position: relative;
  padding: 13px 18px 13px 0;
}
.ph-side-card .ph-compact-item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ph-color-transport-cyan);
  box-shadow: 0 0 0 4px rgba(0, 163, 180, .12);
}
.ph-side-card .ph-compact-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.72;
}
.ph-side-card .ph-meta {
  margin-top: 6px;
  font-size: 11.5px;
}
.ph-ad--sidebar_top,
.ph-ad--sidebar_vertical {
  box-shadow: 0 14px 32px rgba(122, 75, 8, .08);
}

/* Footer refinement. */
.ph-site-footer {
  margin-top: 56px;
}
.ph-footer-grid p {
  line-height: 1.9;
}
.ph-footer-grid a {
  text-underline-offset: 4px;
}
.ph-footer-grid a:hover {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .ph-home .ph-section {
    margin-block: 26px;
  }
  .ph-home .ph-hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ph-home .ph-latest {
    padding: 18px;
  }
  .ph-topic-main h3 {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  :root {
    --ph-gutter: 13px;
  }

  /* Compact homepage mobile while preserving the news hierarchy. */
  .ph-home .ph-section {
    margin-block: 18px;
  }
  .ph-home .ph-section--top-ad {
    margin-top: 12px;
    margin-bottom: 16px;
  }
  .ph-home .ph-section__head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom-width: 2px;
  }
  .ph-home .ph-section__title {
    font-size: 19px;
    line-height: 1.45;
  }
  .ph-home .ph-section__link {
    font-size: 11.5px;
  }
  .ph-home .ph-ad {
    min-height: 82px;
    border-radius: 16px;
    padding: 16px 12px 12px;
    font-size: 12px;
  }
  .ph-home .ph-hero-card,
  .ph-home .ph-panel,
  .ph-home .ph-card {
    border-radius: 18px;
  }
  .ph-home .ph-hero-card__media {
    min-height: 176px;
  }
  .ph-home .ph-hero-card__body {
    padding: 14px 15px 16px;
  }
  .ph-home .ph-hero-card__title {
    font-size: 23px;
    line-height: 1.48;
    margin-block: 8px 6px;
  }
  .ph-home .ph-hero-card__lead {
    font-size: 13px;
    line-height: 1.82;
  }
  .ph-home .ph-latest {
    padding: 14px;
  }
  .ph-home .ph-latest__title {
    font-size: 20px;
  }
  .ph-home .ph-latest-item {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    padding-block: 9px;
  }
  .ph-home .ph-latest-item__title {
    font-size: 13px;
    line-height: 1.58;
  }
  .ph-home .ph-card-grid {
    gap: 10px;
  }
  .ph-home .ph-card-grid .ph-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    min-height: 108px;
  }
  .ph-home .ph-card-grid .ph-card__media {
    aspect-ratio: auto;
    min-height: 108px;
    height: 100%;
    border-bottom: 0;
    border-left: 1px solid var(--ph-color-border);
  }
  .ph-home .ph-card-grid .ph-card__media--no-image {
    aspect-ratio: auto;
    font-size: 11px;
  }
  .ph-home .ph-card-grid .ph-card__body {
    padding: 10px 11px;
    min-width: 0;
  }
  .ph-home .ph-card-grid .ph-badge {
    min-height: 23px;
    padding-inline: 8px;
    font-size: 10.5px;
  }
  .ph-home .ph-card-grid .ph-card__title {
    font-size: 13.5px;
    line-height: 1.58;
    margin: 6px 0 3px;
  }
  .ph-home .ph-card-grid .ph-card__excerpt {
    display: none;
  }
  .ph-home .ph-topic-layout {
    padding: 12px;
    gap: 10px;
  }
  .ph-home .ph-topic-main .ph-card__media {
    aspect-ratio: 16 / 8.2;
  }
  .ph-home .ph-topic-main h3 {
    font-size: 16px;
    line-height: 1.58;
    margin: 8px 0 2px;
  }
  .ph-home .ph-compact-list .ph-compact-item {
    padding-block: 8px;
  }
  .ph-home .ph-compact-list .ph-compact-item strong {
    font-size: 13px;
    line-height: 1.58;
  }
  .ph-home .ph-newsletter {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .ph-home .ph-newsletter h2,
  .ph-home .ph-newsletter h3 {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 4px;
  }
  .ph-home .ph-newsletter p {
    font-size: 12.5px;
    line-height: 1.75;
  }

  /* Article sidebar after content on mobile: compact cards. */
  .ph-sidebar {
    gap: 14px;
  }
  .ph-side-card {
    padding: 14px;
    border-radius: 18px;
  }
  .ph-side-card h2 {
    font-size: 20px;
    padding-bottom: 9px;
  }
  .ph-side-card .ph-compact-item {
    padding-block: 9px;
  }
  .ph-side-card .ph-compact-item strong {
    font-size: 13px;
    line-height: 1.62;
  }

  /* Compact mobile footer. */
  .ph-site-footer {
    margin-top: 32px;
    padding-block: 26px;
  }
  .ph-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .ph-footer-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .ph-footer-grid h3,
  .ph-footer-grid h4 {
    margin-bottom: 6px;
    font-size: 14px;
  }
  .ph-footer-grid p,
  .ph-footer-grid a {
    font-size: 12px;
    line-height: 1.75;
  }
}

/* Visual Polish Pass 3 â€” no-image placeholders, mobile article/sidebar density, header micro-polish. */

/* Softer premium placeholder for legacy/no-image cards. */
.ph-card__media.ph-card__media--no-image,
.ph-home .ph-card__media.ph-card__media--no-image,
.ph-related .ph-card__media.ph-card__media--no-image {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 163, 180, .20), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(255, 159, 28, .18), transparent 26%),
    linear-gradient(135deg, #F8FBFF 0%, #E8F1FA 52%, #D6E7F5 100%) !important;
  color: var(--ph-color-deep-blue) !important;
  border-bottom: 1px solid rgba(185, 200, 218, .70);
}
.ph-card__media.ph-card__media--no-image::before,
.ph-home .ph-card__media.ph-card__media--no-image::before,
.ph-related .ph-card__media.ph-card__media--no-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(22, 99, 183, .14);
  border-radius: 18px;
}
.ph-card__media.ph-card__media--no-image span,
.ph-home .ph-card__media.ph-card__media--no-image span,
.ph-related .ph-card__media.ph-card__media--no-image span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: var(--ph-radius-pill);
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(185, 200, 218, .72);
  font-size: 12px;
  font-weight: 900;
}
.ph-home #portalham-section-sea .ph-card__media.ph-card__media--no-image,
.ph-home #portalham-section-more .ph-card__media.ph-card__media--no-image {
  aspect-ratio: 16 / 7.4;
}

/* Homepage desktop rhythm: keep visual weight on real images, make placeholders quieter. */
@media (min-width: 1024px) {
  .ph-home #portalham-section-sea .ph-card:has(.ph-card__media--no-image) .ph-card__title {
    font-size: 16.5px;
  }
  .ph-home #portalham-section-sea .ph-card:has(.ph-card__media--no-image) .ph-card__body {
    padding-top: 13px;
  }
  .ph-home .ph-card-grid .ph-card__media.ph-card__media--no-image {
    min-height: 142px;
  }
}

/* Article desktop: keep sidebar premium but less visually heavy below the fold. */
@media (min-width: 1024px) {
  .ph-side-card h2 {
    font-size: 24px;
  }
  .ph-ad--sidebar_vertical {
    min-height: 440px;
  }
}

/* Mobile header: slightly tighter, less vertical cost. */
@media (max-width: 640px) {
  .ph-topbar__inner {
    padding-block: 5px;
    line-height: 1.55;
  }
  .ph-header-main {
    padding-block: 10px;
  }
  .ph-brand__title {
    font-size: 17px;
  }
  .ph-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .ph-pill {
    min-height: 36px;
    padding-inline: 10px;
  }
  .ph-nav {
    padding-block: 7px;
  }

  /* Mobile homepage: make no-image rows readable but much less dominant. */
  .ph-home .ph-card-grid .ph-card {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 96px;
  }
  .ph-home .ph-card-grid .ph-card__media {
    min-height: 96px;
  }
  .ph-home .ph-card-grid .ph-card__media.ph-card__media--no-image {
    min-height: 96px;
    border-left: 1px solid rgba(185, 200, 218, .72);
  }
  .ph-home .ph-card-grid .ph-card__media.ph-card__media--no-image::before {
    inset: 10px;
    border-radius: 12px;
  }
  .ph-home .ph-card-grid .ph-card__media.ph-card__media--no-image span {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 10px;
    line-height: 1.45;
    max-width: 76px;
    text-align: center;
  }
  .ph-home #portalham-section-sea .ph-card-grid .ph-card__media.ph-card__media--no-image,
  .ph-home #portalham-section-more .ph-card-grid .ph-card__media.ph-card__media--no-image {
    aspect-ratio: auto;
  }

  /* Mobile article: reduce below-article sidebar/ad height while keeping all markers/content. */
  .ph-single .ph-sidebar {
    margin-top: 4px;
  }
  .ph-single .ph-side-card {
    padding: 12px 13px;
  }
  .ph-single .ph-side-card h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .ph-single .ph-side-card .ph-compact-item {
    padding: 8px 16px 8px 0;
  }
  .ph-single .ph-side-card .ph-compact-item::before {
    top: 17px;
    width: 6px;
    height: 6px;
  }
  .ph-single .ph-side-card .ph-compact-item strong {
    font-size: 12.6px;
    line-height: 1.58;
  }
  .ph-single .ph-side-card .ph-meta {
    margin-top: 3px;
    font-size: 10.8px;
  }
  .ph-single .ph-ad--sidebar_top {
    min-height: 170px;
  }
  .ph-single .ph-ad--sidebar_vertical {
    min-height: 210px;
  }

  /* Related cards: softer no-image blocks on article mobile. */
  .ph-related .ph-card__media.ph-card__media--no-image::before {
    inset: 10px;
    border-radius: 12px;
  }
  .ph-related .ph-card__media.ph-card__media--no-image span {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 10px;
    max-width: 78px;
    text-align: center;
  }

  /* Footer final tightening. */
  .ph-site-footer {
    padding-block: 22px;
  }
  .ph-footer-grid {
    gap: 12px 16px;
  }
  .ph-footer-grid p,
  .ph-footer-grid a {
    line-height: 1.62;
  }
}

/* Typography/Layout Hotfix 1 â€” load Vazirmatn, fix list card spacing and Persian text rhythm. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
input,
select,
textarea,
.ph-site-header,
.ph-site-footer,
.ph-home,
.ph-single,
.ph-card,
.ph-panel,
.ph-article,
.ph-sidebar {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-feature-settings: "ss01" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.portalham-site {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.ph-section__title,
.ph-hero-card__title,
.ph-card__title,
.ph-topic-main h3,
.ph-latest__title,
.ph-side-card h2,
.ph-article__title {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-weight: 800;
  letter-spacing: -.015em;
}
.ph-card__title,
.ph-topic-main h3,
.ph-latest-item__title,
.ph-compact-item strong,
.ph-side-card .ph-compact-item strong {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Fix the broken-looking inner spacing in the homepage list section. */
.ph-home #portalham-section-more .ph-panel.ph-compact-list {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ph-color-surface);
  border: 1px solid rgba(185, 200, 218, .85);
  box-shadow: 0 14px 34px rgba(7, 29, 54, .075);
}
.ph-home #portalham-section-more .ph-compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title date";
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 17px 28px 16px 24px;
  border-top: 1px solid var(--ph-color-border);
  background: linear-gradient(180deg, #fff, rgba(248, 251, 255, .64));
}
.ph-home #portalham-section-more .ph-compact-item:first-child {
  border-top: 0;
}
.ph-home #portalham-section-more .ph-compact-item strong {
  grid-area: title;
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--ph-color-authority-navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ph-home #portalham-section-more .ph-compact-item .ph-meta {
  grid-area: date;
  min-width: 82px;
  margin: 0;
  color: #607086;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}
.ph-home #portalham-section-more .ph-compact-item:hover {
  background: linear-gradient(90deg, rgba(22, 99, 183, .045), #fff 62%);
}
.ph-home #portalham-section-more .ph-compact-item:hover strong {
  color: var(--ph-color-news-blue);
}

/* Keep all compact/news list cards readable and not visually stuck to the edges. */
.ph-compact-item,
.ph-latest-item {
  text-align: right;
}
.ph-latest-item__title,
.ph-compact-item strong {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .ph-section__title,
  .ph-hero-card__title,
  .ph-card__title,
  .ph-topic-main h3,
  .ph-latest__title,
  .ph-side-card h2,
  .ph-article__title {
    font-weight: 750;
    letter-spacing: -.01em;
  }
  .ph-home #portalham-section-more .ph-panel.ph-compact-list {
    border-radius: 18px;
  }
  .ph-home #portalham-section-more .ph-compact-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "date";
    gap: 4px;
    min-height: 0;
    padding: 11px 13px 10px;
  }
  .ph-home #portalham-section-more .ph-compact-item strong {
    font-size: 13px;
    line-height: 1.62;
  }
  .ph-home #portalham-section-more .ph-compact-item .ph-meta {
    min-width: 0;
    text-align: right;
    font-size: 10.8px;
  }
}

/* Link/Color Hotfix 1 â€” remove global link underlines and normalize editorial colors. */
:root {
  --ph-link-color: #123E68;
  --ph-link-hover: #1663B7;
  --ph-title-color: #071D36;
  --ph-body-color: #1B2433;
}

body.portalham-site,
body.portalham-site .ph-home,
body.portalham-site .ph-single,
body.portalham-site .ph-card,
body.portalham-site .ph-panel,
body.portalham-site .ph-article,
body.portalham-site .ph-sidebar {
  color: var(--ph-body-color);
}

/* Never underline navigational/news-card links by default. */
body.portalham-site a,
.ph-site-header a,
.ph-site-footer a,
.ph-home a,
.ph-card a,
.ph-panel a,
.ph-sidebar a,
.ph-related a,
.ph-tags a,
.ph-share a,
.ph-author-box a,
.ph-compact-item,
.ph-latest-item,
.ph-section__link,
.ph-badge,
.ph-chip {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* Controlled colors for scan-oriented surfaces. */
.ph-brand__title,
.ph-section__title,
.ph-latest__title,
.ph-side-card h2,
.ph-side-card h3,
.ph-article__title,
.ph-topic-main h3,
.ph-card__title,
.ph-card__title a,
.ph-hero-card__title,
.ph-hero-card__title a {
  color: var(--ph-title-color) !important;
}
.ph-latest-item__title,
.ph-compact-item strong,
.ph-topic-main h3 a,
.ph-home #portalham-section-more .ph-compact-item strong,
.ph-side-card .ph-compact-item strong {
  color: var(--ph-link-color) !important;
}
.ph-meta,
.ph-card__excerpt,
.ph-hero-card__lead,
.ph-article__lead,
.ph-author-box p,
.ph-newsletter p {
  color: var(--ph-color-text-secondary) !important;
}

/* Hover/focus: color change only, no permanent underline clutter. */
.ph-card a:hover,
.ph-panel a:hover,
.ph-sidebar a:hover,
.ph-latest-item:hover .ph-latest-item__title,
.ph-compact-item:hover strong,
.ph-topic-main h3 a:hover,
.ph-hero-card__title a:hover,
.ph-card__title a:hover,
.ph-site-header a:hover {
  color: var(--ph-link-hover) !important;
  text-decoration: none !important;
}

.ph-section__link:hover {
  color: var(--ph-color-deep-blue) !important;
  text-decoration: none !important;
}

/* Article body is the only place where inline text links should be identifiable; use subtle underline there only. */
.ph-article-body a {
  color: var(--ph-link-hover) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  text-decoration-color: rgba(22, 99, 183, .35) !important;
}
.ph-article-body a:hover {
  text-decoration-color: currentColor !important;
}

/* Footer links should be calm, not default blue/underlined. */
.ph-site-footer,
.ph-site-footer p {
  color: rgba(255, 255, 255, .76) !important;
}
.ph-site-footer a {
  color: rgba(255, 255, 255, .78) !important;
  text-decoration: none !important;
}
.ph-site-footer a:hover {
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .ph-home #portalham-section-more .ph-compact-item strong,
  .ph-side-card .ph-compact-item strong,
  .ph-latest-item__title {
    color: #123E68 !important;
  }
}

/* Brand Icon Hotfix 1 â€” use uploaded Portalham icon in custom header/logo. */
.ph-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff url("/wp-content/uploads/2026/07/portalham-site-icon-512-1.png") center / cover no-repeat !important;
  box-shadow: 0 8px 20px rgba(7, 29, 54, .10);
  border: 1px solid rgba(185, 200, 218, .72);
}
.ph-logo::after {
  content: none !important;
  display: none !important;
}
.ph-brand:hover .ph-logo {
  box-shadow: 0 10px 24px rgba(7, 29, 54, .14);
}
@media (max-width: 640px) {
  .ph-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
}

/* Header Search/Nav Hotfix 1 â€” rounded search box, icon-only actions, subtle nav tab hover. */
.ph-header-actions {
  gap: 10px;
  align-items: center;
}
.ph-header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 30vw);
  margin: 0;
}
.ph-header-search__input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(185, 200, 218, .82);
  border-radius: var(--ph-radius-pill);
  background: linear-gradient(180deg, #fff, #F8FBFF);
  color: var(--ph-color-text-primary);
  padding: 0 18px 0 46px;
  font: inherit;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 6px 16px rgba(7, 29, 54, .045);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.ph-header-search__input::placeholder {
  color: #98A4B5;
  opacity: 1;
}
.ph-header-search__input:focus {
  border-color: rgba(22, 99, 183, .45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 99, 183, .10), 0 8px 18px rgba(7, 29, 54, .055);
  outline: none;
}
.ph-header-search__button,
.ph-theme-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--ph-color-deep-blue);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.ph-header-search__button {
  position: absolute;
  inset-inline-end: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.ph-header-search__button:hover,
.ph-theme-toggle:hover {
  background: rgba(22, 99, 183, .08);
  color: var(--ph-color-news-blue);
}
.ph-header-search__button:active,
.ph-theme-toggle:active {
  transform: translateY(-50%) scale(.96);
}
.ph-theme-toggle:active {
  transform: scale(.96);
}
.ph-header-search__button svg,
.ph-theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.ph-theme-toggle {
  border: 1px solid rgba(185, 200, 218, .82);
  background: linear-gradient(180deg, #fff, #F4F8FC);
  box-shadow: 0 6px 14px rgba(7, 29, 54, .045);
}

/* Subtle tab-like nav hover/current state. */
.ph-nav {
  gap: 8px;
}
.ph-nav a {
  position: relative;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 12px;
  color: var(--ph-color-deep-blue);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.ph-nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: var(--ph-radius-pill);
  background: linear-gradient(90deg, var(--ph-color-signal-orange), var(--ph-color-news-blue));
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}
.ph-nav a:hover,
.ph-nav a:focus-visible,
.ph-nav a[aria-current="page"] {
  color: var(--ph-color-news-blue) !important;
  background: rgba(22, 99, 183, .07);
  transform: translateY(-1px);
}
.ph-nav a:hover::after,
.ph-nav a:focus-visible::after,
.ph-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 1023px) {
  .ph-header-search {
    width: auto;
  }
  .ph-header-search__input {
    width: 0;
    min-width: 0;
    opacity: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
  }
  .ph-header-search__button {
    position: static;
    transform: none;
    border: 1px solid rgba(185, 200, 218, .82);
    background: linear-gradient(180deg, #fff, #F4F8FC);
    box-shadow: 0 6px 14px rgba(7, 29, 54, .045);
  }
  .ph-header-search__button:active {
    transform: scale(.96);
  }
}

@media (max-width: 640px) {
  .ph-header-actions {
    gap: 7px;
  }
  .ph-header-search__button,
  .ph-theme-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .ph-nav {
    gap: 6px;
  }
  .ph-nav a {
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 12.5px;
  }
}

/* Button Hover/Search Hotfix 2 â€” shared subtle tab hover, rounder search, updated search icon styling. */
:root {
  --ph-control-hover-bg: rgba(22, 99, 183, .075);
  --ph-control-hover-color: #1663B7;
  --ph-control-radius: 16px;
}

/* Rounder header search pill. */
.ph-header-search {
  width: min(320px, 32vw);
}
.ph-header-search__input {
  min-height: 44px;
  border-radius: 22px !important;
  padding-inline-start: 18px;
  padding-inline-end: 48px;
  border-color: rgba(185, 200, 218, .92);
}
.ph-header-search__button svg {
  width: 17px;
  height: 17px;
}

/* Apply the same elegant hover idea to other clickable controls. */
.ph-header-search__button,
.ph-theme-toggle,
.ph-pill,
.ph-button,
.ph-chip,
.ph-badge,
.ph-ad__close,
.ph-card a,
.ph-compact-item,
.ph-latest-item,
.ph-site-footer a {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.ph-pill:hover,
.ph-button:hover,
.ph-chip:hover,
.ph-ad__close:hover {
  color: var(--ph-control-hover-color) !important;
  background: var(--ph-control-hover-bg) !important;
  border-color: rgba(22, 99, 183, .20) !important;
  box-shadow: 0 8px 18px rgba(7, 29, 54, .055);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.ph-button:hover {
  color: var(--ph-color-authority-navy) !important;
  background: linear-gradient(180deg, #FFB13D, #FF9F1C) !important;
}
.ph-chip--primary:hover {
  color: #fff !important;
  background: var(--ph-color-deep-blue) !important;
  border-color: var(--ph-color-deep-blue) !important;
}
.ph-badge:hover {
  filter: saturate(1.06) brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(7, 29, 54, .09);
}
.ph-latest-item:hover,
.ph-compact-item:hover {
  background: rgba(22, 99, 183, .055) !important;
  border-radius: 12px;
  transform: translateY(-1px);
}
.ph-card:hover .ph-card__title a,
.ph-hero-card__title a:hover,
.ph-topic-main h3 a:hover,
.ph-latest-item:hover .ph-latest-item__title,
.ph-compact-item:hover strong {
  color: var(--ph-control-hover-color) !important;
}
.ph-site-footer a:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

/* Keep motion very subtle. */
@media (prefers-reduced-motion: reduce) {
  .ph-header-search__button,
  .ph-theme-toggle,
  .ph-pill,
  .ph-button,
  .ph-chip,
  .ph-section__link,
  .ph-badge,
  .ph-ad__close,
  .ph-card a,
  .ph-compact-item,
  .ph-latest-item,
  .ph-site-footer a,
  .ph-nav a,
  .ph-nav a::after {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 1023px) {
  .ph-header-search {
    width: auto;
  }
  .ph-header-search__input {
    padding: 0;
  }
}

/* Native Menu Hotfix 1 â€” WordPress-managed primary menu with lightweight dropdowns. */
.ph-nav ul,
.ph-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ph-nav > .ph-nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}
.ph-nav li {
  position: relative;
  flex: 0 0 auto;
}
.ph-nav .menu-item-has-children > a {
  padding-inline-end: 24px;
}
.ph-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .58;
  transition: transform 160ms ease, opacity 160ms ease;
}
.ph-nav .menu-item-has-children:hover > a::before,
.ph-nav .menu-item-has-children:focus-within > a::before {
  transform: translateY(-35%) rotate(225deg);
  opacity: .9;
}
.ph-nav .sub-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(185, 200, 218, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(7, 29, 54, .13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.ph-nav li:hover > .sub-menu,
.ph-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ph-nav .sub-menu a {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--ph-color-deep-blue) !important;
}
.ph-nav .sub-menu a::after {
  display: none;
}
.ph-nav .sub-menu a:hover,
.ph-nav .sub-menu a:focus-visible {
  background: rgba(22, 99, 183, .075);
  color: var(--ph-color-news-blue) !important;
  transform: none;
}
.ph-nav .current-menu-item > a,
.ph-nav .current-menu-ancestor > a {
  color: var(--ph-color-news-blue) !important;
  background: rgba(22, 99, 183, .07);
}
.ph-nav .current-menu-item > a::after,
.ph-nav .current-menu-ancestor > a::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 1023px) {
  .ph-nav > .ph-nav__list {
    gap: 6px;
  }
  .ph-nav .sub-menu {
    display: none;
  }
  .ph-nav .menu-item-has-children > a {
    padding-inline-end: 12px;
  }
  .ph-nav .menu-item-has-children > a::before {
    display: none;
  }
}

/* Native Menu Fix 2 â€” prevent dropdowns from expanding nav height and remove broken scrollbars. */
.ph-site-header {
  overflow: visible;
  z-index: 80;
}
.ph-site-header .ph-container {
  overflow: visible;
}
.ph-nav {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 50px;
  padding-block: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 90;
}
.ph-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ph-nav > .ph-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
  height: 36px;
  overflow: visible;
}
.ph-nav > .ph-nav__list > li {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.ph-nav > .ph-nav__list > li > a {
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.ph-nav .sub-menu {
  display: none;
  position: fixed;
  top: 150px;
  right: auto;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 28px));
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(185, 200, 218, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 42px rgba(7, 29, 54, .13);
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 9999;
}
.ph-nav > .ph-nav__list > li:hover > .sub-menu,
.ph-nav > .ph-nav__list > li:focus-within > .sub-menu {
  display: block;
}
.ph-nav .sub-menu li {
  display: block;
  height: auto;
}
.ph-nav .sub-menu a {
  display: flex;
  width: 100%;
  min-height: 36px;
  height: auto;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .ph-nav {
    min-height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .ph-nav > .ph-nav__list {
    height: 34px;
  }
  .ph-nav .sub-menu {
    display: none !important;
  }
}

/* Native Menu Fix 3 â€” keep header clean: hide dropdowns in top nav and remove parent arrows. */
.ph-nav {
  overflow-x: auto;
  overflow-y: hidden !important;
  min-height: 44px;
  padding-block: 7px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ph-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ph-nav > .ph-nav__list {
  height: 34px;
  overflow: visible;
}
.ph-nav > .ph-nav__list > li {
  height: 34px;
  display: flex;
  align-items: center;
}
.ph-nav .sub-menu,
.ph-nav > .ph-nav__list > li:hover > .sub-menu,
.ph-nav > .ph-nav__list > li:focus-within > .sub-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ph-nav .menu-item-has-children > a {
  padding-inline-end: 11px !important;
}
.ph-nav .menu-item-has-children > a::before {
  content: none !important;
  display: none !important;
}
.ph-nav a {
  white-space: nowrap;
}

/* Native Menu Fix 4 â€” restore submenus as anchored dropdowns without breaking header layout. */
.ph-site-header,
.ph-site-header .ph-container {
  overflow: visible !important;
}
.ph-nav {
  position: relative;
  overflow: visible !important;
  min-height: 48px;
  padding-block: 7px;
  z-index: 120;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ph-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ph-nav > .ph-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  height: 36px;
  overflow: visible !important;
}
.ph-nav > .ph-nav__list > li {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ph-nav > .ph-nav__list > li > a {
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.ph-nav .menu-item-has-children > a {
  padding-inline-end: 25px !important;
}
.ph-nav .menu-item-has-children > a::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .52;
  transition: transform 160ms ease, opacity 160ms ease;
}
.ph-nav .menu-item-has-children:hover > a::before,
.ph-nav .menu-item-has-children:focus-within > a::before {
  transform: translateY(-35%) rotate(225deg);
  opacity: .9;
}
.ph-nav .sub-menu,
.ph-nav > .ph-nav__list > li:hover > .sub-menu,
.ph-nav > .ph-nav__list > li:focus-within > .sub-menu {
  pointer-events: auto !important;
}
.ph-nav .sub-menu {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 28px));
  max-height: 65vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(185, 200, 218, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 42px rgba(7, 29, 54, .13);
  z-index: 9999;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.ph-nav > .ph-nav__list > li:hover > .sub-menu,
.ph-nav > .ph-nav__list > li:focus-within > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.ph-nav > .ph-nav__list > li:nth-last-child(-n+3) > .sub-menu {
  right: auto !important;
  left: 0 !important;
}
.ph-nav .sub-menu li {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
}
.ph-nav .sub-menu a {
  display: flex;
  width: 100%;
  min-height: 36px;
  height: auto;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  border-radius: 10px;
  padding: 7px 10px !important;
  color: var(--ph-color-deep-blue) !important;
  font-size: 13px;
}
.ph-nav .sub-menu a::before,
.ph-nav .sub-menu a::after {
  display: none !important;
  content: none !important;
}
.ph-nav .sub-menu a:hover,
.ph-nav .sub-menu a:focus-visible {
  background: rgba(22, 99, 183, .075) !important;
  color: var(--ph-color-news-blue) !important;
  transform: none !important;
}
.ph-section--top-ad,
.ph-home .ph-section--top-ad {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  .ph-nav {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    min-height: 44px;
  }
  .ph-nav > .ph-nav__list {
    min-width: max-content;
    height: 34px;
  }
  .ph-nav .sub-menu {
    display: none !important;
  }
  .ph-nav .menu-item-has-children > a {
    padding-inline-end: 12px !important;
  }
  .ph-nav .menu-item-has-children > a::before {
    display: none !important;
    content: none !important;
  }
}

/* Native Menu Fix 5 â€” override previous no-dropdown rule with exact hover selector. */
.ph-nav > .ph-nav__list > li.menu-item-has-children:hover > .sub-menu,
.ph-nav > .ph-nav__list > li.menu-item-has-children:focus-within > .sub-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.ph-nav > .ph-nav__list > li.menu-item-has-children > .sub-menu {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 99999 !important;
}
.ph-nav > .ph-nav__list > li:nth-last-child(-n+3).menu-item-has-children > .sub-menu {
  right: auto !important;
  left: 0 !important;
}

/* Native Menu Dropdown Gap Fix â€” reduce space between parent nav item and dropdown. */
.ph-nav .sub-menu,
.ph-nav > .ph-nav__list > li.menu-item-has-children > .sub-menu {
  top: calc(100% + 3px) !important;
}

/* Native Menu Dropdown Tune 2 â€” tighter gap, stable down arrow, fit-content width. */
.ph-nav .sub-menu,
.ph-nav > .ph-nav__list > li.menu-item-has-children > .sub-menu {
  top: calc(100% + 1px) !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(320px, calc(100vw - 28px)) !important;
}
.ph-nav .menu-item-has-children:hover > a::before,
.ph-nav .menu-item-has-children:focus-within > a::before {
  transform: translateY(-65%) rotate(45deg) !important;
}
.ph-nav .sub-menu a {
  width: max-content !important;
  min-width: 100% !important;
}

/* Native Menu Arrow Tune â€” left in normal state, down on hover. */
.ph-nav .menu-item-has-children > a::before {
  border-inline-end: 0 !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: translateY(-50%) rotate(135deg) !important;
}
.ph-nav .menu-item-has-children:hover > a::before,
.ph-nav .menu-item-has-children:focus-within > a::before {
  transform: translateY(-50%) rotate(45deg) !important;
}

/* Sticky Compact Header â€” only the upper header sticks; navigation stays normal. */
.ph-site-header {
  position: static !important;
}
.ph-site-header .ph-container {
  position: relative;
}
.ph-header-main {
  position: sticky;
  top: 0;
  z-index: 1100;
  margin-inline: calc(var(--ph-gutter, 24px) * -1);
  padding-inline: var(--ph-gutter, 24px);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(185, 200, 218, .66);
  transition: padding-block 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}
body.ph-header-is-compact .ph-header-main {
  min-height: 58px;
  padding-block: 7px;
  box-shadow: 0 10px 26px rgba(7, 29, 54, .08);
}
body.ph-header-is-compact .ph-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
body.ph-header-is-compact .ph-brand__title {
  font-size: 18px;
}
body.ph-header-is-compact .ph-brand__subtitle {
  display: none;
}
body.ph-header-is-compact .ph-header-search__input {
  min-height: 38px;
}
body.ph-header-is-compact .ph-header-search__button,
body.ph-header-is-compact .ph-theme-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
}
.ph-nav {
  position: relative !important;
  top: auto !important;
  z-index: 120;
}
@media (max-width: 640px) {
  body.ph-header-is-compact .ph-brand__title {
    font-size: 16px;
  }
}

/* Sticky Compact Header Fix 2 â€” make compact upper header fixed; keep nav non-sticky. */
body.ph-header-is-compact .ph-header-main {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding-inline: max(24px, calc((100vw - var(--ph-container-wide, 1288px)) / 2)) !important;
  z-index: 9999 !important;
}
body.ph-header-is-compact.admin-bar .ph-header-main {
  top: 32px !important;
}
.ph-nav {
  position: relative !important;
  top: auto !important;
}
@media (max-width: 782px) {
  body.ph-header-is-compact.admin-bar .ph-header-main {
    top: 46px !important;
  }
}
@media (max-width: 640px) {
  body.ph-header-is-compact .ph-header-main {
    padding-inline: 13px !important;
  }
}

/* Sticky Compact Header Animation Fix â€” avoid broken position transition; use stable placeholder + subtle entrance. */
.ph-header-main {
  transition: box-shadow 140ms ease, background-color 140ms ease !important;
}
body.ph-header-is-compact .ph-site-header {
  padding-top: 58px;
}
body.ph-header-is-compact .ph-header-main {
  animation: phCompactHeaderIn 120ms ease-out both;
  transition: none !important;
}
@keyframes phCompactHeaderIn {
  from {
    opacity: .96;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ph-header-is-compact .ph-header-main {
    animation: none !important;
  }
}

/* Sticky Compact Header Smooth Fix â€” softer compact header entrance. */
body.ph-header-is-compact .ph-header-main {
  animation: phCompactHeaderSmoothIn 280ms cubic-bezier(.22, 1, .36, 1) both !important;
  will-change: transform, opacity;
}
@keyframes phCompactHeaderSmoothIn {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(.985);
    box-shadow: 0 0 0 rgba(7, 29, 54, 0);
  }
  65% {
    opacity: 1;
    transform: translateY(1px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 26px rgba(7, 29, 54, .08);
  }
}

/* Sticky Header BBC-style Fix â€” no pop/fixed jump; browser-native sticky + smooth shrink. */
.ph-site-header,
body.ph-header-is-compact .ph-site-header {
  padding-top: 0 !important;
}
.ph-header-main,
body.ph-header-is-compact .ph-header-main {
  position: sticky !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
  z-index: 9999 !important;
  margin-inline: calc(var(--ph-gutter, 24px) * -1) !important;
  padding-inline: var(--ph-gutter, 24px) !important;
  animation: none !important;
  will-change: auto !important;
  transition:
    min-height 320ms cubic-bezier(.22, 1, .36, 1),
    padding 320ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 240ms ease,
    background-color 240ms ease !important;
}
body.ph-header-is-compact .ph-header-main {
  min-height: 60px !important;
  padding-block: 8px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 8px 24px rgba(7, 29, 54, .075) !important;
}
.ph-logo,
.ph-brand__title,
.ph-brand__subtitle,
.ph-header-search__input,
.ph-header-search__button,
.ph-theme-toggle {
  transition:
    width 320ms cubic-bezier(.22, 1, .36, 1),
    height 320ms cubic-bezier(.22, 1, .36, 1),
    min-height 320ms cubic-bezier(.22, 1, .36, 1),
    font-size 320ms cubic-bezier(.22, 1, .36, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(.22, 1, .36, 1) !important;
}
body.ph-header-is-compact .ph-logo {
  width: 40px !important;
  height: 40px !important;
}
body.ph-header-is-compact .ph-brand__title {
  font-size: 18px !important;
}
body.ph-header-is-compact .ph-brand__subtitle {
  display: block !important;
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  max-height: 0 !important;
  overflow: hidden !important;
}
body.ph-header-is-compact .ph-header-search__input {
  min-height: 38px !important;
}
.ph-nav {
  position: relative !important;
  top: auto !important;
  z-index: 120 !important;
}
@media (max-width: 640px) {
  .ph-header-main,
  body.ph-header-is-compact .ph-header-main {
    margin-inline: -13px !important;
    padding-inline: 13px !important;
  }
}

/* Sticky Full Menu BBC Fix â€” keep whole header/menu sticky; smooth compact upper row. */
.ph-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, .97) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(7, 29, 54, .065);
}
body.ph-header-is-compact .ph-site-header {
  padding-top: 0 !important;
}
.ph-header-main,
body.ph-header-is-compact .ph-header-main {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  animation: none !important;
  transition:
    min-height 320ms cubic-bezier(.22, 1, .36, 1),
    padding-block 320ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 240ms ease !important;
}
body.ph-header-is-compact .ph-header-main {
  min-height: 58px !important;
  padding-block: 7px !important;
  box-shadow: none !important;
}
.ph-nav,
body.ph-header-is-compact .ph-nav {
  position: relative !important;
  top: auto !important;
  z-index: 120 !important;
}

/* Sticky Header Final â€” only upper header sticky; nav/menu scrolls normally. */
.ph-site-header {
  position: relative !important;
  top: auto !important;
  z-index: 100 !important;
  box-shadow: none !important;
}
.ph-header-main,
body.ph-header-is-compact .ph-header-main {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, .97) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(7, 29, 54, .065) !important;
}
.ph-nav,
body.ph-header-is-compact .ph-nav {
  position: relative !important;
  top: auto !important;
  z-index: 120 !important;
}

/* Sticky Main Only Restore â€” previous sticky feel, but nav/menu is not sticky. */
.ph-site-header,
body.ph-header-is-compact .ph-site-header {
  position: relative !important;
  top: auto !important;
  z-index: 100 !important;
  padding-top: 0 !important;
}
body.ph-header-is-compact .ph-site-header {
  padding-top: 58px !important;
}
.ph-header-main {
  position: relative !important;
}
body.ph-header-is-compact .ph-header-main {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding-inline: max(24px, calc((100vw - var(--ph-container-wide, 1288px)) / 2)) !important;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(7,29,54,.065) !important;
}
.ph-nav,
body.ph-header-is-compact .ph-nav {
  position: relative !important;
  top: auto !important;
  z-index: 120 !important;
}
@media (max-width: 640px) {
  body.ph-header-is-compact .ph-header-main {
    padding-inline: 13px !important;
  }
}

/* Sticky Header Revert â€” restore header behavior before sticky/compact experiments. */
body.ph-header-is-compact .ph-site-header,
.ph-site-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
  z-index: auto !important;
  padding-top: 0 !important;
  background: var(--ph-color-surface) !important;
  backdrop-filter: none !important;
  box-shadow: 0 8px 22px rgba(7,29,54,.045) !important;
}
body.ph-header-is-compact .ph-header-main,
.ph-header-main {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
  min-height: initial !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}
body.ph-header-is-compact .ph-logo,
.ph-logo {
  width: 48px !important;
  height: 48px !important;
}
body.ph-header-is-compact .ph-brand__title,
.ph-brand__title {
  font-size: 18px !important;
}
body.ph-header-is-compact .ph-brand__subtitle,
.ph-brand__subtitle {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  max-height: none !important;
  overflow: visible !important;
}
body.ph-header-is-compact .ph-header-search__input,
.ph-header-search__input {
  min-height: 44px !important;
}
body.ph-header-is-compact .ph-header-search__button,
body.ph-header-is-compact .ph-theme-toggle,
.ph-header-search__button,
.ph-theme-toggle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
}
body.ph-header-is-compact .ph-nav,
.ph-nav {
  position: relative !important;
  top: auto !important;
  z-index: 120 !important;
}
@media (max-width: 640px) {
  body.ph-header-is-compact .ph-logo,
  .ph-logo {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Remove boxed hover from editorial list items; keep text color feedback only. */
.ph-latest-item:hover,
.ph-compact-item:hover,
.ph-home #portalham-section-more .ph-compact-item:hover {
  background: transparent !important;
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}
.ph-side-card .ph-compact-item:hover,
.ph-home .ph-hero-text-item:hover {
  background: transparent !important;
  border-radius: 0 !important;
}

/* Transport TV section â€” Light Mode matching tv-desin.html reference */
.ph-home #portalham-section-tv {
  margin-block: var(--ph-space-8);
}
.ph-tv-box {
  background-color: var(--ph-color-surface);
  border-radius: var(--ph-radius-xl);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ph-color-border);
  direction: rtl;
}
.ph-tv-grid {
  display: grid;
  grid-template-columns: 1.75fr 1.25fr;
  gap: 24px;
  align-items: stretch;
}
/* Main video card */
.ph-tv-main {
  background: var(--ph-color-page-bg);
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ph-color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ph-tv-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 29, 54, 0.1);
}
.ph-tv-media-wrap {
  position: relative;
  width: 100%;
}
.ph-tv-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ph-color-authority-navy);
}
.ph-tv-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.ph-tv-main:hover .ph-tv-thumb {
  transform: scale(1.05);
}
.ph-tv-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-news-blue));
  color: #fff;
  font-weight: 800;
}
.ph-tv-placeholder--small {
  font-size: 11px;
}
.ph-tv-media--embed {
  aspect-ratio: 16 / 9;
  background: #000;
}
.ph-tv-media--embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Play button styling */
.ph-tv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 159, 28, 0.92);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 18px rgba(255, 159, 28, 0.5);
  z-index: 2;
  text-decoration: none !important;
}
.ph-tv-play-btn--main {
  width: 66px;
  height: 66px;
}
.ph-tv-play-btn--small {
  width: 36px;
  height: 36px;
}
.ph-tv-play-btn svg {
  margin-left: 2px;
}
.ph-tv-media-wrap:hover .ph-tv-play-btn--main,
.ph-tv-side-thumb-wrap:hover .ph-tv-play-btn--small {
  background-color: var(--ph-color-signal-orange);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 24px rgba(255, 159, 28, 0.7);
}
/* Badges */
.ph-tv-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ph-color-transport-cyan);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--ph-radius-pill);
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}
/* Main video content */
.ph-tv-main-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ph-tv-main-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 800;
}
.ph-tv-main-title a {
  color: var(--ph-color-authority-navy);
  transition: color 0.25s ease;
  text-decoration: none;
}
.ph-tv-main-title a:hover {
  color: var(--ph-color-signal-orange);
}
.ph-tv-main-excerpt {
  margin: 0;
  color: var(--ph-color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar videos */
.ph-tv-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}
.ph-tv-side-item {
  display: flex;
  gap: 12px;
  background: var(--ph-color-surface);
  border: 1px solid var(--ph-color-border);
  border-radius: var(--ph-radius-md);
  padding: 8px 10px;
  transition: all 0.3s ease;
  flex: 1;
  align-items: center;
}
.ph-tv-side-item:hover {
  background: var(--ph-color-surface-soft);
  border-color: #CCE0FF;
}
.ph-tv-side-thumb-wrap {
  position: relative;
  width: 120px;
  height: 100%;
  max-height: 76px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: var(--ph-radius-sm);
  overflow: hidden;
  background: var(--ph-color-authority-navy);
}
.ph-tv-side-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-tv-side-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
  padding-block: 2px;
}
.ph-tv-side-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ph-tv-side-title a {
  color: var(--ph-color-text-primary);
  transition: color 0.25s ease;
  text-decoration: none;
}
.ph-tv-side-title a:hover {
  color: var(--ph-color-signal-orange);
}
.ph-tv-side-date {
  font-size: 0.78rem;
  color: var(--ph-color-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .ph-tv-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ph-tv-side-thumb-wrap {
    width: 120px;
    height: 80px;
  }
}
@media (max-width: 576px) {
  .ph-tv-box {
    padding: 16px;
    border-radius: var(--ph-radius-lg);
  }
  .ph-tv-side-item {
    flex-direction: column;
  }
  .ph-tv-side-thumb-wrap {
    width: 100%;
    height: 170px;
  }
  .ph-tv-main-title {
    font-size: 1.08rem;
  }
}

/* Header width alignment with homepage grid. */
.ph-site-header > .ph-container,
.ph-topbar > .ph-container {
  width: min(var(--ph-container-wide), calc(100% - (var(--ph-gutter) * 2))) !important;
}

/* Header search clear button refinement. */
.ph-header-search__input {
  padding-inline-end: 76px !important;
}
.ph-header-search__input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}
.ph-header-search__clear {
  position: absolute;
  inset-inline-end: 39px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  background: transparent;
  color: #8A94A6;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  padding: 0;
  transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}
.ph-header-search__clear::before {
  content: "";
  width: 13px;
  height: 13px;
  display: block;
  transform: translateY(2px);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M4.22 3.16 8 6.94l3.78-3.78 1.06 1.06L9.06 8l3.78 3.78-1.06 1.06L8 9.06l-3.78 3.78-1.06-1.06L6.94 8 3.16 4.22z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M4.22 3.16 8 6.94l3.78-3.78 1.06 1.06L9.06 8l3.78 3.78-1.06 1.06L8 9.06l-3.78 3.78-1.06-1.06L6.94 8 3.16 4.22z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph-header-search:has(.ph-header-search__input:not(:placeholder-shown)) .ph-header-search__clear {
  opacity: 1;
  pointer-events: auto;
}
.ph-header-search__clear:hover,
.ph-header-search__clear:focus-visible {
  color: var(--ph-color-news-blue);
  background: rgba(22, 99, 183, .07);
  border-radius: 50% !important;
  box-shadow: none;
  outline: none;
  transform: translateY(-50%);
}

/* Topbar hover color alignment. */
.ph-topbar a:hover,
.ph-topbar a:focus-visible {
  color: #D7E9FF !important;
  text-decoration: none !important;
}
.ph-topbar a:hover strong,
.ph-topbar a:focus-visible strong {
  color: #FFD18A !important;
}

/* Homepage Hero Redesign â€” centered featured story with image rail and text rail. */
.ph-home .ph-section--top-ad {
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}
.ph-home #portalham-section-hero,
.ph-home .ph-section--hero {
  margin-top: 4px !important;
}
.ph-home .ph-hero-layout--triad {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(248px, .86fr) minmax(0, 1.52fr) minmax(260px, .9fr) !important;
  grid-template-areas: "left center right";
  gap: 22px;
  align-items: stretch;
}
.ph-home .ph-hero-layout--triad > * {
  direction: rtl;
  min-width: 0;
}
.ph-home .ph-hero-layout--triad .ph-hero-rail--text {
  grid-area: left;
}
.ph-home .ph-hero-layout--triad .ph-hero-card--featured {
  grid-area: center;
}
.ph-home .ph-hero-layout--triad .ph-hero-rail--images {
  grid-area: right;
}
.ph-home .ph-hero-rail {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(238,243,250,.50));
  border-color: rgba(185, 200, 218, .84);
  box-shadow: 0 18px 42px rgba(7, 29, 54, .09);
}
.ph-home .ph-hero-rail__title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: var(--ph-title-color) !important;
  font-size: 21px;
  font-weight: 900;
}
.ph-home .ph-hero-rail__title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: var(--ph-radius-pill);
  background: linear-gradient(90deg, var(--ph-color-signal-orange), var(--ph-color-news-blue));
}
.ph-home .ph-hero-mini-card {
  overflow: hidden;
  border-top: 1px solid rgba(185, 200, 218, .78);
  padding-top: 14px;
}
.ph-home .ph-hero-mini-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.ph-home .ph-hero-mini-card + .ph-hero-mini-card {
  margin-top: 16px;
}
.ph-home .ph-hero-mini-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-news-blue));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.ph-home .ph-hero-mini-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-home .ph-hero-mini-card__body {
  padding: 10px 0 0;
}
.ph-home .ph-hero-mini-card__category {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--ph-color-text-secondary);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.5;
}
.ph-home .ph-hero-mini-card__title {
  margin: 0;
  color: var(--ph-title-color) !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.62;
  letter-spacing: -.01em;
}
.ph-home .ph-hero-mini-card__title a {
  color: var(--ph-title-color) !important;
  text-decoration: none !important;
}
.ph-home .ph-hero-mini-card__excerpt {
  margin: 5px 0 0;
  color: var(--ph-color-text-secondary);
  font-size: 12.5px;
  line-height: 1.75;
}
.ph-home .ph-hero-mini-card__title a:hover,
.ph-home .ph-hero-mini-card:hover .ph-hero-mini-card__title a {
  color: var(--ph-link-hover) !important;
}
.ph-home .ph-hero-rail--text {
  display: grid;
  align-content: start;
}
.ph-home .ph-hero-text-item {
  display: block;
  padding: 12px 0;
}
.ph-home .ph-hero-text-item:first-of-type {
  border-top: 0;
}
.ph-home .ph-hero-text-item .ph-latest-item__num {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 99, 183, .09);
  color: var(--ph-color-news-blue);
  font-size: 12px;
  font-weight: 900;
}
.ph-home .ph-hero-text-item__title {
  color: var(--ph-link-color) !important;
  font-size: 13.8px;
  font-weight: 850;
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.ph-home .ph-hero-text-item:hover .ph-hero-text-item__title {
  color: var(--ph-link-hover) !important;
}
.ph-home .ph-hero-card--featured .ph-hero-card__media {
  min-height: 342px;
}
.ph-home .ph-hero-card--featured .ph-hero-card__body {
  padding: 22px 26px 24px;
}
.ph-home .ph-hero-card--featured .ph-hero-card__title {
  font-size: clamp(21px, 1.85vw, 28px);
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .ph-home .ph-hero-layout--triad {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "center"
      "right"
      "left";
    gap: 18px;
  }
  .ph-home .ph-hero-rail--images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .ph-home .ph-hero-mini-card + .ph-hero-mini-card {
    margin-top: 0;
  }
  .ph-home .ph-hero-card--featured .ph-hero-card__media {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .ph-home .ph-hero-layout--triad {
    gap: 12px;
  }
  .ph-home .ph-hero-rail {
    padding: 13px;
    border-radius: 18px;
  }
  .ph-home .ph-hero-rail--images {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ph-home .ph-hero-mini-card {
    direction: ltr;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 100px;
    border-radius: 0;
  }
  .ph-home .ph-hero-mini-card > * {
    direction: rtl;
  }
  .ph-home .ph-hero-mini-card__media {
    aspect-ratio: auto;
    min-height: 100px;
    border-radius: 14px;
  }
  .ph-home .ph-hero-mini-card__body {
    padding: 0 10px;
    min-width: 0;
    overflow: hidden;
  }
  .ph-home .ph-hero-mini-card__category {
    margin-bottom: 3px;
    font-size: 10.5px;
  }
  .ph-home .ph-hero-mini-card__title {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.55;
  }
  .ph-home .ph-hero-card--featured .ph-hero-card__media {
    min-height: 174px;
  }
  .ph-home .ph-hero-card--featured .ph-hero-card__body {
    padding: 14px 15px 16px;
  }
  .ph-home .ph-hero-card--featured .ph-hero-card__title {
    font-size: 22px;
    line-height: 1.5;
  }
  .ph-home .ph-hero-text-item {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-block: 8px;
  }
  .ph-home .ph-hero-text-item__title {
    font-size: 12.8px;
    line-height: 1.58;
  }
}

/* ==========================================================================
   Category & Archive Page Styling (ØµÙØ­Ù‡ Ø¯Ø³ØªÙ‡â€ŒØ¨Ù†Ø¯ÛŒ Ùˆ Ø¢Ø±Ø´ÛŒÙˆ)
   ========================================================================== */

.ph-category-page {
  width: 100%;
  padding-bottom: var(--ph-space-16);
}

.ph-category-header {
  background: var(--ph-color-surface);
  border: 1px solid var(--ph-color-border);
  border-top: 4px solid var(--ph-color-news-blue);
  border-radius: var(--ph-radius-2xl);
  padding: var(--ph-space-6) var(--ph-space-8);
  margin-bottom: var(--ph-space-6);
  box-shadow: var(--ph-shadow-md);
  position: relative;
  overflow: hidden;
}

/* Category Specific Top Border Colors */
.ph-category-header--road { border-top-color: var(--ph-cat-road) !important; }
.ph-category-header--rail { border-top-color: var(--ph-cat-rail) !important; }
.ph-category-header--maritime { border-top-color: var(--ph-cat-maritime) !important; }
.ph-category-header--aviation { border-top-color: var(--ph-cat-aviation) !important; }
.ph-category-header--economy { border-top-color: var(--ph-cat-economy) !important; }
.ph-category-header--analysis { border-top-color: var(--ph-cat-analysis) !important; }
.ph-category-header--infographic { border-top-color: var(--ph-cat-infographic) !important; }
.ph-category-header--breaking { border-top-color: var(--ph-color-breaking-red) !important; }

[data-theme="dark"] .ph-category-header {
  background: var(--ph-color-surface);
  border-color: var(--ph-color-border);
  border-top-color: var(--ph-color-news-blue);
}

.ph-category-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-4);
  margin-bottom: var(--ph-space-3);
}

.ph-category-header__count {
  font-size: var(--ph-text-xs);
  color: var(--ph-color-text-secondary);
  font-weight: 700;
  background: var(--ph-color-surface-soft);
  padding: 4px 14px;
  border-radius: var(--ph-radius-pill);
  border: 1px solid var(--ph-color-border);
}

[data-theme="dark"] .ph-category-header__count {
  background: var(--ph-color-surface-soft);
  color: var(--ph-color-text-secondary);
  border-color: var(--ph-color-border);
}

.ph-category-header__title {
  margin: 0;
  color: var(--ph-color-authority-navy);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.35;
}

[data-theme="dark"] .ph-category-header__title {
  color: var(--ph-color-text-primary);
}

.ph-category-header__desc {
  margin-top: var(--ph-space-3);
  color: var(--ph-color-text-secondary);
  font-size: 15px;
  line-height: 1.85;
  border-top: 1px dashed var(--ph-color-border);
  padding-top: var(--ph-space-3);
}

.ph-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--ph-space-8);
  align-items: start;
  width: 100%;
}

.ph-category-main {
  min-width: 0;
}

.ph-category-main .ph-category-grid,
.ph-card-grid.ph-category-grid,
.ph-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--ph-space-6) var(--ph-space-5);
  align-items: stretch;
  margin-bottom: var(--ph-space-8);
}

.ph-category-grid .ph-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ph-color-surface);
  border: 1px solid var(--ph-color-border);
  border-radius: var(--ph-radius-xl);
  overflow: hidden;
  box-shadow: var(--ph-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ph-category-grid .ph-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ph-shadow-md);
}

.ph-category-grid .ph-card__media {
  aspect-ratio: 16 / 9.5;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-news-blue));
}

.ph-category-grid .ph-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ph-category-grid .ph-card:hover .ph-card__media img {
  transform: scale(1.04);
}

.ph-category-grid .ph-card__body {
  padding: var(--ph-space-4) var(--ph-space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ph-category-grid .ph-card__title {
  margin: var(--ph-space-2) 0 var(--ph-space-2);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--ph-color-authority-navy);
}

[data-theme="dark"] .ph-category-grid .ph-card__title {
  color: var(--ph-color-text-primary);
}

.ph-category-grid .ph-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ph-category-grid .ph-card__title a:hover {
  color: var(--ph-color-news-blue);
}

.ph-category-grid .ph-card__excerpt {
  font-size: 13.5px;
  color: var(--ph-color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--ph-space-3);
}

.ph-category-grid .ph-card .ph-meta {
  margin-top: auto;
  padding-top: var(--ph-space-2);
  border-top: 1px solid var(--ph-color-border);
  font-size: 12px;
  color: var(--ph-color-text-muted);
}

/* Pagination Styling */
.ph-pagination {
  margin-top: var(--ph-space-8);
  margin-bottom: var(--ph-space-8);
  padding-top: var(--ph-space-6);
  border-top: 1px solid var(--ph-color-border);
  text-align: center;
}

.ph-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ph-space-2);
}

.ph-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  border-radius: var(--ph-radius-pill);
  border: 1px solid var(--ph-color-border);
  background: var(--ph-color-surface);
  color: var(--ph-color-authority-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  padding-inline: 14px;
  box-shadow: var(--ph-shadow-xs);
}

[data-theme="dark"] .ph-pagination .page-numbers {
  color: var(--ph-color-text-primary);
  background: var(--ph-color-surface-soft);
  border-color: var(--ph-color-border);
}

.ph-pagination .page-numbers:hover {
  border-color: var(--ph-color-news-blue);
  background: var(--ph-color-surface-soft);
  color: var(--ph-color-news-blue);
  transform: translateY(-1px);
  box-shadow: var(--ph-shadow-sm);
}

.ph-pagination .page-numbers.current {
  background: var(--ph-color-news-blue);
  color: #ffffff !important;
  border-color: var(--ph-color-news-blue);
  box-shadow: var(--ph-shadow-sm);
}

.ph-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ph-pagination .page-numbers.prev,
.ph-pagination .page-numbers.next {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: auto;
  padding-inline: 12px;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.ph-pagination .page-numbers.prev:hover,
.ph-pagination .page-numbers.next:hover {
  background: transparent !important;
  border: 0 !important;
  color: var(--ph-color-news-blue) !important;
  transform: scale(1.25);
  box-shadow: none !important;
}

/* Empty state */
.ph-empty-state {
  padding: var(--ph-space-12) var(--ph-space-6);
  text-align: center;
  background: var(--ph-color-surface);
  border: 1px solid var(--ph-color-border);
  border-radius: var(--ph-radius-2xl);
  margin-block: var(--ph-space-8);
}

.ph-empty-state h2 {
  color: var(--ph-color-authority-navy);
  margin-bottom: var(--ph-space-3);
  font-size: 22px;
}

[data-theme="dark"] .ph-empty-state h2 {
  color: var(--ph-color-text-primary);
}

.ph-empty-state p {
  color: var(--ph-color-text-secondary);
  font-size: 15px;
}

/* Responsive adjustments for Category layout */
@media (max-width: 1023px) {
  .ph-category-layout {
    grid-template-columns: 1fr;
    gap: var(--ph-space-6);
  }
  .ph-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ph-category-header {
    padding: var(--ph-space-5);
    border-radius: var(--ph-radius-xl);
  }
  .ph-category-header__title {
    font-size: 22px;
  }
  .ph-category-grid {
    grid-template-columns: 1fr;
    gap: var(--ph-space-4);
  }
}

/* ==========================================================================
   Search Results Page
   ========================================================================== */

.ph-search-page {
  width: 100%;
  padding-bottom: var(--ph-space-16);
}

.ph-search-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .74fr);
  align-items: center;
  gap: var(--ph-space-8);
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(22, 99, 183, .18);
  border-radius: var(--ph-radius-2xl);
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 163, 180, .17), transparent 31%),
    linear-gradient(135deg, #F8FBFF 0%, var(--ph-color-surface) 62%, #FFF8EB 100%);
  box-shadow: var(--ph-shadow-md);
}

.ph-search-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -80px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border: 32px solid rgba(22, 99, 183, .055);
  border-radius: 50%;
}

[data-theme="dark"] .ph-search-hero {
  border-color: var(--ph-color-border);
  background:
    radial-gradient(circle at 8% 10%, rgba(38, 198, 218, .13), transparent 31%),
    linear-gradient(135deg, var(--ph-color-surface) 0%, var(--ph-color-surface) 62%, var(--ph-color-surface-warm) 100%);
}

.ph-search-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ph-color-news-blue);
  font-size: var(--ph-text-sm);
  font-weight: 900;
}

.ph-search-hero__eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: var(--ph-radius-pill);
  background: var(--ph-color-signal-orange);
}

.ph-search-hero__title {
  margin: 8px 0 6px;
  color: var(--ph-color-authority-navy);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.5;
}

.ph-search-hero__title span {
  color: var(--ph-color-news-blue);
}

[data-theme="dark"] .ph-search-hero__title {
  color: var(--ph-color-text-primary);
}

.ph-search-hero__summary {
  margin: 0;
  color: var(--ph-color-text-secondary);
  font-size: 14px;
}

.ph-search-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--ph-color-border-strong);
  border-radius: var(--ph-radius-pill);
  background: var(--ph-color-surface);
  box-shadow: 0 12px 30px rgba(7, 29, 54, .10);
}

.ph-search-form:focus-within {
  border-color: var(--ph-color-news-blue);
  box-shadow: var(--ph-shadow-focus), 0 14px 34px rgba(7, 29, 54, .11);
}

.ph-search-form__icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  color: var(--ph-color-text-muted);
  pointer-events: none;
}

.ph-search-form__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ph-search-form__input {
  min-width: 0;
  min-height: 48px;
  padding: 4px 44px 4px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ph-color-text-primary);
  font: inherit;
  font-size: 14px;
}

.ph-search-form__input::placeholder {
  color: var(--ph-color-text-muted);
}

.ph-search-form__submit {
  min-height: 46px;
  padding-inline: 24px;
  border: 0;
  border-radius: var(--ph-radius-pill);
  background: var(--ph-color-news-blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.ph-search-form__submit:hover {
  background: var(--ph-color-deep-blue);
  color: #fff;
  transform: translateY(-1px);
}

.ph-search-page > .ph-container-wide > .ph-ad--archive_top {
  margin-block: var(--ph-space-5) var(--ph-space-8);
}

.ph-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: var(--ph-space-8);
}

.ph-search-main {
  min-width: 0;
}

.ph-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-4);
  margin-bottom: var(--ph-space-4);
  padding-bottom: var(--ph-space-3);
  border-bottom: 3px solid var(--ph-color-authority-navy);
}

.ph-search-results-head h2 {
  margin: 0;
  color: var(--ph-color-authority-navy);
  font-size: 22px;
  font-weight: 900;
}

.ph-search-results-head > span {
  color: var(--ph-color-text-secondary);
  font-size: var(--ph-text-xs);
  font-weight: 800;
}

[data-theme="dark"] .ph-search-results-head,
[data-theme="dark"] .ph-search-results-head h2 {
  border-color: var(--ph-color-border-strong);
  color: var(--ph-color-text-primary);
}

.ph-search-results {
  display: grid;
  gap: var(--ph-space-4);
}

.ph-search-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--ph-color-border);
  border-radius: var(--ph-radius-xl);
  background: var(--ph-color-surface);
  box-shadow: var(--ph-shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ph-search-card:hover {
  border-color: rgba(22, 99, 183, .34);
  box-shadow: var(--ph-shadow-md);
  transform: translateY(-1px);
}

.ph-search-card__media {
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ph-color-authority-navy), var(--ph-color-news-blue));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ph-search-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.ph-search-card:hover .ph-search-card__media img {
  transform: scale(1.035);
}

.ph-search-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 18px 20px;
}

.ph-search-card__title {
  margin: 7px 0 5px;
  color: var(--ph-color-authority-navy);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.65;
}

.ph-search-card__title a:hover {
  color: var(--ph-color-news-blue);
}

[data-theme="dark"] .ph-search-card__title {
  color: var(--ph-color-text-primary);
}

.ph-search-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ph-color-text-secondary);
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ph-search-card__date {
  margin-top: auto;
  padding-top: 8px;
  color: var(--ph-color-text-muted);
  font-size: var(--ph-text-xs);
}

.ph-search-categories__list {
  display: grid;
}

.ph-search-categories__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-3);
  padding-block: 9px;
  border-top: 1px solid var(--ph-color-border);
  color: var(--ph-color-text-primary);
  font-size: 13px;
  font-weight: 750;
}

.ph-search-categories__list a:first-child {
  border-top: 0;
}

.ph-search-categories__list a:hover {
  color: var(--ph-color-news-blue);
}

.ph-search-categories__list small {
  min-width: 30px;
  padding: 1px 8px;
  border-radius: var(--ph-radius-pill);
  background: var(--ph-color-surface-soft);
  color: var(--ph-color-text-secondary);
  text-align: center;
  font-size: 11px;
}

.ph-search-empty {
  max-width: 820px;
  margin: var(--ph-space-8) auto var(--ph-space-12);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--ph-color-border);
  border-radius: var(--ph-radius-2xl);
  background: var(--ph-color-surface);
  box-shadow: var(--ph-shadow-md);
  text-align: center;
}

.ph-search-empty__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ph-color-surface-soft);
  color: var(--ph-color-news-blue);
}

.ph-search-empty__icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.ph-search-empty h2 {
  margin: 0 0 8px;
  color: var(--ph-color-authority-navy);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.55;
}

[data-theme="dark"] .ph-search-empty h2 {
  color: var(--ph-color-text-primary);
}

.ph-search-empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ph-color-text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.ph-search-empty__tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.ph-search-empty__tips a {
  padding: 5px 13px;
  border: 1px solid var(--ph-color-border);
  border-radius: var(--ph-radius-pill);
  background: var(--ph-color-surface-soft);
  color: var(--ph-color-text-secondary);
  font-size: 12px;
  font-weight: 750;
}

.ph-search-empty__tips a:hover {
  border-color: var(--ph-color-news-blue);
  color: var(--ph-color-news-blue);
}

@media (max-width: 1023px) {
  .ph-search-hero {
    grid-template-columns: 1fr;
    gap: var(--ph-space-5);
  }
  .ph-search-layout {
    grid-template-columns: 1fr;
  }
  .ph-search-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .ph-search-sidebar > .ph-ad {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .ph-search-page {
    padding-bottom: var(--ph-space-10);
  }
  .ph-search-hero {
    padding: 20px 16px;
    border-radius: var(--ph-radius-xl);
  }
  .ph-search-hero__title {
    font-size: 23px;
  }
  .ph-search-form {
    grid-template-columns: 1fr;
    border-radius: var(--ph-radius-xl);
  }
  .ph-search-form__icon {
    top: 31px;
  }
  .ph-search-form__input {
    min-height: 48px;
  }
  .ph-search-form__submit {
    width: 100%;
  }
  .ph-search-page > .ph-container-wide > .ph-ad--archive_top {
    margin-block: var(--ph-space-4) var(--ph-space-6);
  }
  .ph-search-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 138px;
  }
  .ph-search-card__body {
    padding: 12px;
  }
  .ph-search-card__body .ph-badge {
    min-height: 23px;
    padding-inline: 8px;
    font-size: 10px;
  }
  .ph-search-card__title {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.6;
  }
  .ph-search-card__excerpt {
    display: none;
  }
  .ph-search-card__date {
    padding-top: 5px;
    font-size: 11px;
  }
  .ph-search-sidebar {
    grid-template-columns: 1fr;
  }
  .ph-search-empty {
    margin-block: var(--ph-space-6) var(--ph-space-8);
    padding: 30px 18px;
  }
  .ph-search-latest .ph-card-grid {
    grid-template-columns: 1fr;
  }
}


