/* Sermon Pastor Banner */
/*
.sermon-banner-section {
    margin-top: clamp(30px, 10vw, 81px);
    transition: margin-top 0.3 ease;
}

.sermon-banner img {
    transition: transform 0.3s ease;
}

.sermon-banner img:hover {
    _transform: scale(1.03);
}

.sermon-banner p {
    font-size: 19px;
    color: #333;
    margin: 0 0 20px 0;
}
*/




/*
    배너 3개 가로 나열
*/
/* program-banner-section */
.sermon-banner-section {
    margin-top: clamp(30px, 10vw, 81px);
    transition: margin-top 0.3 ease;
}



/* 여백 초기화 */
.custom-pg-wrap {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767.98px) {
    .custom-pg-wrap {
        margin-top: 20px;
    }
}


/*

    메뉴 /program/의 처음 6개 배너 처리 부분
    첫줄 3개의 배너 좌,우 양측 여백을 없애주는 부분
    부트스트랩으로만 할 경우 좌,우 여백 처리가 잘 안되서
    css flex로 처리함

    flex: <flex-grow> <flex-shrink> <flex-basis>;

    첫 번째 값 (flex-grow)
    남는 공간이 있을 때 이 요소가 얼마나 비율로 늘어날지.

    0이면 절대 안 늘어남.
    1이면 남는 공간을 균등하게 나눠 차지.

    두 번째 값 (flex-shrink)
    공간이 부족할 때 이 요소가 얼마나 줄어들 수 있는지.
    0이면 절대 안 줄어듦.
    1 이상이면 줄어들 수 있음.

    세 번째 값 (flex-basis)
    기본 크기(기준 크기).
    auto, px, %, calc() 등으로 설정 가능.
    width 대신 flexbox에서의 기본 폭이라고 보면 됨.    

*/
:root { --pg-gap: 16px; }

.custom-pg-wrap {
    gap: var(--pg-gap);
    display: flex;
    flex-wrap: wrap;
}

.custom-pg-wrap > div {
    flex: 0 0 calc(100%); /* 모바일 1칸 */
}

@media (min-width: 768px) {
    .custom-pg-wrap > div { 
        flex: 0 0 calc((100% - 2*var(--pg-gap)) / 3); 
    }
}

.sermon-banner img {
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .sermon-banner img:hover {
        _transform: scale(1.03);
    }
}

/* 각 배너 속성 (글자 크기,색깔 등) */
.sermon-banner p {
    font-size: 19px;
    color: #333;
    margin: 0 0 4px 0;    
}

.sermon-banner-section .row1 {
    padding-bottom: 54px;
}

@media (max-width: 767.98px) {
    .sermon-banner-section .row1 {
        padding-bottom: 0;
    }
}





/* Sermon Main List */
.sermon-section {
    margin-top: clamp(49px, 10vw, 100px);
    transition: margin-top 0.3 ease;    
}

.sermon-section h4 a { 
    color: #fff;
}

.sermon-section .h-title {
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 0;
}

.sermon-section .custom-h-title {
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    .sermon-section .h-title {
        padding-bottom: 4px;
    }
}


