/* ===== Hero ===== */
.hero { height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--text-light); padding: 0 20px; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: slideShow 18s infinite; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--shadow); z-index: 0; }

.slide:nth-child(1) { background-image: url('../images/ancient-7366039.jpg'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('../images/gyeongbok-palace-2486029.jpg'); animation-delay: 6s; }
.slide:nth-child(3) { background-image: url('../images/architecture-2287327.jpg'); animation-delay: 12s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1.05); } 5% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1); } 38% { opacity: 0; transform: scale(1.05); } 100% { opacity: 0; }
}

.hero-content { z-index: 1; position: relative; }
.hero h1 { font-family: var(--font-serif); font-size: 4rem; margin-bottom: 2rem; line-height: 1.3; font-weight: 700; animation: fadeUp 1s forwards 0.5s; opacity: 0; transform: translateY(30px); text-shadow: 2px 2px 10px var(--shadow); }
.hero h1 span { display: block; margin-bottom: 0.5rem; }
.hero p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 3rem auto; color: var(--text-light); animation: fadeUp 1s forwards 0.8s; opacity: 0; transform: translateY(30px); font-weight: 300; text-shadow: 1px 1px 5px var(--shadow); }
.hero-btn { display: inline-block; padding: 0.85rem 3.5rem; border: 1px solid var(--accent-color); color: var(--accent-color); font-weight: 600; letter-spacing: 1px; animation: fadeUp 1s forwards 1.1s; opacity: 0; transition: var(--transition); background-color: var(--shadow); backdrop-filter: blur(3px); }
.hero-btn:hover { background-color: var(--accent-color); color: var(--primary-color); }

/* ===== Sections ===== */
section { padding: 7rem 10%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.4rem; color: var(--primary-color); margin-bottom: 1.2rem; }
.section-header .line { width: 60px; height: 3px; background-color: var(--accent-color); margin: 0 auto; }
.section-header p { margin-top: 1.5rem; color: var(--text-color-secondary); font-size: 1.05rem; }

/* ===== About ===== */
.about { background-color: var(--text-light); text-align: center; }
.about-content { max-width: 800px; margin: 0 auto; line-height: 1.9; color: var(--text-color-primary); font-size: 1.15rem; word-break: keep-all;}
.about-stats { display: flex; justify-content: center; gap: 5rem; margin-top: 4rem; }
.stat-item h3 { font-family: var(--font-serif); font-size: 2.8rem; color: var(--accent-color); margin-bottom: 0.5rem; }
.stat-item p { font-size: 1rem; color: var(--primary-color); font-weight: 700; letter-spacing: 1px; text-transform: uppercase;}

/* ===== Practices ===== */
.practices { background-color: var(--back-color-light); }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.practice-card {
    background: var(--back-color-white);
    padding: 3rem;
    border: 1px solid var(--edge-color);
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.practice-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px var(--shadow-light);
    border-color: var(--primary-color);
    border-top-color: var(--accent-color);
}

.practice-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.practice-card p {
    color: var(--text-color-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    word-break: keep-all;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.practice-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    margin-top: auto;
    text-decoration: none;
}

.practice-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ===== Professionals ===== */
.professionals { background-color: var(--text-light); }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.profile-card { background: var(--back-color-white); border: 1px solid var(--edge-color); overflow: hidden; transition: var(--transition); cursor: pointer; display: block; }
.profile-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-light); }
.profile-img { height: 320px; background-color: var(--primary-color); position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.profile-img::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: var(--bg-img); background-size: cover; background-position: top center; opacity: 0.5; filter: grayscale(100%); transition: all 0.5s ease; z-index: 1; }

.profile-card:hover .profile-img::before { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }

.profile-info { padding: 1.8rem 1.5rem; text-align: center; }
.profile-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }
.profile-role { font-size: 0.85rem; color: var(--accent-color); margin-bottom: 1rem; font-weight: 600; text-transform: uppercase; }
.profile-areas { font-size: 0.85rem; color: var(--text-color-tertiary); border-top: 1px solid var(--edge-color); padding-top: 1rem; word-break: keep-all; }

/* ===== Insights & News Slider ===== */
.insights { background-color: var(--back-color-dark); color: var(--text-light); overflow: hidden; position: relative; }
.insights .section-header h2 { color: var(--text-light); }
.insights .section-header p { color: var(--text-blue); }

.news-slider-wrapper { position: relative; max-width: 1200px; margin: 0 auto; }
.news-slider-container { overflow: hidden; padding: 10px 4px; }
.news-track { display: flex; transition: transform 0.5s ease; gap: 2rem; }

.news-card {
    flex: 0 0 calc(33.333% - 1.334rem);
    background-color: var(--back-color-gray);
    padding: 2.5rem;
    border: 1px solid var(--edge-color-light);
    transition: var(--transition);
    display: block;
    min-height: 300px;
}
.news-card:hover { background-color: var(--back-color-gray); border-color: var(--accent-color); transform: translateY(-5px); }
.news-date { color: var(--accent-color); font-size: 0.85rem; margin-bottom: 1rem; display: block; font-weight: 500; }
.news-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.4; color: var(--text-light); word-break: keep-all; }
.news-desc { font-size: 0.95rem; color: var(--text-blue); line-height: 1.7; word-break: keep-all; }

