/* ===============================================
   낭만드라이브 - 학원추천 페이지 스타일 (style-recommend.css)
   CTA 버튼 크기 및 반응형 개선
   =============================================== */

:root {
    --primary-color: #fc74a6;
    --secondary-color: #fe6981;
    --accent-color: #263172;
    --success-color: #b5ca31;
    --warning-color: #efb74c;
    --info-color: #00b3ce;
    --danger-color: #ff6350;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #f0e0e8;
    --pink-light: #ffe0ee;
    --pink-pastel: #ffc0db;
    --yellow-kakao: #ffe600;
    --purple-light: #e8d5ff;
    --blue-light: #e0f2ff;
    --green-light: #e8f5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fef6f9;
    overflow-x: hidden;
    background-image:
            radial-gradient(circle at 20% 80%, var(--pink-light) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, var(--purple-light) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 224, 238, 0.3) 0%, transparent 50%);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--pink-pastel) 100%);
    padding: 120px 0 60px;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '🚗';
    position: absolute;
    top: 20px;
    right: 10%;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    animation: float 10s ease-in-out infinite;
}

.page-header::after {
    content: '📚';
    position: absolute;
    bottom: 20px;
    left: 10%;
    font-size: 6rem;
    opacity: 0.1;
    transform: rotate(15deg);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
}

.page-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-family: 'Jua', sans-serif;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.page-header p {
    color: var(--text-dark);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Tab Navigation */
.tab-navigation {
    background: white;
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.1);
    position: sticky;
    top: 76px;
    z-index: 100;
    margin-bottom: 40px;
    border-radius: 30px;
    margin-top: -30px;
    border: 3px solid var(--pink-light);
}

.nav-tabs {
    border-bottom: none;
    justify-content: center;
    padding: 10px;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 25px;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    background: var(--pink-light);
}

.nav-tabs .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tabs .nav-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.3);
}

.nav-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.3);
}

/* Cute Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.1);
    margin: 20px 0 30px;
    display: inline-flex;
    border: 2px solid var(--pink-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "❤️";
    color: var(--primary-color);
    font-size: 0.8rem;
    margin: 0 10px;
}

/* Process Section */
.process-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: 'Jua', sans-serif;
}

.section-title h2::after {
    content: ' ✨';
    color: var(--primary-color);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Cute Process Timeline */
.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--pink-light), var(--purple-light), var(--pink-light));
    transform: translateX(-50%);
    border-radius: 2px;
}

.process-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.process-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-item:nth-child(odd) .process-content {
    text-align: right;
    padding-right: 50px;
    padding-left: 0;
}

.process-content {
    flex: 1;
    padding-left: 50px;
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.15);
    border: 2px solid var(--pink-light);
    transition: all 0.3s ease;
}

.process-content:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(252, 116, 166, 0.2);
    border-color: var(--primary-color);
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.4);
    border: 4px solid white;
    font-family: 'Jua', sans-serif;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: 'Jua', sans-serif;
}

.process-description {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Cute Info Cards */
.info-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.15);
    transition: all 0.3s ease;
    border: 3px solid var(--pink-light);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--pink-light) 0%, transparent 70%);
    border-radius: 50%;
}

.info-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(252, 116, 166, 0.2);
    border-color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jua', sans-serif;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.1);
    border: 2px solid var(--pink-light);
}

.info-table th {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    color: var(--accent-color);
    font-weight: 600;
    padding: 20px;
    text-align: center;
    border: none;
}

.info-table td {
    padding: 20px;
    background: white;
    border: none;
    vertical-align: top;
}

.info-table tr {
    border-bottom: 2px solid var(--pink-light);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: #fffcfd;
}

/* Cute Academy Section */
.academy-section {
    background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
    padding: 80px 0;
    position: relative;
}

.academy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.academy-card {
    background: white;
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.15);
    border: 3px solid var(--pink-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.academy-card::before {
    content: '🏫';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5rem;
    opacity: 0.05;
    transform: rotate(15deg);
}

.academy-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(252, 116, 166, 0.25);
}

.academy-region {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Jua', sans-serif;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    padding: 10px 20px;
    border-radius: 25px;
}

.academy-item {
    background: linear-gradient(135deg, #fff, var(--pink-light));
    border-radius: 20px;
    padding: 18px 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--pink-light);
}

.academy-item:hover {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.2);
}

