/* ================================================================
   이벤트 · 영문 손님 화면                        ★2026-09-11 신설
   ----------------------------------------------------------------
   색채계획 v7 (2026-08-28) 기준
     주색 #1385B8 · 눌림 #0D6C9B · 어두운 띠 #102838
     본문 바탕 #EBF0F4 · 카드 테두리 #DFE6EB
   ★ 모든 클래스가 ev- 로 시작한다. 다른 화면에 닿지 않는다.
   ================================================================ */

.ev-wrap{ --ev-ink:#102838; }
.ev-wrap *{ box-sizing:border-box; }
.ev-inner{ width:min(1240px, 88%); margin:0 auto; }

/* ---------- 어두운 띠 ---------- */
.ev-band{
    background:#102838;
    padding:74px 0 78px;
}
.ev-kick{
    margin:0;
    font-size:13px;
    letter-spacing:1.6px;
    color:#6CC3EE;
    font-weight:500;
}
.ev-title{
    margin:14px 0 0;
    font-size:42px;
    font-weight:500;
    letter-spacing:-1px;
    line-height:1.25;
    color:#fff;
}
.ev-lead{
    margin:16px 0 0;
    font-size:17px;
    font-weight:300;
    line-height:1.75;
    color:rgba(255,255,255,.72);
    max-width:720px;
}

/* ---------- 본문 ---------- */
.ev-body{
    background:#EBF0F4;
    padding:56px 0 110px;
    min-height:320px;
}

/* ---------- 알약 탭 ---------- */
.ev-tabs{
    display:flex;
    gap:8px;
    margin-bottom:34px;
    flex-wrap:wrap;
}
.ev-tabs a{
    display:inline-flex;
    align-items:center;
    gap:7px;
    height:44px;
    padding:0 22px;
    border:1px solid #DFE6EB;
    border-radius:999px;
    background:#fff;
    color:#5B6A76;
    font-size:15px;
    text-decoration:none;
    transition:background .22s, border-color .22s, color .22s;
}
.ev-tabs a span{
    font-size:13px;
    color:#A9B6C1;
}
.ev-tabs a:hover{
    border-color:#1385B8;
    color:#1385B8;
}
.ev-tabs a.cur{
    background:#102838;
    border-color:#102838;
    color:#fff;
}
.ev-tabs a.cur span{
    color:rgba(255,255,255,.6);
}

/* ---------- 카드 격자 ---------- */
/* 세로로 긴 포스터라 한 줄에 넷을 둔다.
   align-items:start — 카드 높이가 사진마다 달라도 위로 붙는다.
   stretch 로 두면 짧은 카드가 억지로 늘어나 아래가 빈다. */
.ev-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    align-items:start;
    gap:28px 20px;
}
/* 둥글기 20px — 예전 갤러리 목록과 같다.   ★2026-09-11 되돌림 */
.ev-card{
    background:#fff;
    border:1px solid #DFE6EB;
    border-radius:20px;
    overflow:hidden;
    transition:border-color .28s, transform .28s, box-shadow .28s;
}
.ev-card:hover{
    border-color:#1385B8;
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(16,40,56,.09);
}
.ev-card a{
    display:block;
    text-decoration:none;
}

/* 섬네일 — 자르지 않는다.               ★2026-09-11 되돌림
   ----------------------------------------------------------------
   ★ 높이를 정하면 세로로 긴 포스터가 위아래로 잘린다.
     전시회 포스터는 대부분 세로로 길다. 예전 갤러리형처럼
     올린 사진의 원래 비율을 그대로 살린다.
   ★ 그 대신 카드 높이가 사진마다 달라진다. 아래 격자에서
     align-items:start 로 두어 줄이 어긋나지 않게 맞췄다. */
.ev-thumb{
    position:relative;
    width:100%;
    overflow:hidden;
    background:#DDE6EC;
}
.ev-thumb img{
    width:100%;
    height:auto;
    display:block;
    transition:transform .5s cubic-bezier(.22,.7,.3,1);
}
.ev-card:hover .ev-thumb img{
    transform:scale(1.06);
}
/* 사진이 없을 때만 자리를 잡아 준다 */
.ev-noimg{
    display:block;
    width:100%;
    aspect-ratio:3 / 4;
    background:#DDE6EC;
}

