﻿@charset "utf-8"; 

/* AI 추천 */
.main #content .AI_recommand {padding:0 0 30px; background: #FFF;}
.main #content .AI_recommand > div {padding:0 25px; box-sizing: border-box;}
.main #content .AI_recommand .box:before {content: '';position: absolute;right: -48px;bottom: -48px;width: 120px;height: 126px;margin-left: 6px;background: url(../images/common/icon_ai_bot.png) 0 100% no-repeat;background-size: cover;box-sizing: border-box;z-index: 10;}
.main #content .AI_recommand .box{position:relative;height:auto;border-radius: 20px;border: 2px solid #7A55E6;background: #FFF;box-shadow: 4px 4px 4px 0 rgba(109, 87, 248, 0.20);display: flex;padding: 0;}
.main #content .AI_recommand h3:before{display: none;}
.main #content .AI_recommand h3:after{content:''; position: absolute; width: 21px; height: 26px; margin-left: 6px; background: url(../images/common/icon_ai_star.png) 50% 50% no-repeat;}
.main #content .AI_recommand h3 {padding: 15px 0 15px 15px; background: #E9E5FF; width: 125px; box-sizing: border-box; border-radius: 20px 0 0 20px; flex-shrink: 0;}
.main #content .AI_recommand h3 em {color:#8E47ED; font-weight: 600; font-size: 26px}
.main #content .AI_recommand h3 a.keyword{font-size: 14px; padding: 10px 0 10px 17px; position: absolute; border:0; text-decoration: underline;}
.AI_recommand h3 + div{
	box-sizing:border-box;
    display: flex;
    align-items: start;
    padding: 20px 22px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.AI_recommand nav{
    /*display: flex;*/
    /*gap: 4px;*/
    /*flex-wrap: wrap;*/
    align-items: center;
    z-index:20;

    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.AI_recommand nav button{
    appearance: none;
    border: 1.5px solid rgba(0,0,0,.35);
    background: #fff;
    color: #111;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.AI_recommand nav button.is_active, .AI_recommand nav button:hover{
    border-color: transparent;
    color: #fff;
    border-radius: 50px 20px 80px 50px;
    background: linear-gradient(111deg, #EF86FC 36.09%, #6D57F8 88.49%);
    border: 0;
    display: flex;
	padding: 11px 20px;
	justify-content: center;
	align-items: center;
}
.AI_recommand ol{
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 20px;
    align-content: start;
    width: 60%;
    counter-reset: ai;
    min-width: 0;
    padding-right: 56px;
}

.AI_recommand li{
    line-height: 1.35;
    font-weight: 500;
    color: #333;
    counter-increment: ai;
    display: flex;
    align-items: center;
    width: calc(100%/2 - 10px);
}
.AI_recommand li::before{
    content: counter(ai) ".";
    flex: 0 0 auto;
    margin-left: 0px;
    font-weight: 800;
    color: #333;
    
}
/* 리스트 텍스트 말줄임 */
.AI_recommand a{
    color: inherit;
    text-decoration: none;
    padding: 10px 0 10px 30px;
    margin-left:-20px;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    border-bottom: 1px solid #E1E5EE;
}
.AI_recommand a .badge_ai {
	border-radius:99px;
	background: linear-gradient(135deg, #b691ff, #364F12);
	padding: 4px 10px;
	color: #FFF;
	font-size: 14px;
	font-weight: 500;
	display: inline-block;
        margin-right: 4px;
}

.AI_recommand a .badge_keyword {
    border-radius:99px;
    background: linear-gradient(135deg, #b691ff, #364fd5);
    padding: 4px 10px;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-right: 4px;
}
.AI_recommand ol li a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(111deg, #EF86FC 36.09%, #6D57F8 88.49%);

    transform: scaleX(0);
    transform-origin: right; /* ✅ 기본은 오른쪽 기준으로 줄어들게(롤아웃 역방향) */
    transition: transform .35s ease;
}
.AI_recommand ol li a:hover::after,
.AI_recommand ol li a:focus-visible::after{
    transform: scaleX(1);
    transform-origin: left; /* ✅ 왼쪽에서 시작해서 오른쪽으로 확장 */
}

/* 버튼: 기본 트랜지션 */
.AI_recommand nav button{
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, filter;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease,
        border-radius .18s ease;
}

/* 버튼: 반짝이(sheen) - transition 방식 (롤아웃도 서서히 복귀) */
.AI_recommand nav button::before{
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 180%;
    transform: rotate(20deg);
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.35) 50%,
        rgba(255,255,255,0) 100%
    );

    opacity: 0;
    transition:
        left .55s ease,
        opacity .25s ease;
}

/* hover / focus 효과 (모든 버튼) */
.AI_recommand nav button:hover,
.AI_recommand nav button:focus-visible{
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.03);
    box-shadow: 0 10px 18px rgba(109, 87, 248, .18);
}

/* sheen 이동 (hover/focus) */
.AI_recommand nav button:hover::before,
.AI_recommand nav button:focus-visible::before{
    left: 120%;
    opacity: 1;
}

/* 롤아웃 시 서서히 원위치 + 페이드아웃 */
.AI_recommand nav button:not(:hover):not(:focus-visible)::before{
    left: -60%;
    opacity: 0;
}

/* 눌림 */
.AI_recommand nav button:active{
    transform: translateY(0) scale(.99);
    box-shadow: 0 6px 12px rgba(109, 87, 248, .12);
}

/* 선택된 버튼: 기본 상태를 hover 느낌으로 고정 */
.AI_recommand nav button.is_active{
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.03);
    box-shadow: 0 10px 18px rgba(109, 87, 248, .25);
}

/* 선택된 버튼을 실제로 hover/focus 하면 살짝 더 강조 */
.AI_recommand nav button.is_active:hover,
.AI_recommand nav button.is_active:focus-visible{
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.06);
    box-shadow: 0 12px 22px rgba(109, 87, 248, .30);
}