.academy-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.academy-address {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.academy-address i {
    color: var(--primary-color);
}

/* Cute Contact Table */
.contact-section {
    padding: 80px 0;
}

.contact-table {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(252, 116, 166, 0.15);
    border: 3px solid var(--pink-light);
}

.contact-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.contact-table td {
    padding: 18px;
    text-align: center;
    font-size: 0.9rem;
    vertical-align: middle;
}

.contact-table tbody tr:nth-child(even) {
    background: var(--pink-light);
}

.contact-table tbody tr:hover {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    transition: all 0.3s ease;
}

/* CTA Section의 일반 버튼 (도로교통공단 바로가기 등) */
.cta-btn {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: none;
    white-space: normal;  /* 줄바꿈 허용 */
    text-align: center;
    line-height: 1.4;
}

/* PC에서도 br 태그 작동하도록 */
.cta-btn br {
    display: block;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--pink-light);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

.cta-btn i {
    margin-right: 5px;
}

/* 🎯 우측 하단 고정 CTA 버튼 (카톡상담, 전화상담) - 크기 조정! */
.cta-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-btn.kakao,
.cta-btn.tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 120px;  /* 150px → 120px로 축소 */
    padding: 15px;  /* 18px → 15px로 축소 */
    border-radius: 60px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1;
}

.cta-btn.kakao::before,
.cta-btn.tel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-btn.kakao:hover::before,
.cta-btn.tel:hover::before {
    width: 200px;
    height: 200px;
}

.cta-btn.kakao {
    background: var(--yellow-kakao);
    color: #191919;
}

.cta-btn.tel {
    background: linear-gradient(135deg, #ff6350, #ff8a65);
    color: white;
}

.cta-btn.kakao:hover,
.cta-btn.tel:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cta-btn.kakao i,
.cta-btn.tel i {
    font-size: 1rem;  /* 1.2rem → 1rem으로 축소 */
}

.cta-btn.tel i {
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: #b5b5b5;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    color: white;
    margin-bottom: 20px;
    font-family: 'Jua', sans-serif;
    font-size: 2rem;
}

.footer-content .tel {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-content .tel i {
    color: var(--yellow-kakao);
    margin-right: 10px;
}

/* Emoji decoration */
.emoji-float {
    position: fixed;
    font-size: 2rem;
    opacity: 0.1;
    animation: float-emoji 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float-emoji {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Responsive - 반응형 개선 */
@media (max-width: 992px) {
    .cta-buttons {
        bottom: 25px;
        right: 25px;
        gap: 12px;
    }

    .cta-btn.kakao,
    .cta-btn.tel {
        width: 110px;
        padding: 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .nav-tabs .nav-link {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 0 5px;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-item {
        flex-direction: column !important;
        text-align: left !important;
    }

    .process-number {
        left: 30px;
        transform: translateX(-50%);
    }

    .process-content {
        padding-left: 80px !important;
        padding-right: 20px !important;
        text-align: left !important;
        margin-bottom: 20px;
    }

    .academy-grid {
        grid-template-columns: 1fr;
    }

    .contact-table {
        font-size: 0.8rem;
    }

    .contact-table th,
    .contact-table td {
        padding: 10px 5px;
        font-size: 0.75rem;
    }

    /* 모바일에서 도로교통공단 버튼 조정 */
    .cta-btn {
        padding: 20px 30px;
        font-size: 1rem;
        min-width: 180px;
        max-width: 220px;
    }

    /* 모바일에서 CTA 버튼 더 작게 */
    .cta-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .cta-btn.kakao,
    .cta-btn.tel {
        width: 100px;
        padding: 12px;
        font-size: 0.8rem;
    }

    .cta-btn.kakao i,
    .cta-btn.tel i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* 작은 모바일에서 더 작게 */
    .cta-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .cta-btn.kakao,
    .cta-btn.tel {
        width: 90px;
        padding: 10px;
        font-size: 0.75rem;
    }

    .cta-btn.kakao i,
    .cta-btn.tel i {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Icon Colors */
.icon-primary { color: var(--primary-color); }
.icon-secondary { color: var(--secondary-color); }
.icon-accent { color: var(--accent-color); }
.icon-success { color: var(--success-color); }
.icon-warning { color: var(--warning-color); }
.icon-danger { color: var(--danger-color); }
.icon-info { color: var(--info-color); }