.sermon-left {
    background-image: url('../img/officialsermon.jpg'); /* 배경 이미지 경로 */
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.sermon-right {
    background-color: #002b5c; /* 남색 배경 (원하는 색상 코드로 변경 가능) */
    min-height: 500px;
    padding: 68px 0 0 74px;
}

.btn-sermon {
    border: 1px solid #fff;
    color: #fff;
}

@media (max-width: 767.98px) {
    .btn-sermon {
        margin: 15px 0 0 0;
        border: 1px solid #212529;
        color: #212529;
    }
    .btn-sermon:hover {
        border-color: inherit;
        color: inherit;
        background-color: inherit;
    }

}


/*
    SermonListBoardTable
*/
.SermonListBoardTable {
    background-color: transparent;
    border: none;
    color: #fff; /* 흰 글씨 */
}
.SermonListBoardTable .title {
    clear:both;
    color:#fff;
    font-weight:bold;
    display:block;
    width:100%;
    height:auto;
    text-align:left;
}
.SermonListBoardTable .title a {
    color: #fff;
    font-size: 19px;
    padding: 0;
    transition: color 0.3s ease; /* 부드러운 전환 추가 */
}
.SermonListBoardTable .title a:hover {
    color: #e9e6d8; /* 예: 밝은 금색으로 변경 */
}
.SermonListBoardTable .cat {
    color: #98a5bd;
    font-size:14px;
}
.SermonListBoardTable td,
.SermonListBoardTable th {
    border: none;
    background-color: transparent;
    padding-left: 0;
}

@media (max-width: 1279.98px) {
    .sermon-left {
        min-height: 450px;
    }
    .sermon-right {
        min-height: 450px;
        padding: 40px 0 0 44px;
    }
}

@media (max-width: 767.98px) {
   .sermon-left {
        background-position: 56% center;    
        min-height: 260px;
    }
    .sermon-right {
        min-height: 350px;
        padding: 30px 0 0 24px;
        margin-top: -20px;
    }
    .mb-list-view {
        padding-top: 45px;
        padding-bottom: 40px;
    }

}



/* slide banner */
.recommended-section {
    margin-top: clamp(58px, 10vw, 124px);
    transition: margin-top 0.3 ease;        
}

.swiper {
    padding: 10px 0;
}

.swiper-slide {
    width: auto; /* 슬라이드 수동 지정 */
}

.slide-card {
    max-width: 350px;          /* 슬라이드 가로 크기 */
    height: auto;         /* 슬라이드 세로 크기 */
    position: relative;
    _overflow: hidden;
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease; /* 부드러운 전환 */
}

.swiper-slide:hover .slide-image {
    _transform: scale(1.05); /* 살짝 확대 (5%) */
}

.banner-title {
    _position: absolute;
    _top: 20px;
    _left: clamp(7px, 0.8vw, 15px);
    display: block;
    width: 100%;
    min-width: 0;
    color: #464B4F;
    font-weight: 700;
    padding: 6px 5px 6px 0;
    border-radius: 6px;
    font-size: 19px; 
}

@media (max-width: 767.98px) {
    .banner-title {
        _top: 5px;
        _left: clamp(3px, 0.8vw, 15px);
        _color: white;
        font-weight: 700;
        _background: rgba(0, 0, 0, 0.05);
        padding: 6px 5px 6px 0;
        border-radius: 6px;
        font-size: 15px;
        line-height: 19px;
    }
}



/* Info Box */
.info-box-section {
    margin-top: clamp(70px, 10vw, 126px);
    transition: margin-top 0.3 ease;     
}

.info-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: space-between;
}

.info-box {
    flex: 1 1 calc((100% - 70px) / 3);
    background-color: #F1F5F4;
    border-radius: 12px;
    padding: 28px 20px;
    min-height: 161px;

    display: flex;
    justify-content: center; /* 내용 전체를 가운데 정렬 */

    /* hover 효과 관련 추가 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.info-box:hover {
    _transform: translateY(-5px);
    _box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}


.info-box-inner {
    display: flex;
    align-items: center;
    gap: 0px; /* 아이콘과 텍스트 사이 간격 유지 */
}

.info-box-inner a {
    display: flex;
    align-items: center;
    text-decoration: none; /* 필요시 링크 밑줄 제거 */
    color: inherit; /* 텍스트 색상 상속 */
    gap: 20px; /* 아이콘과 텍스트 간격 */
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle img {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease; /* 부드러운 전환 */
}

.info-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}


@media (max-width: 1279.98px) {
    .info-box {
        min-height: 121px;
    }    
    .icon-circle {
        width: 70px;
        height: 70px;
    }    
    .icon-circle img {
        width: 70px;
        height: 70px;
    }
    .info-title {
        font-size: 21px;
    }
}

@media (max-width: 767.98px) {
    .info-box-container {
        flex-direction: column;
        gap: 20px;
    }

    .info-box {
        justify-content: flex-start;
        min-height: 110px;
        padding: 0;
        padding-left: 40px;
    }
}



/* blank */
.blank {
    display: block;
    _height: 130px;
    margin-top: clamp(130px, 10vw, 254px);
    transition: margin-top 0.3 ease;         
}



/*
    Sermon / Pastor, 
*/

/* 공통 스타일 */
.category-title {
    color: #9b9c9c;
    font-size: 18px;
    text-align: left;
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0px 15px 10px 2px;
    margin: 30px 0 10px 0;     
}


/* 모바일: 전체 너비, 회색 배경, 흰색 또는 진한 텍스트 */
@media (max-width: 767.98px) {
    .category-title {
        display: block;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin: 0;
        background-color: #EBEEF3;
        color: #535A5E;
        font-size: 16px;
        padding: 10px 15px 10px 15px;
        
    }
}