/* ===== Slider Controls ===== */
.slider-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; }
.slider-btn { background: none; border: 1px solid var(--accent-color-edge); color: var(--accent-color); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.slider-btn:hover { background: var(--accent-color); color: var(--primary-color); }
.slider-btn:disabled { opacity: 0.3; cursor: default; }

/* ===== Careers ===== */
.careers { background-color: var(--text-light); text-align: center; }

/* ===== Contact ===== */
.contact { background-color: var(--text-light); }
.contact-subtitle { text-align: center; color: var(--text-color-secondary); font-size: 1.05rem; margin-top: -2.5rem; margin-bottom: 3.5rem; }
.contact-table { width: 100%; background-color: var(--back-color-light); border: 1px solid var(--edge-color); border-radius: 4px; overflow: hidden; box-shadow: 0 5px 15px var(--shadow-light); }
.contact-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; padding: 2.5rem 3rem; border-bottom: 1px solid var(--edge-color); }
.contact-row:last-child { border-bottom: none; }
.contact-label { flex: 0 0 auto; font-weight: 600; color: var(--primary-color); white-space: nowrap; }
.contact-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--text-color-primary); white-space: nowrap; }
.contact-item .ci-key { color: var(--accent-color); font-weight: 600; }

.location { background-color: var(--back-color-light); }
.location-content { display: flex; flex-direction: column; gap: 3rem; align-items: center; max-width: 1200px; margin: 0 auto; }

.transport-guide { width: 100%; background: var(--back-color-white); padding: 3rem; border: 1px solid var(--edge-color); border-radius: 4px; box-shadow: 0 5px 15px var(--shadow-light); }
.guide-row { display: flex; border-bottom: 1px solid var(--edge-color); padding: 1.5rem 0; }
.guide-row:last-child { border-bottom: none; }
.guide-label { flex: 0 0 120px; font-weight: 700; color: var(--primary-color); font-size: 1.05rem; }
.guide-text { flex: 1; color: var(--text-color-secondary); line-height: 1.8; word-break: keep-all; font-size: 0.95rem; }
.guide-sub-title { display: block; font-weight: 600; color: var(--accent-color); margin-bottom: 0.3rem; }

.map-wrapper { width: 100%; height: 450px; background-color: var(--edge-color); border-radius: 4px; overflow: hidden; border: 1px solid var(--edge-color); }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }
.address-box { text-align: center; margin-top: 1rem; }
.address-box h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.address-box p { font-size: 1.05rem; color: var(--text-color-secondary); margin-bottom: 0.5rem; line-height: 1.6; }
.address-box .address-en { color: var(--text-color-tertiary); font-size: 0.9rem; }

/* ===== Footer ===== */
footer { padding: 5rem 5%; }
.footer-content { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }

.footer-logo-row { padding-bottom: 1rem; text-align: center; }
.footer-logo { font-family: 'MaruBuri', serif !important; font-size: 1.5rem; color: var(--text-light); font-weight: 700; }
.footer-logo.logo-en { font-family: 'Aboreto', serif !important; }

.footer-contact-row { display: flex; align-items: center; justify-content: center; padding-bottom: 0.9rem; }
.footer-contact-row p { font-size: 0.82rem; padding: 0 2rem; border-right: 1px solid rgba(255,255,255,0.12); line-height: 1.5; white-space: nowrap; }
.footer-contact-row p:first-child { padding-left: 0; }
.footer-contact-row p:last-child { border-right: none; padding-right: 0; }

.footer-legal-row ul { display: flex; justify-content: center; }
.footer-legal-row ul li a { display: inline-block; font-size: 0.82rem; padding: 0 1.2rem; border-right: 1px solid rgba(255,255,255,0.12); transition: var(--transition); }
.footer-legal-row ul li:first-child a { padding-left: 0; }
.footer-legal-row ul li:last-child a { border-right: none; padding-right: 0; }
.footer-legal-row ul li a:hover { color: var(--accent-color); }

.copyright { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; text-align: center; font-size: 0.8rem; color: var(--text-blue); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .news-card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 1000px) {
    .news-card { flex: 0 0 100%; }
    .hero h1 { font-size: 2.5rem; }
    .about-stats { flex-direction: column; gap: 2rem; }
    section { padding: 5rem 5%; }
    .guide-row { flex-direction: column; gap: 0.5rem; }
    .guide-label { flex: none; }
    .contact-row { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .contact-item { justify-content: flex-start; flex-wrap: wrap; }

    .footer-contact-row { flex-direction: column; align-items: center; gap: 0.5rem; padding-bottom: 0.9rem; }
    .footer-contact-row p { padding: 0; border-right: none; white-space: normal; text-align: center; }
}
