/* ============================================================
   TGR Page Banner - 최종 수정 및 최적화본
   ============================================================ */

/* [1] 엘리멘터 내부 기본 여백 강제 제거 */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* [2] 배너 메인 섹션 */
.tgr-page-banner {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important; /* 로딩 시 튐 방지 */
    align-items: flex-end;
    padding-bottom: 60px;
    color: #fff;
    overflow: hidden;
    z-index: 1;
    background-color: #0f192d; /* 이미지 로딩 전 배경색 */
}

/* [3] 배경 오버레이 (하나로 통합) */
/* 기존 .tgr-banner-overlay 대신 가상 요소를 사용하여 코드 간소화 */
.tgr-page-banner::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important; /* 어둡기 정도 */
    z-index: 1;
}

/* [4] 컨텐츠 영역 */
.tgr-banner-inner {
    position: relative;
    z-index: 2; /* 오버레이보다 위 */
    width: 100%;
    max-width: none !important;
    padding: 0 100px !important; /* 왼쪽 여백 100px 확보 */
}

/* [5] 텍스트 스타일 */
.tgr-banner-sub {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: capitalize;
    display: block;
    margin-bottom: 12px;
    opacity: 0.95;
    font-weight: 400;
}

.tgr-banner-main {
    font-family: 'Prata', serif !important; 
    font-size: 72px !important; 
    margin: 0 0 15px 0;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* [6] 푸터 및 소셜 아이콘 */
.tgr-banner-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    padding-top: 25px;
}

.tgr-banner-socials {
    display: flex;
    gap: 35px; /* 아이콘 사이 간격 더 확대 */
}

.tgr-banner-socials a {
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

/* [중요] 아이콘 폰트 강제 지정 - 깨짐 방지 */
.tgr-banner-socials i {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free", sans-serif !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.tgr-banner-socials a:hover {
    opacity: 0.6;
}

/* [7] 언어 선택 */
.tgr-banner-lang {
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.tgr-banner-lang .lang-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.tgr-banner-lang .lang-link.active {
    color: #fff;
    font-weight: 700;
}

/* [8] 모바일 대응 (여백 조정) */
@media (max-width: 768px) {
    .tgr-banner-inner {
        padding: 0 40px !important; /* 모바일에서는 여백 축소 */
    }
    .tgr-banner-main {
        font-size: 48px !important;
    }
    .tgr-banner-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .tgr-banner-lang {
        margin-left: 0;
    }
}