/* 메인 슬라이더 스타일 */
#mainSWrap {
    width: 100%;
    height: 70vh;
    position: relative;
    font-family: "SUIT-Regular";
    margin-bottom: 20px;
}

#mainSlide {
    width: 100%;
    height: 100%;
    background: url(/images/visual.png) no-repeat center center;
    background-size: cover;
    position: relative;
}

.mainSwiper {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}
.areaWrap{
	width:1400px;display:flex;margin:0 auto;align-items:center;
}
.areaWrap.control{
	gap: 30px;
}
.mainSwiper .swiper-slide {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mainSwiper .swiper-slide .txtArea {
width:50%;
    position: relative;
    transform: none;
    text-align: left;
    text-shadow: none;
    z-index: 2;
}
.mainSwiper .swiper-slide .txtArea h3 {
    font-size: 24px;
    color: #fff;
    padding: 5px 50px;
    border-radius: 50px;
    text-align: center;
	display:inline-block;
}
/*
.txt-first{
    background-color: #A27D46;
}
.txt-second{
    background-color: #FE1A4D;
}
.txt-third{
    background-color: #9EB2B1;
}
*/
.mainSwiper .swiper-slide .txtArea h2 {
    font-size: 52px;
    padding: 30px 0;
    font-family: "SUIT-Bold";
}
/*
.title-first{
    color:#A27D46;
}
.title-second {
    color:#FE1A4D;
}
.title-third {
    color:#9EB2B1;
}
*/
.mainSwiper .swiper-slide .txtArea p {
    font-size: 28px;
    font-family: "SUIT-Bold";
    color: #333;
}

/* 텍스트 애니메이션 스타일 수정 */
.mainSwiper .txtArea h3,
.mainSwiper .txtArea h2,
.mainSwiper .txtArea p {
    opacity: 0;
    transform: translateY(20px);
    margin: 0;
}

/* 활성화된 슬라이드의 텍스트 애니메이션 */
.mainSwiper .swiper-slide-active .txtArea h3 {
    animation: simpleUp 0.5s ease forwards;
    animation-delay: 0.1s;
}

.mainSwiper .swiper-slide-active .txtArea h2 {
    animation: simpleUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

.mainSwiper .swiper-slide-active .txtArea p {
    animation: simpleUp 0.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes simpleUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 비활성 슬라이드 초기화 */
.mainSwiper .swiper-slide:not(.swiper-slide-active) .txtArea h3,
.mainSwiper .swiper-slide:not(.swiper-slide-active) .txtArea h2,
.mainSwiper .swiper-slide:not(.swiper-slide-active) .txtArea p {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

/* bgArea 애니메이션 스타일 수정 */
.mainSwiper .swiper-slide .bgArea {
    width: 50%;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transform: translateX(100px); /* 100px 오른쪽에서 시작 */
    animation: slideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.7s;
}

.mainSwiper .bgArea img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* 슬라이드 오버레이 제거 */
.mainSwiper .swiper-slide::before {
    display: none;
}

/* 컨트롤러 스타일 수정 */
.swiper-controls {   
	position:relative;
/*  position: absolute;
    left: 260px; */
    bottom: 18%;
    display: flex;
    align-items: center;
    gap: 80px;
    z-index: 10;
}

/* 컨트롤러 원형 버튼 공통 스타일 */
.control-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

/* 페이지네이션 스타일 수정 */
.fraction {
    font-size: 14px;
    color: #666;
}

.fraction .current {
    color: #0066b3;
}

/* 화살표 버튼 스타일 수정 */
.mainSwiper .swiper-button-next,
.mainSwiper .swiper-button-prev {
    position: static;
    width: 50px;
    height: 50px;
    margin: 0;
    color: #666;
}

.mainSwiper .swiper-button-next {
    padding-left: 30px;
}
.mainSwiper .swiper-button-prev {
    padding-right: 30px;
}

.mainSwiper .swiper-button-next:after,
.mainSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bolder;
}

/* 재생/정지 버튼 스타일 수정 */
.swiper-button-play,
.swiper-button-pause {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.swiper-button-play.hide,
.swiper-button-pause.hide {
    opacity: 0;
    pointer-events: none;
}

.pager_num {
    display: flex;
    align-items: center;
}

.swiper_num {
    width: auto;
    min-width: 20px;
    height: 20px;
    overflow: hidden;
    color: rgba(0, 0, 0, 0.5);
    font-size: 24px;
    font-weight: bold;
}

.swiper_num .swiper-wrapper {
    transition-timing-function: ease-out;
}

.swiper_num .swiper-slide {
    width: auto !important;
    text-align: center;
    height: 20px;
    line-height: 20px;
    opacity: 1; /*이쪽수정*/
    transition: opacity 0.3s ease;
}

.swiper_num .swiper-slide-active {
    opacity: 1;
}

.pager_num span {
    color: rgba(0, 0, 0, 0.5);
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 0.5px;
}

.control-circle.prev,
.control-circle.next {
    cursor: pointer;
}

/* 네비게이션 화살표 위치 조정 */
.control-circle.prev .swiper-button-prev:after,
.control-circle.next .swiper-button-next:after {
    font-size: 12px;
}

/* 애니메이션 키프레임 */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 비활성 슬라이드의 bgArea 초기화 */
.mainSwiper .swiper-slide:not(.swiper-slide-active) .bgArea {
    opacity: 0;
    transform: translateX(100px); /* 초기 위치도 오른쪽으로 변경 */
    animation: none;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
.m-100 {
    margin-bottom: 100px !important;
}

.best-title-wrap {
    margin-bottom: 30px;
}

.best-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.best-title img {
    width: 40px;
    height: 40px;
}

.best-title h1 {
    font-size: 40px;
    font-weight: 600;
    color: #000;
    font-family: "SUIT-Bold";
}

.best-title-sub {
    font-size: 18px;
    color: #555;
    font-family: "SUIT-Regular";
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 24px;
}

.book-card {
    background: transparent;
    border: none;
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-8px);
}

.book-card:hover .book-image-wrapper {
    background: #ffffff;
    border: 2px solid #0070fd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.book-image-wrapper {
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.book-image {
    width: 150px;
    display: block;
    margin: 30px auto;
}

.book-info {
    padding: 0;
}

.book-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-family: "SUIT-SemiBold";
}

.book-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.discount {
    color: #ef3f3f;
    font-weight: 400;
    font-size: 16px;
}

.current-price {
    color: #ef3f3f;
    font-weight: 500;
    font-size: 16px;
    padding-right: 5px;
    font-family: "SUIT-ExtraBold";
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

@media (max-width: 1024px) {
    #header2{height:80px;}

    .m-100{
        padding: 0 20px;
    }
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .areaWrap{
        width:100%;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .best-title h1 {
        font-size: 24px;
    }

    .best-title-sub {
        font-size: 14px;
    }
}

.materials-swiper {
    padding: 20px 0;
}

.material-card {
	display:block;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 24px;
    height: 240px;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.material-card:hover {
    background: #ffffff;
    border-color: #0070fd;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 112, 253, 0.1);
    font-size: 24px;
    color: #0070fd;
}
.material-card:hover .material-title {
    color: #0066ff;
}
.material-title {
    font-size: 24px;
    color: #222222;
    font-family: "SUIT-ExtraBold";
    margin-bottom: 8px;
}

.material-desc {
    font-size: 16px;
    color: #555555;
    font-family: "SUIT-SemiBold";
    margin-bottom: 14px;
}

.material-link {
    color: #0070fd;
    font-size: 16px;
    font-family: "SUIT-SemiBold";
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.material-icon {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 50%;
}

.material-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swiper-container2 {
    position: relative;
}
.swiper-container2 .swiper2-button-next,
.swiper-container2 .swiper2-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.swiper-cont {
    overflow: hidden;
}
.swiper-container2 .swiper-button-next {
    right: -5%;
}
.swiper-container2 .swiper-button-prev {
    left: -5%;
}

@media (max-width: 768px) {
    .material-card {
        height: 180px;
        padding: 20px;
    }

    .material-title {
        font-size: 18px;
    }

    .material-desc {
        font-size: 14px;
    }
}

/* 첫 번째 슬라이드의 카드에 hover 효과와 동일한 스타일 적용 */
.swiper-cont .swiper-slide:first-child .material-card {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border: 2px solid #0066ff;
}

.swiper-cont .swiper-slide:first-child .material-card .material-title {
    color: #0066ff;
}

/* 기존 hover 효과 */
.material-card:hover {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border: 2px solid #0066ff;
}

.material-card:hover .material-title {
    color: #0066ff;
}

/* active 클래스가 있는 카드와 hover 효과 동일하게 적용 */
.material-card.active, .material-card:hover {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border: 2px solid #0066ff;
}

.material-card.active .material-title, .material-card:hover .material-title {
    color: #0066ff;
}

.notice-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border: none;
}

/* 모바일 스타일 */
@media screen and (max-width: 768px) {
    .notice-title {
        font-size: 18px;
        padding: 20px;
        margin-bottom: 0;
        border: none;
    }
}

.notice-section {
    flex: 1;
}

.cs-section {
    width: auto;
    flex: 1;
    display: flex;
    background-color: #fffbde;
    border-radius: 12px;
    border: 2px solid #989898;
    position: relative;
}

.notice-section h1 {
    font-size: 40px;
    font-family: "SUIT-Bold";
    padding-bottom: 30px;
}

.notice-section .notice-item:first-child {
    border-top: 2px solid #0066ff !important;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px 20px 0;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}
.notice-item:hover .notice-content {
    color: #222;
    font-family: "SUIT-Bold";
}

.notice-item:hover .notice-arrow {
    color: #003399;
    background-color: #eaf4ff;
}

.notice-date {
    font-size: 13px;
    color: #777;
    margin-right: 20px;
    font-family: "SUIT-ExtraBold";
}

.notice-content {
    flex: 1;
    font-family: "SUIT-Regular";
}

.notice-arrow {
    color: #0066ff;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.notice-item:hover .notice-arrow {
    transform: translateX(4px);
}

.notice-item:hover .notice-arrow i {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

.customer-service {
    padding: 33px 50px;
}

.cs-title {
    color: #0066ff;
    font-size: 40px;
    margin-bottom: 10px;
    font-family: "SUIT-Bold";
}

.cs-phone {
    font-size: 40px;
    color: #222;
    margin-bottom: 10px;
    font-family: "SUIT-Bold";
}
.cs-phone i {
    font-size: 32px;
    margin-right: 10px;
}

.cs-hours {
    line-height: 1.5;
    font-family: "SUIT-Regular";
    font-size: 20px;
    color: #555;
}

.cs-label {
    display: inline-block;
    width: 50px;
    color: #222;
    font-family: "SUIT-Bold";
    font-size: 20px;
}
.cs-img .cs-image {
    position: absolute;
    right: 35%;
    top: -15%;
}
.cs-img .cs-image2 {
    position: absolute;
    right: 5%;
    bottom: -12px;
}
.flex {
    display: flex;
    gap: 40px;
    align-items: flex-end;
}

@media screen and (max-width: 768px) {
   
    .container {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .cs-section {
        width: 100%;
    }

    .notice-item {
        padding: 20px;
    }

    .customer-service {
        border-radius: 0;
    }

    .flex {
        flex-direction: column;
        gap: 0;
    }
}

.first-item {
    border-top: 2px solid #0066ff;
}

.cs-image {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/*메인아래 더블 배너*/
.gold-banner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gold-banner-col {
    flex: 1;
    min-width: 300px;
}

.dualbr {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.dualbr .swiper-slide {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.dualbr .swiper-slide a {
    height: 100%;
}

.dualbr .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .banner-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-wrapper {
        width: 100%;
    }
    .dualbr .swiper-slide {
        height: auto;
    }
    .dualbr{
        height: 100% !important;
        min-height: 100px !important;
    }
    .dualbr{
        height: 100% !important;
        min-height: 100px !important;
    }
}
