@charset "utf-8";

/* KSMS Renewal - Secretariat Page CSS */

.ksms-secretariat-wrapper {
    max-width: 1100px; /* Slight increase for 3 columns */
    margin: 0 auto;
    padding: 60px 20px 100px;
    font-family: 'Pretendard', sans-serif;
    color: #1d1d1f;
}

/* Header */
.sec-header {
    text-align: center;
    margin-bottom: 80px;
}

.sec-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: -1px;
}

.sec-subtitle {
    font-size: 16px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Map slightly wider */
    gap: 30px;
    margin-bottom: 60px;
}

/* Info Card (Left) */
.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 5px 40px; /* Extreme reduction as requested */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content if shorter than map */
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: #00397f;
    margin-bottom: 25px; /* Restored spacing */
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    font-size: 24px;
    color: #00397f;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* flex-grow removed to allow natural height */
}

.info-item {
    margin-bottom: 20px; /* Balanced spacing */
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 57, 127, 0.1);
    color: #00397f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

.info-content {
    flex-grow: 1;
}

.info-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

/* Secretary Staff Section - Compact 2-Column Grid */
.staff-box {
    margin-top: 15px; /* Reduced from 20 */
    padding-top: 15px; /* Reduced from 20 */
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.staff-item {
    display: block; /* Changed to block for vertical stacking of role/name */
    margin-bottom: 0;
}

.staff-role {
    font-weight: 600;
    color: #777;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.staff-name {
    font-weight: 800;
    color: #000;
    font-size: 16px;
    display: block;
}

/* Map Card (Right) */
.map-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fc;
    height: 100%;
    min-height: 400px; /* Ensure minimum height */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.map-placeholder {
    width: 100%;
    flex: 1; /* Fill available space */
    box-sizing: border-box;
    /* Use a nice abstract Map or Building Background if available, or just a placeholder pattern */
    background: radial-gradient(circle at center, #ffffff 0%, #eef2ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.map-icon {
    font-size: 60px;
    color: #00397f;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,57,127,0.2));
}

.map-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.map-btn {
    background: #00397f;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 57, 127, 0.2);
    transition: all 0.3s ease;
}

.map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 57, 127, 0.3);
    background: #00285a;
    color: #fff;
}

.map-btn.naver {
    background: #03c75a;
    box-shadow: 0 10px 20px rgba(3, 199, 90, 0.2);
}

.map-btn.naver:hover {
    background: #02b350;
    box-shadow: 0 15px 30px rgba(3, 199, 90, 0.3);
}

/* Directions Section */
.directions-section {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.dir-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.dir-item {
    text-align: left; /* Changed to left for better readability of long text */
    padding: 0 10px;
    border-right: 1px solid #f0f0f0;
}

.dir-item:last-child {
    border-right: none;
}

.dir-icon {
    width: 60px;
    height: 60px;
    background: #f5f7fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 26px;
    transition: all 0.3s ease;
}

.dir-item:hover .dir-icon {
    background: #00397f;
    color: #fff;
    transform: translateY(-5px);
}

.dir-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}

.dir-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    word-break: keep-all; /* Keep Korean words together */
}

.dir-desc strong {
    color: #00397f;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    margin-top: 10px;
}

.dir-desc strong:first-child {
    margin-top: 0;
}

/* Responsive */
/* Responsive */
@media (max-width: 991px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dir-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dir-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 30px;
        text-align: left; /* Keep left align for readability on mobile too */
        padding-left: 0;
        padding-right: 0;
    }

    .dir-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .dir-icon {
        margin: 0 0 15px 0; /* Align icon left with text */
    }
    
    .map-card {
        min-height: 300px;
    }
    
    .map-placeholder {
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .map-btn {
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ksms-secretariat-wrapper {
        padding: 40px 20px 80px;
    }

    .sec-title {
        font-size: 28px;
    }

    .info-card, .directions-section {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .info-icon, .dir-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .map-text {
        font-size: 16px;
    }
}
