/* ---------------------------
   노출 제어 (데스크탑 / 모바일)
---------------------------- */
#slide_01,
#slide_02 {
    display: none;
}



 
 @media (max-width: 575.98px) {
  .row > .col-6 { 
    -ms-flex: 0 0 50% !important; 
    flex: 0 0 50% !important; 
    max-width: 50% !important;
  }

  .counsel_cadre{ padding: auto;}
  .counsel-box{
     padding: 0;margin:0;
  }

  .snomargin{margin:10px !important;}
  .snopadding{padding:0 !important;}
}

/* 혹시 테마가 모든 col-*를 100%로 만드는 경우 무력화 */
.row > [class*="col-"] {
  float: none;            /* 오래된 float 규칙 방지 */
  display: block;         /* 굳이 필요 없지만 안전장치 */
}
.thumbnail_cu{height: 200px; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 8px;}
}
.thumbnail_cu img{width: 100%; height: 100%; object-fit: cover; display: block;}
 


 
/* 데스크탑 전용 */
@media (min-width: 991px) {
    #slide_01 { display: block; }
    .doc_blog_grid_area_slide { margin-top: 100px; padding: 0; }
}

/* 모바일 전용 */
@media (max-width: 990px) {
    #slide_02 { display: block; }
    .doc_blog_grid_area_slide { margin-top: 0px; padding: 0; }
}

/* 아주 작은 화면에서 숨기고 싶은 요소 */
@media (max-width: 768px) {
    .mobi_hide { display: none !important; }
}

/* ---------------------------
   슬라이더 레이아웃
---------------------------- */
.bl-hero-slider {
    background-color: #fff;
    position: relative;
    width: 100%;
    overflow: hidden;
}
/* ---------------------------
   슬라이드 공통 (데스크탑 + 모바일)
---------------------------- */
.bl-hero-slide {
    position: relative;
    width: 100%;
    height: 45vw;             /* 데스크탑 비율 기준 */
    min-height: 300px;
    max-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: var(--bg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #fff;
}

/* 모바일 전용 슬라이드 비율 (768x600 이미지 → 약 1.28:1) */
#slide_02 .bl-hero-slide {
    background-size: contain;
    height: 80vw;           /* 세로 확보 (768→600 비율 약 0.78) */
    min-height: 600px;      /* 너무 찌그러지지 않게 최소 600px */
    max-height: none;
}

/* ---------------------------
   텍스트 컨테이너
---------------------------- */
/* 중앙이 아닌 하단 정렬용 */
.bl-hero-content {
    position: absolute;        /* 슬라이드 기준으로 배치 */
    bottom: 40px;              /* 하단 여백 (조정 가능) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    /* 가운데 정렬이 아닌 하단 고정이므로 */
    justify-content: flex-end;

    width: auto;
}

/* ---------------------------
   줄 단위 박스 (각 텍스트 라인)
---------------------------- */
.bl-line {
    display: inline-block;
    background: rgba(255,255,255,0.7);  /* 반투명 흰색 배경 */
    color: #000;
    font-weight: 700;
    line-height: 1.3;
    padding: 0.4em 0.7em;
    margin: 0.3em 0;
    border-radius: 4px;
    white-space: nowrap;   /* 기본은 한 줄 유지 */
    box-sizing: border-box;
    word-break: keep-all;
    text-align: center;
}

