/* 중앙정보기술인재개발원 스타일 */

.sub-text {
    color: #fff;
    margin-top: -20px;
}

/* 학원연혁*/
.history-page-lead {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.75rem;
}

.history-wrap {
    text-align: left;
    max-width: 920px;
    margin: 0 auto;
}

.history-period {
    margin-bottom: 2.75rem;
}

.history-period:last-child {
    margin-bottom: 0;
}

.history-band {
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #02733e 0%, #078c03 100%);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(2, 115, 62, 0.25);
}

.history-year-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.history-year-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-year-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.85rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #02733e;
    display: inline-block;
    min-width: 3.5rem;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.5rem;
    color: #444;
    font-size: 0.98rem;
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.history-list li:last-child {
    margin-bottom: 0;
}

.history-mon {
    flex: 0 0 1.65rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: #02733e;
    text-align: right;
}


/* Hero Banner for Sub Pages */
.hero-banner {
    position: relative;
    height: 330px;
    /*background: linear-gradient(135deg, #0e2175 0%, #1a3db3 100%);*/
    background-image: url('http://choongang.kbsn.or.kr/upload/promo1.jpg');
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-top: 1rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* About intro paragraph box */
.about-intro-box {
    background: rgba(255,255,255,0.9);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.about-intro-text {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sub Navigation Tabs */
.sub-nav-section {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0;
}

.sub-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav-tab {
    background: #6c757d;
    color: white;
    border: none;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0;
    position: relative;
    flex: 1;
    text-align: center;
}

.sub-nav-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.sub-nav-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.sub-nav-tab:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
}

.sub-nav-tab.active {
    background: white;
    color: #333;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.sub-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #077210;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-section {
    background: white;
    min-height: 600px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 4px;
    /* background: linear-gradient(45deg, #077210, #109c03); */
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #007bff, #0056b3);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #007bff;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0 2rem;
    flex: 1;
    border: 1px solid #e9ecef;
}

.timeline-content h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Teacher Cards */
.teacher-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.teacher-photo {
    position: relative;
    overflow: hidden;
}

.teacher-photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 5% !important;
}
.teacher-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-card .text-muted {
    color: #007bff !important;
    font-weight: 500;
    margin-bottom: 1rem;
}

.teacher-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.teacher-tabs-wrapper {
    background: #f8f9fb;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 12px;
}

.teacher-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.teacher-tab {
    flex: 1;
    min-width: 220px;
    border: 1px solid #e0e6ef;
    background: #fff;
    color: #0e2175;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.teacher-tab.active,
.teacher-tab:hover {
    background: linear-gradient(120deg, #0e7534, #1ab352);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(14, 117, 52, 0.2);
}

.teacher-content {
    display: none;
}

.teacher-content.active {
    display: block;
}

.teacher-detail li {
    margin-bottom: 0.4rem;
    color: #555;
    line-height: 1.5;
}

.teacher-detail li strong {
    color: #0e7534;
    font-weight: 700;
    margin-right: 6px;
}

/* Course Tabs */
/* Campus Cards */
.campus-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.campus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.campus-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campus-card:hover img {
    transform: scale(1.05);
}

.campus-info {
    background: white;
    padding: 2rem;
}

.campus-info h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.campus-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Location Info */
.location-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.location-info h4 {
    color: #007bff;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.location-info h4:first-child {
    margin-top: 0;
}

.location-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.map-container iframe {
    border: none;
    width: 100%;
    height: 300px;
}

/* Location (오시는길) */
.campus-location {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.campus-header {
    background: linear-gradient(45deg, #0e7534, #1ab352);
    padding: 16px 20px;
}

.campus-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.campus-body {
    padding: 18px 20px 20px 20px;
}

.addr-list {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
}

.addr-list li {
    margin-bottom: 8px;
    color: #333;
}

.addr-list li strong {
    display: inline-block;
    min-width: 64px;
    color: #0e2175;
}

.map-box {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.map-caption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
}

.map-caption a {
    color: #0e7534;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-banner {
        height: 320px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .sub-nav-tab {
        padding: 15px 25px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .sub-nav-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .sub-nav-tab {
        border-radius: 0;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .sub-nav-tab:first-child,
    .sub-nav-tab:last-child {
        border-radius: 0;
    }
    
    .sub-nav-tab.active::after {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .about-intro-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 3rem;
    }
    
    .timeline-year {
        position: absolute;
        left: -60px;
        top: 0;
        min-width: 100px;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 1rem;
    }
    
    .teacher-photo img {
        width: 160px;
        height: 160px;
    }
    
    .campus-card img {
        height: 200px;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 250px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .sub-nav-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .about-intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .feature-card,
    .teacher-card,
    .campus-card {
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-year {
        left: -50px;
        min-width: 80px;
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .location-info h4 {
        font-size: 1.2rem;
    }
    
    .map-container iframe {
        height: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-primary {
    color: #02733e !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.border-primary {
    border-color: #007bff !important;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
