@charset "utf-8";
/* 공지사항(병원 이용안내) 상단 히어로와 본문 폭 */
.notice-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 275;          /* 기존 1920:550 의 50% */
    max-height: 275px;
    --hdr: 90px;                       /* 상단 메뉴 높이. community_notice.php 스크립트가 실제 값으로 바꿈 */
    min-height: calc(var(--hdr) + 95px);
    background: linear-gradient(90deg, #08205e 0%, #0b2c78 70%, #14296e 100%);
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: var(--hdr);           /* PC에서는 상단 메뉴가 히어로 위에 겹침 */
    overflow: hidden;
}
/* 첨부 사진: 메뉴 아래 남은 높이(100% - 메뉴 높이)에 모자~턱이 들어오게 크기·위치 계산,
   오른쪽 퀵메뉴(121px)를 피하고 위·좌·우 경계는 배경색으로 녹아들게 */
.notice-hero-photo {
    position: absolute;
    top: calc(var(--hdr) - (100% - var(--hdr)) * 0.19);
    right: 130px;
    height: calc((100% - var(--hdr)) * 2.15);
    aspect-ratio: 1738 / 905;
    background: url("../img/notice_top.webp") no-repeat center / cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%);
    mask-composite: intersect;
}
.notice-hero-inner {
    position: relative;
    width: 100%;
    max-width: 1230px;                 /* 게시판 표(1200px)와 왼쪽 선을 맞춤 */
    margin: 0 auto;
    padding: 0 15px;
    text-align: left;
}
.notice-hero-sub {
    margin: 0 0 6px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #9fd3ff;
}
.notice-hero-title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.notice-hero-desc {
    margin: 8px 0 0;
    padding-left: 12px;
    border-left: 3px solid #29a8e0;
    font-size: 0.95rem;
    color: #e3eefc;
}

.notice-wrap {
    width: 100%;
    max-width: 1230px; /* 좌우 여백 15px 포함 → 공지 게시판 1200px */
    margin: 0 auto;
    padding: 60px 15px 100px;
}

@media (max-width: 767px) {
    .notice-hero {
        aspect-ratio: auto;
        min-height: 0;
        height: 100px;                 /* 기존 모바일 200px 의 50% */
        padding-top: 0;                /* 모바일은 상단 메뉴가 히어로 위에 있음 */
    }
    .notice-hero-photo {
        top: -8px; right: -20px; height: 145%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    }
    .notice-hero-sub { font-size: 0.8rem; margin-bottom: 2px; }
    .notice-hero-title { font-size: 1.6rem; }
    .notice-hero-desc { display: none; }
    .notice-wrap { padding: 30px 15px 60px; }
}