/* 상단 작은 라벨 (ex. 노원라운지 / 중계...) */
.eyebrow-line,
.bl-hero-eyebrow {
    font-size: clamp(1.2rem, 1.2vw + 1rem, 1.7rem); /* 기본, 데스크탑에서 약간 커짐 */
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* 메인 타이틀 (문화센터 안내) */
.title-line,
.bl-hero-title {
    font-size: clamp(2.4rem, 2.4vw + 1.5rem, 3.8rem); /* 데스크탑에서 크게 */
    font-weight: 800;
    line-height: 1.3;
    padding: 0.6em 1.2em; /* 타이틀은 살짝 넉넉하게 */
}

/* 설명(긴 문장)은 별도 래퍼를 둠 */
/* desc-line 자체는 안쪽 텍스트만 담당 */
.desc-line,
.bl-hero-desc {
    font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;   /* 데스크탑: 한줄 유지 */
    margin: 0;
    padding: 0;
    background: transparent; /* 이 라인 자체는 배경X (아래 래퍼에서 배경 입힘) */
    color: #fff;
}

/* 설명 전체 블록: 검정 반투명 박스 (여기서 가독성 확보) */
.bl-desc-block {
    display: inline-block;
    background: rgba(0,0,0,0.6);  /* 진한 반투명 블랙 */
    color: #fff;

    padding: 0.6em 0.8em;
    border-radius: 4px;
    line-height: 1.5;
    margin: 0.4em 0 0.8em;
    max-width: 90vw;

    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    text-align: center;
}

/* .bl-desc-block 내부에 있는 라인(실제 텍스트)은 투명 배경 유지 */
.bl-desc-block .desc-line {
    background: transparent;
    color: #fff;
    padding: 0;
    margin: 0;
    white-space: nowrap; /* 데스크탑은 한 줄 */
}

/* ---------------------------
   버튼
---------------------------- */
.bl-hero-button {
    position: relative;
    display: inline-block;

    background-color: #10b3d6;       /* 브랜드톤(파랑/민트) */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;

    /* 텍스트보다 사방 5px 크게 보이게 하는 느낌 */
    padding: 1.2rem 2.2rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.45); /* 버튼 바깥쪽 그림자 */
    margin-top: 0.5rem;
    transition: all 0.18s ease;
    font-size: clamp(1.2rem, 0.8vw + 1rem, 1.4rem);
}

.bl-hero-button:hover {
    transform: translateY(-3px);
    background-color: #0d9fc0;
    box-shadow:
        0 10px 24px rgba(0,0,0,0.35),
        0 16px 40px rgba(0,0,0,0.25);
}

/* 버튼 안 텍스트 (별도 효과 없이 깔끔) */
.bl-button-label,
.bl-hero-button span {
    display: inline-block;
    background: transparent;
    color: #fff;
    text-shadow: none;
}

/* ---------------------------
   "데스크탑 +20%" 역할 하는 애들
   (이미 clamp로 반영되어있기 때문에 별도 중복조정 없음)
---------------------------- */

/* .bl-hero-eyebrow / .bl-hero-title / .bl-hero-desc
   → 위에서 eyebrow-line / title-line / desc-line 과 동일 취급 가능.
   네 코드 안에서 두 클래스 셋이 섞여 쓰이므로 둘 다 정의한 거야.
*/

/* ---------------------------
   모바일 전용 (#slide_02)
   - 폰트 200% → 약 140% 수준으로 축소
   - 설명은 줄바꿈 허용
---------------------------- */
@media (max-width: 990px) {

    /* 모바일용 컨테이너 */
    #slide_02 .bl-hero-content {
        width: 90%;
        max-width: 500px;
        gap: 1rem;
    }

    /* 상단 라벨 약 40% 작게 */
    #slide_02 .eyebrow-line,
    #slide_02 .bl-hero-eyebrow {
        font-size: 1.3rem;      /* 기존 2.2rem → 1.3rem */
        line-height: 1.3;
        white-space: normal;
    }

    /* 타이틀 약 40% 작게 */
    #slide_02 .title-line,
    #slide_02 .bl-hero-title {
        font-size: 2.2rem;      /* 기존 3.6rem → 2.2rem */
        line-height: 1.3;
        white-space: normal;
    }

    /* 설명 약 40% 작게 (줄바꿈 허용) */
    #slide_02 .bl-desc-block .desc-line,
    #slide_02 .desc-line,
    #slide_02 .bl-hero-desc {
        font-size: 1.2rem;      /* 기존 2rem → 1.2rem */
        line-height: 1.5;
        white-space: normal;
        word-break: keep-all;
        max-width: 32rem;
    }

    /* 버튼 폰트/패딩 약 40% 작게 */
    #slide_02 .bl-hero-button {
        font-size: 1.2rem;      /* 기존 2rem → 1.2rem */
        line-height: 1.3;
        padding: 1rem 1.6rem;   /* 기존 1.4rem 2.4rem → 1rem 1.6rem */
        border-radius: 10px;
    }
}
/* ---------------------------
   Swiper 네비게이션 / 페이지네이션
---------------------------- */