.noKeyword {
	display: none;
	background: #e1e5ee69;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	justify-content: center;
	align-items: center;
	padding: 20px;
    box-sizing: border-box;
}

.ai-tooltip{ position:relative; display:inline-flex; align-items:center; }

.ai-tooltip__trigger{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border:1px solid #d7d7ff;
  border-radius:999px;
  background:#fff;
  font-size:14px;
  cursor:pointer;
}
.ai-tooltip__trigger:focus{ outline:2px solid #6b5bff; outline-offset:2px; }

.ai-tooltip__icon{
  display:inline-flex; width:18px; height:18px;
  align-items:center; justify-content:center;
  border-radius:50%;
  font-size:12px;
  background:#f2f1ff;
}

/* 툴팁 본문 */
.ai-tooltip__panel{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:min(420px, 90vw);
  padding:14px 14px 12px;
  border:1px solid #e6e6ff;
  border-radius:12px;
  background:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  z-index:50;

  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}

/* 화살표 */
.ai-tooltip__panel::before{
  content:"";
  position:absolute;
  top:-6px;
  left:18px;
  width:12px; height:12px;
  background:#fff;
  border-left:1px solid #e6e6ff;
  border-top:1px solid #e6e6ff;
  transform:rotate(45deg);
}

.ai-tooltip__title{ display:block; margin-bottom:8px; font-size:15px; }
.ai-tooltip__list{ margin:0; padding-left:28px; display: flex; flex-direction: column}
.ai-tooltip__list li{ width:100%;  margin:6px 0; line-height:1.45; display: flex; align-items: flex-start; flex-direction: row; flex-wrap: wrap;}
.ai-tooltip__list li:before {margin-left: -14px;}
.ai-tooltip__list b{ font-weight:600; }

/* 데스크톱: hover/focus로 표시 */
.ai-tooltip:hover .ai-tooltip__panel,
.ai-tooltip:focus-within .ai-tooltip__panel{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}


/* ai loading */
.ai_loading {position: absolute;z-index: 100;width: 100%;height: 100%;background: #f7f5ffd9;display: flex;justify-content: center;align-items: center;border-radius: 20px;}

/* 학과소개 팝업 */
.AI_recommand .ai_layer_popup {
    position: fixed;
    inset: 0;
    z-index: 1000 ;
    display: none;
}

.AI_recommand .ai_layer_popup.is_open {
    display: block;
}

.AI_recommand .ai_layer_popup__dim {
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.55); */
}

.AI_recommand .ai_layer_popup__wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 680px;
    padding: 0;
    background: #fff;
    border-radius: 20px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid #7a55e6;
}

.AI_recommand .ai_layer_popup__head {
    padding: 20px 28px;
    background: #e9e5ff;
}

.AI_recommand .ai_layer_popup__title {
    display: block;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}
.AI_recommand .ai_layer_popup__body {
	max-height: 50vh;
	overflow-y: auto;
	padding: 28px;
}

.AI_recommand p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.AI_recommand .ai_layer_popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    /* background: #f1f1f1; */
    font-size: 0;
    cursor: pointer;
}

.AI_recommand .ai_layer_popup__close::before,
.AI_recommand .ai_layer_popup__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #111;
}

