/*
Theme Name: Airmedia
Template: twentytwentyfive
Description: Twenty Twenty-Five 하위 테마 — 구 bedford 디자인(좌측 사이드바 + 세로 메뉴)을 재현
Version: 1.0.0
Text Domain: airmedia
*/

/* ── 전체 배치: 좌 280px 흰 사이드바 | 회색 본문 | 우 52px 흰 띠 (구 bedford) ── */
body { background: #f5f5f5; color: #212121; font-size: 13px; }
.am-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr) 52px; min-height: 100vh; }
.am-wrap::after { content: ""; background: #fff; }
.am-side-wrap { background: #fff; }
.am-side { position: sticky; top: 0; padding: 63px 0 43px; background: #fff; }
.admin-bar .am-side { top: 32px; }
.am-main { padding: 40px 15px 65px; }
img { max-width: 100%; height: auto; }

/* ── 로고 ── */
.am-logo { text-align: center; margin: 0 0 58px; line-height: 0; }

/* ── 세로 메뉴: 줄마다 구분선, 현재 메뉴의 하위만 펼침 ── */
.am-nav { border-top: 1px solid #ededed; margin-bottom: 53px; }
.am-nav, .am-nav ul { width: 100%; }
.am-nav .wp-block-navigation__container { gap: 0; width: 100%; }
.am-nav .wp-block-navigation-item { width: 100%; flex-direction: column; align-items: stretch; }
.am-nav.wp-block-navigation .wp-block-navigation-item__content { display: block; box-sizing: border-box; height: 59px; padding: 19px 35px !important;
    border-bottom: 1px solid #ededed; color: #212121; font-size: 14px; line-height: 20px; font-weight: 600 !important; text-transform: uppercase; }
.am-nav .wp-block-navigation-item__content:hover { color: #212121; background: #fafafa; }
.am-nav .current-menu-item > .wp-block-navigation-item__content,
.am-nav .current-menu-ancestor > .wp-block-navigation-item__content { font-weight: 700; }
.am-nav .wp-block-navigation__submenu-icon { display: none; }
.am-nav .wp-block-navigation__submenu-container { position: static !important; display: none !important; width: 100% !important;
    min-width: 0 !important; border: 0 !important; box-shadow: none; opacity: 1 !important; visibility: visible !important;
    height: auto !important; overflow: visible !important; background: #fff !important; padding: 0 !important; }
.am-nav .current-menu-item > .wp-block-navigation__submenu-container,
.am-nav .current-menu-ancestor > .wp-block-navigation__submenu-container { display: block !important; }
.am-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 14px; font-weight: 400;
    text-transform: none; padding: 19px 1em 19px 70px !important; }
.am-nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding-left: 105px !important; }
.am-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { font-weight: 600; }

/* ── 사이드바 아래: 사이트맵 / 패밀리사이트 / 저작권 ── */
.am-bottom { text-align: center; font-size: 13px; }
.am-bottom a { color: #212121; }
.am-bottom p { margin: 0 0 10px; }
.am-family { list-style: none; margin: 0 35px 40px; padding: 10px 20px; border: 1px dotted #ccc; text-align: left; }
.am-family li a { display: block; padding: 4px 0; }
.am-copy { padding: 0 60px; line-height: 21px; }

/* ── 본문 ── */
.am-main h1.wp-block-post-title, .am-page-title { font-size: 36px; line-height: 1.2; font-weight: 700; text-transform: uppercase;
    margin: 0 0 5px; padding: 26px 0 17px; border-bottom: 1px solid #dedede; }
.am-main .wp-block-post-content { font-size: 15px; line-height: 24px; margin-top: 1.5em; }
.am-main .wp-block-post-content a { color: #8cab4a; text-decoration: underline; }
.am-row { gap: 10px !important; margin-bottom: 30px; }
.am-row > .margin-left { margin-left: 30px; flex: 0 0 250px !important; }
.am-row img { width: auto; }
.am-row, .am-row p, .am-row a { font-size: 13px; line-height: 21px; }
.am-main .wp-block-post-content .am-row a { color: #212121; text-decoration: none; }
.am-block-title { position: relative; font-size: 18px; line-height: 1.2; font-weight: 700; text-transform: uppercase; margin: 0 0 5px; padding: 26px 0 17px; border-bottom: 1px solid #dedede; }
/* 구 bedford 제목 밑줄의 작은 화살표(회색 마름모) */
.am-block-title::after, .am-page-title::after, .am-main h1.wp-block-post-title::after { content: ""; position: absolute; left: 35px; bottom: -6px;
    width: 10px; height: 10px; background: #f5f5f5; border-right: 1px solid #dedede; border-bottom: 1px solid #dedede; transform: rotate(45deg); }
.am-page-title, .am-main h1.wp-block-post-title { position: relative; }
.wp-block-image { margin: 0 0 10px; }

/* ── 새소식 목록 / 최신글 ── */
.am-board .wp-block-post-template { border-top: 2px solid #212121; margin: 20px 0; padding: 0; }
.am-board-row { padding: 14px 8px; border-bottom: 1px solid #e5e5e5; gap: 20px; }
.am-board-row h3 { font-size: 15px; font-weight: 400; margin: 0; padding: 0; border: 0; text-transform: none; }
.am-main .wp-block-post-content .am-board-row a { color: #212121; text-decoration: none; }
.am-board-row .wp-block-post-date { color: #999; white-space: nowrap; }
.am-latest { padding: 0; margin: 15px 0 0; list-style: none; border-top: 1px solid #dedede; }
.am-latest li { padding: 15px 5px; border-bottom: 1px solid #dedede; }
.am-latest .wp-block-latest-posts__post-title { font-weight: 700; color: #212121; }
.am-latest .wp-block-latest-posts__post-full-content { margin-top: 10px; }
.am-latest .wp-block-latest-posts__post-full-content p { margin: 0 0 8px; }

/* ── 모바일 (구 bedford: 959px 이하에서 사이드바가 위로) ── */
@media (max-width: 959px) {
  .am-wrap { grid-template-columns: minmax(0, 1fr); }
  .am-wrap::after { display: none; }
  .am-side { position: relative; padding: 43px 0 20px; }
  .am-logo { margin-bottom: 23px; }
  .am-nav { margin-bottom: 20px; }
  .am-row { flex-wrap: wrap !important; }
}

/* 메인: 왼쪽 NEWS 옆 오른쪽 두 줄 (구 float 배치) */
.am-stack > .am-row { margin-bottom: 30px; }
.am-stack > .am-row:last-child { margin-bottom: 0; }
.am-latest li { padding: 12px 5px; }
.am-latest .wp-block-latest-posts__post-date { display: block; color: #999; font-size: 12px; margin-top: 2px; }