/*
    유튜브 임베디드
*/
.container.custom-wide {
    max-width: 1444px;
}

@media (max-width: 767.98px) {
    .container-iframe-wrap {
        padding: 0 0 25px 0;
    }
}

.container_iframe {position:relative;width:100%;padding-top:56.25%;overflow:hidden;}
.container_iframe iframe {position:absolute;top:0;left:0;width:100%;height:100%;}

.content_iframe {position:relative;height:auto;margin:22px 15px 29px 0px;}
.content_iframe .content_main .title {
    display: block;
    font-size: 23px;
    color: #464B4F;
    font-weight: bold;
    line-height: 27px;
    padding: 0 12px 4px 0;
    transition: all 0.3s ease-in-out;    
}
.content_iframe .content_main .subtitle {
    display: block;
    font-size: 18px;
    color: #464B4F;
    letter-spacing: -1px;
    padding: 0 4px 6px 0;
    transition: all 0.3s ease-in-out;    
}


@media (max-width: 1279.98px) {
    .content_iframe .content_main .title  {
        font-size: 18px; 
        line-height: 23px;
        padding: 0 4px 3px 0;           
    }
    .content_iframe .content_main .subtitle { 
        font-size: 16px;
        padding: 0 4px 5px 0;
    }
}


/* 모바일: 세로 정렬 + 왼쪽 정렬 */
@media (max-width: 767.98px) {
    .content_iframe .content_main .title  {
        font-size: 18px; 
        line-height: 23px;
        padding: 0 4px 3px 0;  
    }
    .content_iframe .content_main .subtitle {
        font-size: 16px;
        padding: 0 4px 5px 0;
    }
}






/* 커스텀 버튼 스타일 */
.custom-sermon-btn {
    border: 1px solid #6c757d;    /* 회색 테두리 */
    color: #5e6063 !important;    /* 진한 텍스트 색상 */
    font-size: 16px;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin: 0 0 0 0;
}

/* Hover시 효과 (선택 사항) */
.custom-sermon-btn:hover {
    background-color: #f8f9fa;    /* 연한 회색 배경 */
    color: #000;                  /* 더 진한 텍스트 */
    border: 1px solid #6c757d;       /* 테두리 유지 */
}


@media (max-width: 767.98px) {
    #container_slide .container {
        padding-left: 0;
        padding-right: 0;        
    }
    .content_iframe {margin:22px 15px 20px 14px;}
    .custom-sermon-btn {
        margin: 0 0 0 14px;
        font-size: 15px;

    }
}





/*
    divider
*/
.full-width-divider {
    margin: 0;
    border: none;
    height: 9px;
    background-color: #C7CADC;
}

@media (max-width: 767.98px) {
    .full-width-divider {
        height: 6px;
    }
}

.youtube-pastor-section {
    padding-top: clamp(45px, 10vw, 89px);
    transition: margin-top 0.3 ease;        
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 767.98px) {
    .youtube-pastor-section {
        padding-top: 25px;
        padding-bottom: 25px;
        background-color: #F5F5F5
    }
}




/*
    Sermon Series
*/
.sermon-series-section {
  padding: 80px 0;
}

@media (max-width: 767.98px) {
    .sermon-series-section {
    padding: 40px 0;
    }
}

.sermon-series-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 43px;
  line-height: 1.2;
  color: #333;
}

/* 여백 초기화 */
.custom-series-wrap {
  margin-top: 35px;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767.98px) {
    .custom-series-wrap {
    margin-top: 20px;
    }
}

/* 기본 간격(모바일) */
.custom-series-wrap {
  gap: 26px; /* 모바일 26px 간격 */
  display: flex;
  flex-wrap: wrap;
}


/* 오버레이 기본 상태 (투명) */
.custom-series-wrap a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.01) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* 마우스 올렸을 때 오버레이 나타남 */
.custom-series-wrap a:hover::after {
    opacity: 1;
}

/* 마우스 올렸을 때 아이콘/텍스트 색상도 조금 더 진하게 */
.custom-series-wrap a:hover .series-banner-title {
    background-color: rgba(0, 0, 0, 0.4);
}
.custom-series-wrap a:hover .series-youtube-img,
.custom-series-wrap a:hover .series-circle-img {
    transform: scale(1.1);
}