/* 진행중 · 종료 딱지 */
.ev-badge{
    position:absolute;
    left:12px;
    top:12px;
    padding:5px 12px;
    border-radius:999px;
    font-size:11.5px;
    font-weight:500;
    letter-spacing:.3px;
}
.ev-badge.now{
    background:#1385B8;
    color:#fff;
}
.ev-badge.past{
    background:rgba(16,40,56,.72);
    color:#fff;
}

.ev-text{
    padding:16px;
}
.ev-date{
    margin:0;
    font-size:12.5px;
    font-weight:500;
    letter-spacing:.5px;
    color:#1385B8;
    text-transform:uppercase;
}
.ev-text h4{
    margin:9px 0 0;
    font-size:18px;
    font-weight:500;
    line-height:1.45;
    color:#102838;
}
/* .ev-place · .ev-booth 는 목록에서 뺐다.    ★2026-09-11
   상세 화면(view.php)에서 다시 쓴다. 그때 규칙을 새로 적는다. */

/* 지난 행사 — 옅게 둔다 */
.ev-card.past .ev-thumb img{
    filter:grayscale(.45);
    opacity:.82;
}
.ev-card.past .ev-date{
    color:#8A98A4;
}
.ev-card.past:hover .ev-thumb img{
    filter:none;
    opacity:1;
}

/* ---------- 비었을 때 ---------- */
.ev-empty{
    background:#fff;
    border:1px solid #DFE6EB;
    border-radius:12px;
    padding:90px 20px;
    text-align:center;
}
.ev-empty p{
    margin:0;
    font-size:16px;
    font-weight:300;
    color:#7B858E;
}
.ev-empty-link{
    display:inline-block;
    margin-top:18px;
    padding:11px 26px;
    border:1px solid #1385B8;
    border-radius:999px;
    color:#1385B8;
    font-size:14.5px;
    text-decoration:none;
    transition:background .22s, color .22s;
}
.ev-empty-link:hover{
    background:#1385B8;
    color:#fff;
}

/* ---------- 쪽번호 ---------- */
.ev-paging{
    margin-top:48px;
}
.ev-paging .pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:0;
}
.ev-paging .pagination .num,
.ev-paging .pagination>a{
    min-width:34px;
    height:34px;
    line-height:34px;
    margin:0 3px;
    border-radius:7px;
    text-align:center;
    font-size:14px;
    color:#5B6A76;
    text-decoration:none;
}
.ev-paging .pagination>a:hover{
    background:#fff;
    color:#1385B8;
}
.ev-paging .pagination .num.cur,
.ev-paging .pagination>a.cur{
    background:#1385B8;
    color:#fff;
    font-weight:500;
}

/* ---------- 좁은 화면 ---------- */
@media (max-width:1280px){
    .ev-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width:1100px){
    .ev-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
    .ev-title{ font-size:34px; }
}
@media (max-width:768px){
    .ev-inner{ width:min(1240px, 90%); }
    .ev-band{ padding:52px 0 56px; }
    .ev-title{ font-size:27px; letter-spacing:-.6px; }
    .ev-lead{ font-size:15px; }
    .ev-body{ padding:38px 0 72px; }
    /* 예전 갤러리 목록과 같이 한 칸으로 둔다.
       세로 포스터를 둘씩 넣으면 글자가 읽기 어려울 만큼 작아진다. */
    .ev-grid{ grid-template-columns:1fr; gap:25px; }
    .ev-card{ border-radius:10px; }
    .ev-text h4{ font-size:15px; }
    .ev-date{ font-size:12px; }
    .ev-text{ padding:15px 12px; }
    .ev-tabs a{ height:40px; padding:0 17px; font-size:14px; }
    .ev-text h4{ font-size:16.5px; }
}