/* 데스크탑에서는 화살표 보이게 */
#slide_01 .swiper-button-prev,
#slide_01 .swiper-button-next {
    color: #000;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.6);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    --swiper-navigation-size: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
#slide_01 .swiper-button-prev:hover,
#slide_01 .swiper-button-next:hover {
    background: rgba(255,255,255,0.9);
}

/* 모바일에서는 화살표 숨김 */
#slide_02 .swiper-button-prev,
#slide_02 .swiper-button-next {
    display: none !important;
}

/* 페이지네이션 점의 기준 좌표를 슬라이더 래퍼로 */
#slide_01 .heroSwiperDesktop,
#slide_02 .heroSwiperMobile {
    position: relative;
}

/* 페이지네이션 위치를 슬라이드 안쪽 하단으로 덮어씌움 */
#slide_01 .swiper-pagination,
#slide_02 .swiper-pagination {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;  /* 기본 위치 */
    width: 100% !important;
    text-align: center !important;
    z-index: 5 !important;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* 모바일에서는 점을 더 붙여서 */
@media (max-width: 990px) {
    #slide_02 .swiper-pagination {
        bottom: 8px !important;
    }

    /* 모바일에서 바깥 여백 없애기(혹시 테마에서 padding 주면 덮어씀) */
    #slide_02 .bl-hero-slider,
    #slide_02 .swiper {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 설명/버튼 아래 여백으로 인해 전체가 너무 길어지지 않도록
       필요하면 여기서 min-height 조정 가능하지만,
       지금은 유지 (이미 #slide_02 .bl-hero-slide 에 min-height:600px 있음)
    */
}

/* 페이지네이션 dot 스타일 */
#slide_01 .swiper-pagination-bullet,
#slide_02 .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !entimportant;
    margin: 0 3px !important;
    background: rgba(0,0,0,0.4) !important;
    opacity: 1 !important;
    box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

#slide_01 .swiper-pagination-bullet-active,
#slide_02 .swiper-pagination-bullet-active {
    background: rgba(0,0,0,0.8) !important;
}

/* ---------------------------
   모바일 전용 슬라이드 (아이폰 상하 여백 줄이기)
---------------------------- */
@media (max-width: 990px) {
    #slide_02 .bl-hero-slide {
        background-size: cover;           /* contain → cover 로 변경 (상하 여백 제거) */
        background-position: center center;
        width: 100%;
        height: auto;                     /* 비율 대신 자동 높이 계산 */
        aspect-ratio: 1.28 / 1;           /* 768x600 기준 비율 */
        min-height: 480px;                /* 너무 낮아지지 않도록 */
        max-height: 600px;

        display: flex;
        align-items: center;
        justify-content: center;

        /* iOS Safari 대응 */
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }

    /* 모바일에서 상하 바깥 여백 제거 */
    #slide_02 .bl-hero-slider,
    #slide_02 .swiper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}



  @media (max-width: 990px) {

    /* 아이폰 전용 슬라이드 높이 보정 */
    #slide_02 .bl-hero-slide {
        /* 우리가 원래 쓰던 레이아웃 그대로 두되
           min-height 때문에 아래로 길게 늘어지는 걸 줄인다 */
        aspect-ratio: 600 / 700;  
        height: 80vw;            /* 유지 */
        min-height: 75vh;        /* ← 600px 대신 화면비 */
        max-height: 700px;       /* 상한선은 그대로 둬도 됨 */

        background-size: contain;       /* 절대 cover로 바꾸지 않는다 */
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #fff;

        /* 하단쪽 큰 빈 공간을 만드는 쓸데없는 강제 block/flex 변화 금지.
           그냥 지금 너의 기본 flex 중앙 정렬 유지 */
        display: flex;
        align-items: center;
        justify-content: center;

        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 버튼+텍스트 박스도 기존처럼 하단에 붙이되 조금 더 낮게 */
    #slide_02 .bl-hero-content {
        bottom: 32px;            /* 아이폰에서 너무 위로 떠있으면 숫자 좀 줄여도 됨 */
    }

    /* 페이지네이션 점도 슬라이드 안쪽에 더 가깝게 */
    #slide_02 .swiper-pagination {
        bottom: 12px !important;
    }
  }

