/* Additional CSS for About Page - add these to your modern_style.css file */

/* Active navigation link style */

/* Page Banner */
.page-banner {
    background-color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(50, 185, 160, 0.1);
}

.page-title {
    font-family: var(--font-korean);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal */

.display-none {
    display: none;
}


/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    color: var(--primary-color);
    font-family: var(--font-korean);
    background-color: white;
}


.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.philosophy-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(50, 185, 160, 0.1);
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 185, 160, 0.1);
}

.philosophy-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    /* color: var(--text2-color); */
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    font-family: var(--font-korean);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* color: var(--text2-color); */
}

.philosophy-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Team Section */
/* Carousel */
.carousel-container {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 85vh;
    min-height: 700px;
}

/* Full Width Image Background */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1s ease;
}

.carousel-slide:hover .slide-background img {
    transform: scale(1.02);
}

/* Dark Overlay for Text Readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

    /* Content Container */
    .slide-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 80px;
    }

    .content-wrapper {
        max-width: 650px;
    }



/* TEAM */

/* Tabs Navigation */

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    border-bottom: 2px solid #e8e6df;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-korean);
    font-size: 0.95rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-btn:hover {
    color: #666;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px 0;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.team {
    padding: 6rem 0;
    background-color: white;
    font-family: var(--font-korean);
    color: var(--primary-color);
}


.team-profile{
    flex-direction: column;
    align-items: right;
    justify-content: right;

}
.team table {
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.95rem;
}

/* First column: 40% width, second column 60% */
.team td:first-child {
    width: 20%;
    text-align: left;
    padding: 12px 20px;
    font-weight: 500;
    color: #555;
    border-right: 1px solid #e8e6df;
}

.team td:last-child {
    width: 30%;
    text-align: left;
    padding: 12px 20px;
    color: #333;
}


/* Hover highlight */
.team tr:hover td {
    background-color: #f1f4f8;
    transition: background-color 0.25s ease;
}

/* Borders between rows */
.team td {
    border-bottom: 1px solid #e8e6df;
}

.team .container{
    width: 100%;
    max-width: 1500px;
    margin: 0, auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.team-img {
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease;
}

.team-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.team-col {
    flex: 1;
    /* flex-direction: column; */
    /* align-items: right; */
    /* justify-content: right; */
}

.credentials {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    /* align-items: center; */
    /* justify-content: center; */
}

.credential-badge {
    padding: 10px 20px;
    background: rgba(92, 114, 74, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(92, 114, 74, 0.9);
    border-radius: 30px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.credential-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-title {
    /* font-size: 1.1rem; */
    /* margin-bottom: 40px; */
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.instructor-label{
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 15px;
    font-weight: 400;
}

.instructor-name {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.instructor-title {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.info-table td:first-child {
    width: 25%;
    text-align: left;
    padding: 12px 20px;
    font-weight: 500;
    color: #555;
    border-right: 1px solid #e8e6df;
    vertical-align: top;
}

.info-table td:last-child {
    padding: 12px 20px;
    color: #333;
}

.info-table tr:hover td {
    background-color: #f1f4f8;
    transition: background-color 0.25s ease;
}

.info-table td {
    border-bottom: 1px solid #e8e6df;
}

/* Timeline Styles for Career/Academic */
.timeline-item {
    padding: 20px 0;
    border-bottom: 1px solid #e8e6df;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}





.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .team-photo img {
    transform: scale(1.1);
}

.team-member h3 {
    font-family: var(--font-korean);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Facilities Section */
.facilities {
    padding: 6rem 0;
    /* background-color: #f9fcfc; */
    /* background-color: var(--secondary-color); */
    font-family: var(--font-korean);
    background-color: white;
}

.facilities h2{
    color: var(--primary-color);
}

.facilities-list {
    list-style: none;
    margin: 2rem 0;
}

.facilities-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.facilities-list i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}

.gallery-img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .philosophy-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 830px) {


    .page-title {
        font-size: 2.5rem;
    }


    .about-content p {
        text-wrap: balance;
    }

    .container{
        width: 100%;
    }

    .section-title {
        text-align: center;
    }

    .section-description{
            text-align: center;
    }


    .philosophy {
        text-align: left;
    }
    
    .philosophy-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-card{
        margin: auto;
        width: 90%;
    }

    .philosophy-grid p{
        text-align: left;
    }


    .team-photo {
        width: 180px;
        height: 180px;
    }

    .team-bio {
        text-align: center;
    }

 .modal{
     width: 100vw;
 }
 .modal-content {
     width: auto;
     height: auto;
     margin: auto;
     padding: auto;
  }
    
  .modal-content table {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
    font-family: var(--font-korean);
    animation: slideInFromLeft 2s;
    table-layout: fixed;
  }

  .modal-content td:first-child {
    width: 45%;           /* slightly less than half for better balance */
    text-align: left;     /* left align for better readability on small */
    padding: 10px 15px 10px 0;
    border-right: none;   /* remove border for cleaner mobile look */
    vertical-align: top;
    font-weight: 600;     /* a bit bolder for label clarity */
    color: #444;
  }

  .modal-content td:last-child {
    width: 55%;
    padding: 10px 0 10px 15px;
    text-align: left;
    vertical-align: top;
    color: #222;
  }
}

@media (max-width: 768px) {
    .team {
        padding: 3rem 0;
    }
    
    .team .container {
        padding: 0 20px;
    }
    
    .team-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .team-img {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .instructor-name {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .instructor-label,
    .instructor-title {
        text-align: center;
    }
    
    .credentials {
        justify-content: center;
        gap: 10px;
    }
    
    .credential-badge {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .tabs-nav {
        gap: 5px;
        margin-top: 30px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .tab-content {
        padding: 20px 0;
    }
    
    .info-table {
        font-size: 0.85rem;
    }
    
    .info-table td:first-child {
        width: 35%;
        padding: 10px 12px;
    }
    
    .info-table td:last-child {
        padding: 10px 12px;
    }
    
    .timeline-item {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .team-img {
        margin: 0 auto;
        display: block;
        max-width: 480px;
    }

    .tab-nav{
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .credentials {
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .profile-title {
        text-align: center;
    }

    .instructor-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .instructor-title {
        font-size: 0.95rem;
    }

    .team-col{
        justify-content:center;
        align-items: center;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    /* Stack table on very small screens */
    .info-table td:first-child,
    .info-table td:last-child {
        display: block;
        width: 100%;
        border-right: none;
    }
    
    .info-table td:first-child {
        padding-bottom: 5px;
        font-weight: 600;
        border-bottom: none;
    }
    
    .info-table td:last-child {
        padding-top: 5px;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-subtitle {
        font-size: 0.85rem;
    }
}