.AI_recommand .ai_layer_popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.AI_recommand .ai_layer_popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 관심키워드 */
.keyword_box {border: 4px solid #364fd5;padding: 0 20px;background: #5e74ec2e;box-shadow: 4px 4px 4px 0 rgba(109, 87, 248, 0.20);margin:12px 0 30px;border-radius: 0 35px 12px 12px;}
.keyword_box h3{ background: none; margin-left: 0; padding-left: 10px; font-weight: 700;}
.keyword_list {display: flex;gap: 8px;align-items: center; margin-bottom: 2rem; flex-direction: row; flex-wrap: wrap;}
.keyword_list li div{background: #fff; border:1px solid #5e74ec;display: flex;padding: 5px 8px 5px 12px;align-items: flex-start;gap: 8px;border-radius: 30px;}
.keyword .btn_del {display: flex;background:url(../images/common/icon_del.png) 50% 50% no-repeat;width: 24px;height: 24px;}
.keyword .btn_del:hover {background-color: #5e74ec2e;border-radius: 4px;}
.keyword_list .keyword_add div {border:2px dashed #5e74ec;}
.keyword_add input[type="text"]:focus, .keyword_add input[type="text"]:focus-visible{ outline: none; box-shadow: none;}
.keyword_list .keyword_add div:focus-within{border:2px solid #5e74ec;}
.keyword_add input[type=text]{border:0; width:100px; height: 24px; padding:0 5px 4px}
.keyword .btn_add {display: flex;background:url(../images/common/icon_add.png) 50% 50% no-repeat;width: 24px;height: 24px;}
.keyword .btn_add:hover {background-color: #5e74ec2e;border-radius: 4px;}
.keyword .btn_del span, .keyword .btn_add span {font-size: 0; position: absolute; left: -10000px}

/* SSAA080 더보기 버튼 */
.search_box2 .more_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid #5e74ec;
  border-radius: 999px;
  background: #fff;
  color: #364fd5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(54, 79, 213, 0.12);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.search_box2 .more_btn:hover,
.search_box2 .more_btn:focus {
  background: #364fd5;
  border-color: #364fd5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(54, 79, 213, 0.18);
}
.search_box2 .more_btn:focus {
  outline: 2px solid rgba(54, 79, 213, 0.22);
  outline-offset: 2px;
}
/* 관심 키워드 안내문구 */
.keyword_box + p{
  margin: 8px 2px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7ff;
  border: 1px solid #d8e2ff;
  color: #364fd5;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

@media (max-width:860px) {
	.AI_recommand h3 + div {align-items: flex-start; flex-direction: column;}
	.AI_recommand ol {padding-left: 6px; width: calc(100% - 56px);}
	.noKeyword {margin-top:10px;}
}
@media (max-width:720px) {
	.AI_recommand li {width: 100%;}
	.AI_recommand a {max-width: 100%; white-space: wrap;}
}
@media (max-width:640px) {
	.main #content .AI_recommand .box {flex-direction: column;}
	.main #content .AI_recommand h3 {width: 100%; border-radius:20px 20px 0 0;}
	.main #content .AI_recommand .box:before {bottom:auto; top:-10px;}
	.AI_recommand ol {width: calc(100% - 6px);}
}

/* AI추천이란 */
.ai_recommend_list {display: flex; gap: 20px; align-items: stretch;}
.ai_recommend_list {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.ai_recommend_item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 20px 8px 8px;
    border-radius: 0 35px 12px 12px;
    box-sizing: border-box;
}

.ai_recommend_item.type_purple {
    background: #8d5eec;
}

.ai_recommend_item.type_blue {
    background: #5e74ec;
}

.ai_recommend_item.type_sky {
    background: #5eaaec;
}

.ai_recommend_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.ai_recommend_name {
    margin: 0;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.05em;
    color: #ffffff;
    word-break: keep-all;
    margin:0 !important;
}
.ai_recommend_name:before {display: none !important;}
.ai_recommend_body {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
}

.ai_recommend_body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.05em;
    color: #111111;
    word-break: keep-all;
}

@media all and (max-width: 768px) {
    .ai_recommend_list {
        flex-direction: column;
        gap:4px;
    }

    .ai_recommend_item {
        gap: 8px;
        padding: 12px 3px 3px;
    }
    
    .ai_recommend_head {
    	flex-direction: row;
    	gap:0;
    }

    .ai_recommend_head img {
    
        width:32px; height: 32px;
    }

    .ai_recommend_name {
        font-size: 16px !important;
    }

    .ai_recommend_body p {
        font-size: 17px;
    }
}