/* ================================================================
   이벤트 상세                                    ★2026-09-11 신설
   ----------------------------------------------------------------
   행사 정보 + 미팅 예약을 한 화면에 담는다.
   색채계획 v7 — 주색 #1385B8 · 눌림 #0D6C9B · 먹 #102838
   ================================================================ */

.ev-detail .ev-body{
    padding:48px 0 110px;
}

/* ---------- 목록으로 ---------- */
.ev-back{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-bottom:26px;
    font-size:14px;
    color:#5B6A76;
    text-decoration:none;
    transition:color .2s;
}
.ev-back::before{
    content:'';
    width:16px;
    height:16px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6A76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H6M12 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.ev-back:hover{ color:#1385B8; }

/* ---------- 행사 정보 ---------- */
.ev-head{
    display:flex;
    gap:40px;
    align-items:flex-start;
    margin-bottom:40px;
}
.ev-poster{
    flex:none;
    width:270px;
    border:1px solid #DFE6EB;
    border-radius:16px;
    overflow:hidden;
    background:#DDE6EC;
}
.ev-poster img{
    display:block;
    width:100%;
    height:auto;
}
.ev-info{
    flex:1;
    min-width:0;
    padding-top:4px;
}
.ev-badge2{
    display:inline-block;
    padding:6px 15px;
    border-radius:999px;
    font-size:12px;
    font-weight:500;
    letter-spacing:.3px;
}
.ev-badge2.now{
    background:#1385B8;
    color:#fff;
}
.ev-badge2.soon{
    background:#EDF4FA;
    border:1px solid #C2DDEE;
    color:#0D6C9B;
}
.ev-badge2.past{
    background:#E4E9EC;
    color:#7B858E;
}
.ev-info h2{
    margin:16px 0 0;
    font-size:32px;
    font-weight:500;
    letter-spacing:-.6px;
    line-height:1.3;
    color:#102838;
}

.ev-meta{
    display:grid;
    grid-template-columns:92px 1fr;
    gap:11px 20px;
    margin:24px 0 0;
}
.ev-meta dt{
    font-size:13px;
    font-weight:400;
    color:#A9B6C1;
    letter-spacing:.3px;
}
.ev-meta dd{
    margin:0;
    font-size:15px;
    color:#102838;
    line-height:1.5;
    word-break:break-word;
}
.ev-meta dd a{
    color:#1385B8;
    text-decoration:none;
}
.ev-meta dd a:hover{
    text-decoration:underline;
}
.ev-desc{
    margin:24px 0 0;
    padding-top:22px;
    border-top:1px solid #DAE1E7;
    font-size:15.5px;
    font-weight:300;
    line-height:1.8;
    color:#5B6A76;
}

/* ---------- 지난 행사 · 신청 안 받음 ---------- */
.ev-ended{
    background:#fff;
    border:1px solid #DFE6EB;
    border-radius:16px;
    padding:64px 24px;
    text-align:center;
}
.ev-ended-t{
    margin:0;
    font-size:20px;
    font-weight:500;
    color:#102838;
}
.ev-ended-s{
    margin:10px 0 0;
    font-size:15px;
    font-weight:300;
    color:#7B858E;
}
.ev-ended-bt{
    display:inline-block;
    margin-top:24px;
    padding:13px 30px;
    border:1px solid #1385B8;
    border-radius:999px;
    color:#1385B8;
    font-size:14.5px;
    text-decoration:none;
    transition:background .22s, color .22s;
}
.ev-ended-bt:hover{
    background:#1385B8;
    color:#fff;
}

/* ---------- 예약 ---------- */
.ev-book{
    background:#fff;
    border:1px solid #DFE6EB;
    border-radius:16px;
    padding:34px 36px 38px;
}
.ev-book-t{
    margin:0;
    font-size:20px;
    font-weight:500;
    color:#102838;
}
.ev-book-s{
    margin:7px 0 26px;
    font-size:13.5px;
    font-weight:300;
    color:#7B858E;
}
.ev-flabel{
    margin:0 0 12px;
    font-size:13px;
    font-weight:500;
    letter-spacing:.4px;
    color:#5B6A76;
}

/* 날짜 고르기 */
.ev-days{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(112px, 1fr));
    gap:10px;
    margin-bottom:28px;
}
.ev-day{
    border:1px solid #DFE6EB;
    border-radius:10px;
    background:#fff;
    padding:12px 6px;
    cursor:pointer;
    text-align:center;
    font-family:inherit;
    transition:border-color .2s, background .2s;
}
.ev-day:hover:not(:disabled){
    border-color:#1385B8;
}
.ev-day.cur{
    border:2px solid #1385B8;
    background:#EDF4FA;
    padding:11px 5px;
}
.ev-day:disabled,
.ev-day.full{
    background:#F5F8F9;
    border-color:#E8EDF0;
    cursor:default;
}
.ev-day .wk{
    display:block;
    font-size:11px;
    letter-spacing:.6px;
    color:#8A98A4;
}
.ev-day .dy{
    display:block;
    margin-top:4px;
    font-size:17px;
    font-weight:500;
    color:#102838;
}
.ev-day .op{
    display:block;
    margin-top:5px;
    font-size:11.5px;
    color:#1385B8;
}
.ev-day:disabled .dy,
.ev-day:disabled .wk,
.ev-day:disabled .op{
    color:#C3CBD2;
}

/* 시간 고르기 */
.ev-times{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(84px, 1fr));
    gap:8px;
    margin-bottom:6px;
    min-height:44px;
}
.ev-time{
    border:1px solid #DFE6EB;
    border-radius:8px;
    background:#fff;
    padding:11px 0;
    cursor:pointer;
    text-align:center;
    font-family:inherit;
    font-size:14px;
    color:#102838;
    letter-spacing:.4px;
    transition:border-color .2s, background .2s, color .2s;
}
.ev-time:hover{
    border-color:#1385B8;
    color:#1385B8;
}
.ev-time.cur{
    background:#1385B8;
    border-color:#1385B8;
    color:#fff;
    font-weight:500;
}
.ev-tnone{
    grid-column:1 / -1;
    margin:0;
    padding:14px 0;
    font-size:14px;
    font-weight:300;
    color:#A9B6C1;
}

