/* ===================================
    Crafto - Church (하늘기쁨교회)
====================================== */
/* fonts - Korean support + Urbanist for Latin */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');
/* variable */
:root {
    --alt-font: "Noto Sans KR", "Urbanist", sans-serif;
    --primary-font: "Noto Sans KR", "Urbanist", sans-serif;
    --base-color: #ffc700;
    --dark-gray: #3d3530;
    --medium-gray: #6b5f54;
    --aluminium-grey: rgba(255, 255, 255, 0.4);
    --church-warm-bg: #faf6ef;
}
/* smooth scroll */
html { scroll-behavior: smooth; }
/* reset */
body {
    font-size: 17px;
    line-height: 30px;
    font-family: "Noto Sans KR", "Urbanist", sans-serif;
    word-break: keep-all;
}
a:hover {
    color: var(--dark-gray);
}
/* Multi-language subtitle styling */
.multilang-subtitle {
    font-size: 14px;
    line-height: 22px;
    opacity: 0.6;
    display: block;
    margin-top: 4px;
    margin-bottom: 0;
}
/* Warm background for alternating sections */
.bg-gradient-church-warm {
    background-image: linear-gradient(to top, var(--church-warm-bg) 0%, transparent 100%);
}
/* header */
.navbar .navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 600;
}
.navbar .navbar-nav .dropdown.open .dropdown-menu {
    background-color: var(--dark-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
header .navbar-brand img {
    max-height: 35px;
}
.header-top-bar div>a {
    color: var(--light-gray);
}
.header-top-bar div>a:hover {
    color: var(--white);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i {
    font-size: 28px;
}
.navbar .navbar-nav .dropdown .dropdown-menu a i {
    width: 35px;
}
header .btn.btn-box-shadow.btn-base-color,
.btn.btn-base-color {
    color: var(--dark-gray);
}
header .btn.btn-box-shadow.btn-base-color:hover,
.btn.btn-box-shadow.btn-base-color:hover {
    color: var(--dark-gray);
}
header .btn.btn-small {
    font-size: 14px;
    padding: 10px 18px;
}
/* btn */
.btn.btn-hover-animation-switch.btn-link {
    padding-top: 0;
}
.btn {
    text-transform: inherit;
    font-weight: 600;
    letter-spacing: 0;
}
.btn.btn-extra-large {
    font-size: 17px;
    padding: 16px 32px;
}
.btn.btn-large {
    font-size: 16px;
    padding: 14px 28px;
}
.btn.btn-medium {
    font-size: 15px;
    padding: 12px 24px;
}
.btn.btn-small {
    font-size: 14px;
}
.btn.btn-very-small {
    font-size: 13px;
    padding: 9px 20px;
}
/* counter style */
.counter-style-04 .vertical-counter:after {
    color: var(--base-color);
}
.review-star-icon i {
    color: var(--base-color);
}
/* footer style */
footer ul li {
    margin-bottom: 1px;
}
footer p {
    line-height: 28px;
}
/* page title */
.page-title-double-large h1 {
    font-size: 3.5rem;
    line-height: 4rem;
}
.page-title-double-large h2 {
    font-size: 16px;
    line-height: 28px;
}
/* top bottom left right class */
.right-12 {
    right: 12%;
}
.bg-jungle-green {
    background-color: #2ebb79;
}
/* Service time circle badge */
.service-time-badge {
    width: 200px;
    height: 200px;
}
/* Outside box */
.outside-box-top-205px {
    margin-top: -205px;
}
/* Transparent background color */
.bg-gradient-gray-light-dark-transparent {
    background-image: linear-gradient(to top, #f7f7f7 0%, transparent 100%);
}
@media (max-width: 1399px) {
    .xl-h-180px {
        height: 180px;
    }
    .xl-w-180px {
        width: 180px;
    }
    .service-time-badge {
        width: 180px;
        height: 180px;
    }
}
@media (max-width: 1199px) {
    .outside-box-top-200px {
        margin-top: -150px;
    }
}
@media (max-width: 991px) {
    .outside-box-top-200px {
        margin-top: 0;
    }
    .navbar .navbar-nav .dropdown.open .dropdown-menu {
        padding-bottom: 15px;
    }
}
/* ===== Language Toggle System ===== */
/* Default: Korean visible, others hidden */
body:not(.lang-en):not(.lang-ru) [data-lang="en"],
body:not(.lang-en):not(.lang-ru) [data-lang="ru"] { display: none !important; }
body.lang-en [data-lang="ko"],
body.lang-en [data-lang="ru"] { display: none !important; }
body.lang-ru [data-lang="ko"],
body.lang-ru [data-lang="en"] { display: none !important; }
/* Language switcher buttons */
.lang-switcher { display: inline-flex; gap: 2px; align-items: center; }
.lang-switcher .lang-btn {
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    color: var(--light-gray, #aaa);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
    line-height: 20px;
}
.lang-switcher .lang-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
/* Light background variant (in main nav) */
nav .lang-switcher .lang-btn {
    color: var(--medium-gray, #777);
    border-color: rgba(0,0,0,0.15);
}
nav .lang-switcher .lang-btn:hover { color: var(--dark-gray); border-color: rgba(0,0,0,0.3); }
.lang-switcher .lang-btn.active {
    background: var(--base-color);
    color: var(--dark-gray);
    border-color: var(--base-color);
}
/* ===== Service Time Cards (Footer) ===== */
.service-time-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 18px 14px 16px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.service-time-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--base-color);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.service-time-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 199, 0, 0.2);
    transform: translateY(-3px);
}
.service-time-card:hover::after {
    transform: scaleX(1);
}
.service-time-card.st-primary {
    background: rgba(255, 199, 0, 0.08);
    border-color: rgba(255, 199, 0, 0.18);
}
.service-time-card .st-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.service-time-card.st-primary .st-name {
    color: var(--base-color);
    opacity: 0.85;
}
.service-time-card .st-time {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.service-time-card.st-primary .st-time {
    color: var(--base-color);
}
.service-time-card .st-day {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}
.service-time-card.st-primary .st-day {
    color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 575px) {
    .service-time-card { padding: 14px 10px 12px; border-radius: 8px; }
    .service-time-card .st-time { font-size: 15px; }
    .service-time-card .st-name { font-size: 11px; margin-bottom: 5px; }
    .service-time-card .st-day { font-size: 9px; }
}
/* ===== Church Timeline ===== */
.church-timeline { border-left: 2px solid rgba(0,0,0,0.08); }
.tl-year-circle {
    position: absolute;
    width: 36px; height: 36px;
    left: -64px; top: -3px;
    background: var(--base-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.tl-year-circle span { font-size: 12px; font-weight: 800; color: #fff; }
.tl-year-circle.tl-year-special {
    background: var(--dark-gray);
    border: 2px solid var(--base-color);
}
.tl-year-circle.tl-year-special span { color: var(--base-color); }
.tl-dot {
    position: absolute;
    width: 10px; height: 10px;
    left: -51px; top: 8px;
    border-radius: 50%;
    background: #ccc;
}
.tl-dot.tl-dot-gold { background: var(--base-color); }
.tl-date-inline {
    display: inline-block;
    font-size: 13px; font-weight: 600;
    color: var(--base-color);
    min-width: 70px;
    margin-right: 8px;
}
.tl-highlight-card {
    border-radius: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #3a322a 100%);
}
.tl-highlight-card .tl-date,
.tl-mission-card .tl-date,
.tl-final-card .tl-date {
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
    color: var(--base-color);
    display: block; margin-bottom: 4px;
}
.tl-mission-card {
    border-radius: 8px;
    padding: 14px 18px;
    background: var(--church-warm-bg);
    border-left: 3px solid var(--base-color);
}
.tl-final-card {
    border-radius: 10px;
    padding: 30px 25px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #3a322a 100%);
    border: 1px solid rgba(255,199,0,0.3);
}
@media (max-width: 575px) {
    .church-timeline { padding-left: 30px !important; }
    .tl-year-circle { width: 30px; height: 30px; left: -51px; }
    .tl-year-circle span { font-size: 11px; }
    .tl-dot { left: -41px; }
    .tl-date-inline { min-width: 60px; font-size: 12px; }
    .tl-highlight-card, .tl-mission-card { padding: 12px 14px; }
    .tl-final-card { padding: 22px 18px; }
}
/* ===== Pastor Profile ===== */
.pastor-detail-list li {
    font-size: 15px;
    line-height: 1.6;
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--medium-gray);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.pastor-detail-list li:last-child { border-bottom: none; }
.pastor-detail-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 14px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--base-color);
}
.pastor-degree {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    color: var(--base-color);
    background: rgba(255,199,0,0.12);
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 4px;
}
/* ===== Tab Section Responsive ===== */
/* 탭 네비게이션: 모바일에서 4개 균등 배치 */
@media (max-width: 767px) {
    #greeting .tab-style-01 .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 4px;
        border-bottom: 0 !important;
        width: 100%;
    }
    #greeting .tab-style-01 .nav-tabs > li.nav-item {
        flex: 1 1 0 !important;
        margin-bottom: 0 !important;
        text-align: center;
    }
    #greeting .tab-style-01 .nav-tabs .nav-link {
        font-size: 13px !important;
        padding: 8px 6px !important;
        white-space: nowrap;
        border-bottom: none !important;
        border-radius: 50px !important;
        width: 100%;
    }
    #greeting .tab-style-01 .nav-tabs .nav-link i {
        display: none !important;
    }
}
@media (max-width: 374px) {
    #greeting .tab-style-01 .nav-tabs .nav-link {
        font-size: 11px !important;
        padding: 7px 4px !important;
    }
}
/* 인사말씀: 사진 위 이름 카드 */
@media (max-width: 575px) {
    #tab_greeting .position-absolute.bottom-30px {
        bottom: 15px !important;
        left: 15px !important;
        padding: 12px !important;
    }
    #tab_greeting .position-absolute .fs-20 { font-size: 16px !important; }
}
/* 시작이야기: 말풍선/카드/성경 */
@media (max-width: 767px) {
    #tab_story .fs-18 { font-size: 16px !important; }
    #tab_story .fs-17 { font-size: 15px !important; }
    #tab_story .fs-20 { font-size: 17px !important; }
    #tab_story .p-35px { padding: 20px !important; }
    #tab_story .p-25px { padding: 16px !important; }
    #tab_story .mb-35px { margin-bottom: 25px !important; }
    #tab_story .row-cols-md-3 > .col { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 575px) {
    #tab_story [style*="max-width: 85%"] { max-width: 95% !important; }
    #tab_story .p-20px { padding: 14px !important; }
    #tab_story .lh-32 { line-height: 28px !important; }
    #tab_story .lh-36 { line-height: 30px !important; }
}
/* 교회연혁: 통계 배지 */
@media (max-width: 575px) {
    #tab_history .fs-30 { font-size: 24px !important; }
    #tab_history .p-20px { padding: 14px !important; }
    #tab_history .mb-50px { margin-bottom: 30px !important; }
}
/* 섬기는분들: 레이아웃 */
@media (max-width: 767px) {
    #tab_pastors .flex-row-reverse { flex-direction: column-reverse !important; }
    #tab_pastors .mb-60px { margin-bottom: 40px !important; }
    #tab_pastors .col-lg-4,
    #tab_pastors .col-lg-8 { width: 100%; }
    #tab_pastors .col-lg-4 { margin-bottom: 25px; }
    #tab_pastors .pastor-detail-list li { font-size: 14px; padding: 4px 0 4px 16px; }
    #tab_pastors .pastor-detail-list li::before { top: 12px; }
    #tab_pastors .pastor-degree { font-size: 11px; padding: 1px 6px; }
}
@media (max-width: 575px) {
    #tab_pastors .d-flex.gap-10px { flex-direction: column; }
    #tab_pastors .d-flex.gap-10px .btn { width: 100%; text-align: center; }
}
/* Footer responsive */
footer .lang-switcher { gap: 6px; }
footer .lang-switcher .lang-btn {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 20px;
}
@media (max-width: 575px) {
    .service-time-badge {
        width: 110px;
        height: 110px;
    }
    .service-time-badge .fs-22 {
        font-size: 16px !important;
    }
    .service-time-badge .fs-14 {
        font-size: 11px !important;
    }
    .service-time-badge .fs-12 {
        font-size: 10px !important;
    }
    footer .row-cols-2 > .col { flex: 0 0 50%; max-width: 50%; }
}