/* 데스크탑 이상에서는 60px */
@media (min-width: 768px) {
  .custom-series-wrap {
    gap: 30px;
  }
}

/* 칸 높이 맞추기 */
.custom-series-wrap > div {
  flex: 0 0 calc(50% - 13px); /* 모바일 2칸, gap 보정 */
}

@media (min-width: 768px) {
  .custom-series-wrap > div {
    flex: 0 0 calc(25% - 23px); /* 데스크탑 4칸, gap 보정 */
  }
}

/* 이미지 비율 유지 */
.custom-series-wrap .img-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.series-banner-title {
    position: absolute;
    top: 17px; /* 위에서 10px */
    left: 17px; /* 왼쪽에서 10px */
    background-color: rgba(0, 0, 0, 0.05); /* 반투명 배경 */
    color: #fff;
    padding: 5px 10px;
    font-size: 20px;
    
    line-height: 27px;
    _font-weight: bold;
    border-radius: 2px;
    margin-right: 20px;

    /* 부드러운 변화 효과 */
    transition: all 0.3s ease-in-out;    
}

.series-youtube-img {
    position: absolute;
    bottom: 28px;
    left: 26px;  
    width: 50px; 

    /* 부드러운 변화 효과 */
    transition: all 0.3s ease-in-out;       
}

.series-circle-img {
    position: absolute;
    bottom: 28px;
    left: 26px;  
    width: 40px; 

    /* 부드러운 변화 효과 */
    transition: all 0.3s ease-in-out;       
}


@media (max-width: 1279.98px) {
    .series-banner-title {
        top: 12px;
        left: 12px;
        font-size: 16px;
        line-height: 23px;
        margin-right: 10px;
    }

    .series-youtube-img {
        bottom: 20px;
        left: 20px;  
        width: 30px; 
    }

    .series-circle-img {
        bottom: 20px;
        left: 20px;  
        width: 30px; 
    }    
}

/* 모바일: 세로 정렬 + 왼쪽 정렬 */
@media (max-width: 767.98px) {
    .series-banner-title {
        top: 10px;
        left: 10px;
        font-size: 14px;
        line-height: 18px;
    }

    .series-youtube-img {
        bottom: 17px;
        left: 20px;  
        width: 30px; 
    }
    
    .series-circle-img {
        bottom: 17px;
        left: 20px;  
        width: 30px; 
    }     
}





/* 
    Subject (새신자를 위한 말씀)
*/
.subject-title {
    color: #9b9c9c;
    font-size: 18px;
    text-align: left;
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0px 15px 10px 2px;
    margin: 30px 0 10px 0;     
}

.cnt { 
    font-size: 13px;
    padding-left: 5px;
}

.title-group {
    display: inline-flex;
    font-size: 17px;
    font-weight: bold;
    align-items: center;
    gap: 0.25rem; /* 제목과 숫자 간격 조절 */
}

/* 모바일: 전체 너비, 회색 배경, 흰색 또는 진한 텍스트 */
@media (max-width: 767.98px) {
    .subject-title {
        /*
        display: block;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin: 0;
        _background-color: #EBEEF3;*/
        font-size: 26px;
    }
}


/*
    금주의 성경구절
*/
.verse-ref {
  border: 2px solid #6c757d; /* 회색 외곽선 */
  color: #28a745;
  font-weight: bold;
}

.verse-kor {
  _background-color: #007bff; /* 파랑 */
}

.verse-eng {
  _background-color: #28a745; /* 초록 */
  color: #0b509b;
  font-size: 19px;
  font-weight: 600;
}

.verse-date {
  _background-color: #2b2a29; /* 노랑 */
  font-weight: bold;
  font-size: 14px;
  color: #868480;
}

@media (max-width: 767.98px) {
    .verse-eng {
        font-size: 17px;
    }
}



/*
    게시판 보기
*/
/*
    Top 페이지 제목
*/
.category-bbs-title {
    color: #3B3F48;
    font-size: 23px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0px 15px 10px 2px;
    margin: 79px 0 0px 0; 
    border-bottom: 2px solid #3B3F48;
    width: 100%;    
}

/* 모바일: 전체 너비, 회색 배경, 흰색 또는 진한 텍스트 */
@media (max-width: 767.98px) {
    .category-bbs-title {
        display: block;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin: 0;
        background-color: #EBEEF3;
        color: #535A5E;
        font-size: 16px;
        padding: 10px 15px 10px 15px;
        border-bottom: 0;
    }
}
