* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
   width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header {
    background: white;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}
.logo img {
    height: 50px;
}
nav {
    display: flex;
}
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}
main a {
    color:#000;
    text-decoration: none;
}

#main .mainslide { height:700px; width: 100%; box-sizing: border-box; }
#main .mainslide .swiper-slide { position: relative; }
#main .mainslide .swiper-slide:before { content:""; position: absolute; left: 0; top: 0; width:100%; height:100%;  }  /* background:rgba(0,0,0,0.6); */
#main .mainslide .swiper-pagination-bullet { background: #fff; opacity: 0.2; border-radius: 14px; transition:0.3s;  }
#main .mainslide .swiper-pagination-bullet-active { opacity: 1; width:20px; }
#main .mainslide .swiper-horizontal>.swiper-pagination-bullets, 
#main .mainslide .swiper-pagination-bullets.swiper-pagination-horizontal, 
#main .mainslide .swiper-pagination-custom, .swiper-pagination-fraction { bottom:40px; }

#main .ment h2 { font-size:48px ; color:#fff; position: relative; opacity: 1; left: 200px; top:130px;}
#main .ment p { font-size:20px ; color:#fff; margin-top: 30px; position: relative; opacity:1; left:200px; top:10px; }
#main .ment div { width: 150px; position: relative; opacity: 0; }
#main .ment .more { border:1px solid #fff; border-radius: 40px; width:100%; height:40px; font:15px ptt; margin-top: 60px; transition: 0.3s; }
#main .ment .more:hover { background: #fff; color:#000;  }
#main .ment .more i { margin-left: 16px; }

#main .swiper-slide-active .ment h2 { opacity: 1; left: 0; transition:1s all; }
#main .swiper-slide-active .ment p { opacity: 1; top:0; transition: 1s all 0.3s; }
#main .swiper-slide-active .ment div { opacity: 1; transition: 1s all 0.8s; }


section {
    margin: 40px 0;
}
section img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
}
footer .d-info {
    text-align: right;
}

footer a {
    color:#fff;
    text-decoration: none;
}

.pastor-section {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px; /* 적절한 너비 제한 */
    margin: 40px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* 이미지와 텍스트 사이 간격 */
}
.pastor-section img {
    width: 180px; /* 이미지 크기 조정 */
    height: 180px;
    border-radius: 50%; /* 둥근 프로필 스타일 */
    object-fit: cover; /* 이미지 비율 유지 */
    border: 4px solid #ddd; /* 부드러운 테두리 */
}
.map-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: auto;
}
#about {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#about h2 {
    text-align: center;
    font-size: 36px;
    color: #2e3d48;
    margin-bottom: 20px;
}
#about p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}
#about .d-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

#about .d-flex > div {
    flex: 1 1 48%;
    margin: 10px;
    text-align: center;
}

#about .d-flex img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
#about h3 {
    font-size: 24px;
    color: #2e3d48;
    margin-bottom: 15px;
}
#about h3:nth-last-of-type(1){
    margin-top:20px;
}

#about ul {
    list-style-type: none;
    padding: 0;
    font-size: 16px;
    color: #555;
}

#about ul li {
    margin-bottom: 10px;
}

#about ul li::before {
    content: "• ";
    color: #7c8a91;
    margin-right: 10px;
}
.say {
    flex: 1; /* 남은 공간을 차지하도록 설정 */
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.say p {
    margin: 10px 0;
}

.say p:first-child {
    font-weight: bold;
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
}

.say p:last-child {
    font-style: italic;
    color: #555;
    text-align: center;
}

.worship-schedule {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.worship-schedule h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.worship-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.worship-card h3 {
    font-size: 22px;
    color: #34495e;
    margin-bottom: 10px;
}

.worship-card ul {
    list-style: none;
    padding: 0;
}

.worship-card li {
    font-size: 18px;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.worship-card li:last-child {
    border-bottom: none;
}

#bo_v header, .cm_wrap header {
    box-shadow : 0 0 0;
    padding:0 0;
}

.news-list {
    list-style: none;
    padding: 20px 0 0;
}
.news-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}
.news-list a:hover {
    color: #007bff;
}
.news-title {
    flex: 1;
}
.news-date {
    color: #888;
    font-size: 0.9em;
}
.sermon-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.sermon-list li {
    display: flex;
    justify-content: center;
}
.sermon-list img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.sermon-list img:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    #main .mainslide {
        height:400px;
    }
    .sermon-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    main, footer {
        max-width: 100%;
        padding: 20px 10px;
    }
    .container {
        width: 100%;
        padding: 0;
    }
    nav.header {
        display: none;
    }
    nav.header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0px;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        width: 200px;
        padding: 10px;
    }
    nav.header.active {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 99;
    }
    nav.header.active ul {
        display: flex;
        height: 100vh;
        top: 0;
        left: 0;
        text-align: center;
        gap: 2rem;
    }
    .menu-toggle {
        display: block;
    }

    .pastor-section {
        flex-direction: column;
        text-align: center;
    }
    .pastor-section img {
        width: 150px;
        height: 150px;
    }

    
    .worship-schedule {
        max-width: 90%;
    }

    footer div.d-flex {
        flex-direction: column;
        gap:1rem;
        text-align: center;
    }
    footer .d-info {
        text-align: center;
    }
}