/* Subpage Layout System */
:root {
    --sub-hero-height: 300px;
    --content-width: 1100px;
}

/* Sub Hero Section */
.sub-hero {
    height: var(--sub-hero-height);
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.6)), url('https://images.unsplash.com/photo-1513519245088-0e12902e5a38?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.sub-hero h1 {
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
    animation: none;
    transform: none;
}

.breadcrumbs {
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumbs span {
    color: var(--accent-color);
}

.breadcrumbs i {
    font-size: 12px;
    margin: 0 5px;
}

/* Sub Navigation (Tabs) */
.sub-nav-container {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 60px;
    position: sticky;
    top: 80px;
    /* Below header */
    z-index: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sub-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    max-width: var(--content-width);
    margin: 0 auto;
}

.sub-nav li {
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.sub-nav a {
    display: block;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.sub-nav a:hover,
.sub-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #fcfcfc;
    font-weight: 700;
}

/* Content Area */
.sub-content {
    max-width: var(--content-width);
    margin: 0 auto 100px;
    padding: 0 20px;
    animation: fadeIn 1s ease;
}

.content-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.content-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    font-family: var(--font-serif);
}

.content-header .subtitle {
    display: block;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 16px;
}

.text-block {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    white-space: pre-line;
}

.text-block p {
    margin-bottom: 20px;
}

/* Specific Component Styles */

/* Greeting Signature */
.greeting-signature {
    margin-top: 60px;
    text-align: right;
    font-family: var(--font-serif);
}

.greeting-signature .name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.greeting-signature .role {
    color: var(--text-light);
    font-size: 15px;
}

/* Table Styles for Schedules/Plans */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.info-table th {
    background: #f8f9fa;
    padding: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.info-table td {
    padding: 18px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: #fafafa;
}

/* Cards for Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sub-nav {
        flex-wrap: wrap;
    }

    .sub-nav li {
        min-width: 50%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
