@charset "utf-8";


/* 상단 배너 베이스 메인 컨테이너 */
.sub-visual.intro-visual {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: #f4f7fa; /* 이미지 로드 전 임시 베이스 배경 */
    
    /* 🎯 [핵심 추가] 딱 붙어버린 게시판 본문과의 중간 여백을 시원하게 50px 벌려줍니다 */
    margin-bottom: 50px; 
}

/* 배경 이미지 최적화: 화사한 색감을 유지하며 3px만 부드럽게 뭉개 가독성 베이스 마련 */
.sub-visual.intro-visual .visual-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 생성한 고해상도 학원 전경 커뮤니티 이미지 경로 */
    background-image: url('../images/notice_banner.jpg'); 
    background-size: cover;
    background-position: center;
    filter: blur(3px); 
    transform: scale(1.05); /* 블러 가장자리 하얀 현상 방지 */
    z-index: 1;
}

/* 글자 영역(Hero Text) 기본 레이어 설정 */
.sub-visual.intro-visual .hero-text-area {
    position: relative;
    z-index: 10; /* 배경 레이어보다 무조건 위로 띄움 */
}

/* 메인 타이틀: 가독성 높은 진한 딥네이비 블루 색상 */
.sub-visual.intro-visual .hero-text-area h2.oa-title {
    color: #0f172a !important; /* 눈이 편안하고 또렷한 딥네이비 색상 */
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 
                 0 1px 3px rgba(15, 23, 42, 0.05) !important; /* 글자 뒤를 하얗게 밝혀 가독성 확보 */
    letter-spacing: -1.5px;
}

/* 서브 설명글: 차분하고 고급스러운 미드나잇 블루 색상 */
.sub-visual.intro-visual .hero-text-area p {
    color: #1e3a8a !important; /* 신뢰감을 주는 진한 블루 색상 고정 */
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8) !important;
    letter-spacing: -0.5px;
}

/* INSTITUTION PROFILE 뱃지: 글자색과 매칭되도록 진한 네이비 테두리와 글자 적용 */
.sub-visual.intro-visual .hero-text-area .badge {
    background-color: rgba(15, 23, 42, 0.08) !important; /* 은은한 네이비 투명 배경 */
    color: #0f172a !important; /* 글자색 네이비 */
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

/* 사선 광선(::before)과 에메랄드 오로라(::after) 가상 요소 비활성화 유지 */
.sub-visual.intro-visual::before,
.sub-visual.intro-visual::after {
    display: none !important;
    content: none !important;
}

/* 모바일 환경에서 배너 여백 조절 */
@media (max-width: 768px) {
    .sub-visual.intro-visual {
        margin-bottom: 30px; /* 모바일은 화면 크기에 맞춰 하단 여백을 30px로 슬림화 */
        min-height: 220px;
    }
}



/* ==========================================================================
   갈매IT컴퓨터아트학원 - 홍보마당 전용 커스텀 스타일시트
   ========================================================================== */

.promotion-container {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 15px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 상단 타이틀 구역 */
.promotion-header-box {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #003366; /* 메인 블루 테두리 */
    padding-bottom: 25px;
}

.promotion-main-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #003366;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

.promotion-sub-title {
    font-size: 1.05rem;
    color: #666;
    margin: 0;
}

/* 검색 바 콤포넌트 */
.promotion-search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.promotion-search-form {
    display: flex;
    gap: 6px;
    max-width: 450px;
    width: 100%;
}

.search-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    background-color: #fff;
}

.search-input-group {
    display: flex;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.search-input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
}

.search-submit-btn {
    background: #003366;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit-btn:hover {
    background: #ff4785; /* 포인트 핑크 */
}

/* 반응형 명품 테이블 스펙 */
.promotion-table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.promotion-custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
    min-width: 700px;
}

.promotion-custom-table th {
    background-color: #f8fba0; /* 헤더 전용 고급 연한 배경 */
    background: linear-gradient(to bottom, #f9fbfe, #f1f5fa);
    color: #333;
    font-weight: 700;
    padding: 16px 12px;
    border-bottom: 2px solid #e2e8f0;
}

.promotion-custom-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f3f7;
    color: #444;
    vertical-align: middle;
}

/* 테이블 각 열 세부 디자인 */
.table-row-pinned {
    background-color: #fdf8f9 !important; /* 고정물 연한 핑크톤 */
}

.table-row-normal:hover {
    background-color: #fcfdfe;
}

.pinned-badge {
    background-color: #ff4785;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.title-td {
    text-align: left !important;
    padding-left: 20px !important;
}

.title-link {
    color: #222;
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.title-link:hover {
    color: #ff4785 !important;
}

.file-icon-indicator {
    color: #888;
    font-size: 1rem;
}

.date-text, .hit-text, .num-text {
    color: #777;
    font-size: 0.9rem;
}

.promotion-empty-tr {
    padding: 60px 0 !important;
    color: #999 !important;
    font-size: 1.05rem;
}

/* 하단 페이지네이션 & 글쓰기 버튼 정렬 팩 */
.promotion-footer-action-block {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 35px;
    min-height: 45px;
}

.pagination-layout-center {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-layout-center .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-layout-center .page-link:hover {
    border-color: #003366;
    color: #003366;
    background-color: #f4f7fc;
}

.pagination-layout-center .page-link.active.selected {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: #fff !important;
    font-weight: 700;
}

.admin-write-btn-right {
    position: absolute;
    right: 0;
    top: 0;
}

.btn-promotion-write-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff4785;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255,71,133,0.2);
    transition: all 0.2s;
}

.btn-promotion-write-action:hover {
    background-color: #e03570;
    transform: translateY(-2px);
}

/* 모바일 전용 초소형 화면 가독성 보호 반응형 */
@media (max-width: 768px) {
    .promotion-main-title { font-size: 1.9rem; }
    .promotion-header-box { margin-bottom: 25px; padding-bottom: 15px; }
    .promotion-search-wrapper { justify-content: center; }
    .promotion-footer-action-block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .admin-write-btn-right {
        position: static;
        width: 100%;
        text-align: center;
    }
    .btn-promotion-write-action {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   [추가] 홍보마당 본문 상세 보기 이미지 및 테이블 모바일 삐져나옴 방지
   ========================================================================== */

/* 본문 영역 내부의 이미지가 본문 가로폭(100%)을 절대 넘지 못하도록 강제 조절 */
.view-content-body img {
    max-width: 100% !important;
    height: auto !important; /* 가로가 줄어든 만큼 세로 비율도 자동으로 유지 */
    object-fit: contain;
}

/* 에디터에서 삽입된 가로로 긴 표(테이블)가 모바일에서 화면을 찢고 나가는 현상 방지 */
.view-content-body table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    word-break: break-all !important;
}

/* 에디터 내부 피겨(figure) 태그 대응 */
.view-content-body figure {
    max-width: 100% !important;
    margin: 10px auto !important;
    text-align: center;
}

.view-content-body figure img {
    display: inline-block;
}