/* ---------- 신청 칸 ---------- */
.ev-form{
    margin-top:30px;
    padding-top:28px;
    border-top:1px solid #EEF1F3;
}
.ev-frow{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:20px 24px;
}
.ev-ffull{
    grid-column:1 / -1;
}
.ev-flabel2{
    display:block;
    margin:0 0 8px;
    font-size:14px;
    font-weight:500;
    color:#102838;
}
.ev-flabel2 em{
    font-style:normal;
    color:#0D6C9B;
}
.ev-flabel2 u{
    text-decoration:none;
    color:#738491;
    font-weight:400;
    font-size:13px;
}
.ev-form input[type=text],
.ev-form input[type=email],
.ev-form select{
    width:100%;
    height:50px;
    background:#fff;
    border:1px solid #C2CDD6;
    border-radius:8px;
    padding:0 15px;
    color:#102838;
    font-size:15.5px;
    font-family:inherit;
    appearance:none;
    -webkit-appearance:none;
    box-sizing:border-box;
    transition:border-color .22s;
}
.ev-form input::placeholder{ color:#A9B6C1; }
.ev-form input:focus,
.ev-form select:focus{
    outline:none;
    border-color:#1385B8;
}
.ev-form textarea{
    width:100%;
    min-height:120px;
    resize:vertical;
    background:#fff;
    border:1px solid #C2CDD6;
    border-radius:8px;
    padding:14px 15px;
    color:#102838;
    font-size:15.5px;
    line-height:1.7;
    font-family:inherit;
    box-sizing:border-box;
    transition:border-color .22s;
}
.ev-form textarea::placeholder{ color:#A9B6C1; }
.ev-form textarea:focus{
    outline:none;
    border-color:#1385B8;
}
.ev-selwrap{ position:relative; }
.ev-selwrap::after{
    content:'';
    position:absolute;
    right:17px;
    top:19px;
    width:8px;
    height:8px;
    pointer-events:none;
    border-right:1.6px solid #738491;
    border-bottom:1.6px solid #738491;
    transform:rotate(45deg);
}

/* 국가 고르기 — global_partner_apply 와 같은 방식 */
.ev-country{ position:relative; }
.ev-country .ev-flag{
    position:absolute;
    left:15px;
    bottom:15px;
    width:26px;
    height:19px;
    object-fit:cover;
    border:1px solid #C2CDD6;
    display:none;
    z-index:2;
}
.ev-country.has-flag input{ padding-left:52px; }
.ev-country.has-flag .ev-flag{ display:block; }
.ev-clist{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    z-index:30;
    max-height:270px;
    overflow-y:auto;
    background:#fff;
    border:1px solid #C2CDD6;
    border-radius:10px;
    padding:6px 0;
    margin:4px 0 0;
    list-style:none;
    box-shadow:0 10px 28px rgba(16,40,56,.12);
}
.ev-clist li{
    display:flex;
    align-items:center;
    gap:11px;
    padding:10px 16px;
    cursor:pointer;
    font-size:15px;
    color:#102838;
}
.ev-clist li:hover{ background:#EBF0F4; }
.ev-clist li.none{
    color:#A9B6C1;
    cursor:default;
}
.ev-clist li.none:hover{ background:#fff; }
.ev-clist li img{
    flex:none;
    width:26px;
    height:19px;
    object-fit:cover;
    border:1px solid #C2CDD6;
}

/* ---------- 보내기 ---------- */
.ev-submit{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:22px;
    margin-top:28px;
    flex-wrap:wrap;
}
.ev-picked{
    margin:0;
    font-size:14.5px;
    font-weight:300;
    color:#7B858E;
}
.ev-picked b{
    font-weight:500;
    color:#102838;
}
.ev-bt{
    height:54px;
    padding:0 38px;
    border:0;
    border-radius:8px;
    background:#1385B8;
    color:#fff;
    font-size:16px;
    font-weight:500;
    font-family:inherit;
    letter-spacing:.3px;
    cursor:pointer;
    transition:background .22s;
}
.ev-bt:hover{ background:#0D6C9B; }
.ev-bt:disabled{
    background:#A9B6C1;
    cursor:default;
}

/* ---------- 완료 ---------- */
.ev-done{
    background:#fff;
    border:1px solid #DFE6EB;
    border-radius:16px;
    padding:72px 24px 68px;
    text-align:center;
}
.ev-done-ic{
    width:70px;
    height:70px;
    margin:0 auto 26px;
    border-radius:50%;
    background:#1385B8;
    display:flex;
    align-items:center;
    justify-content:center;
}
.ev-done-t{
    margin:0;
    font-size:28px;
    font-weight:500;
    color:#102838;
}
.ev-done-s{
    margin:12px 0 0;
    font-size:15.5px;
    font-weight:300;
    line-height:1.8;
    color:#7B858E;
}

/* ---------- 좁은 화면 ---------- */
@media (max-width:900px){
    .ev-head{
        flex-direction:column;
        gap:26px;
    }
    .ev-poster{
        width:200px;
    }
    .ev-info h2{ font-size:26px; }
}
@media (max-width:768px){
    .ev-detail .ev-body{ padding:32px 0 70px; }
    .ev-poster{ width:100%; max-width:260px; }
    .ev-info h2{ font-size:22px; }
    .ev-meta{ grid-template-columns:76px 1fr; gap:9px 14px; }
    .ev-meta dd{ font-size:14px; }
    .ev-book{ padding:26px 20px 30px; border-radius:12px; }
    .ev-days{ grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:8px; }
    .ev-times{ grid-template-columns:repeat(auto-fill, minmax(72px, 1fr)); }
    .ev-frow{ grid-template-columns:1fr; gap:18px; }
    .ev-submit{
        flex-direction:column-reverse;
        align-items:stretch;
        gap:14px;
    }
    .ev-picked{ text-align:center; }
    .ev-bt{ width:100%; }
    .ev-ended{ padding:48px 20px; border-radius:12px; }
    .ev-done{ padding:56px 20px; border-radius:12px; }
}