/* Sub Page Styles */

/* Page Header - Clean Design */
.page-header {
    background: #f8f9fa;
    padding: 25px 0;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h1 {
    font-size: var(--fs-heading-lg);
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 700;
}

.breadcrumb {
    font-size: var(--fs-lg);
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #000000;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* Sub Navigation Tabs */
.sub-nav-tabs {
    background: #fff;
    padding: 0;
    margin-top: 20px;
    border-bottom: 2px solid #000000;
}

.sub-nav-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.sub-nav-tabs li {
    flex: 0 0 auto;
}

.sub-nav-tabs a {
    display: block;
    padding: 12px 25px;
    color: #666;
    text-decoration: none;
    font-size: var(--fs-xl);
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.sub-nav-tabs a:hover {
    color: #000000;
    background: #f8f9fa;
}

.sub-nav-tabs a.active {
    color: #000000;
    border-bottom-color: #000000;
    background: #fff;
}

/* Page Content */
.page-content {
    padding: 40px 0;
    min-height: 600px;
}

.content-wrapper {
    border-radius: 10px;
    padding: 40px;
}

.content-wrapper h2 {
    color: #2c3e50;
    font-size: var(--fs-heading-md);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
}

.content-wrapper h3 {
    color: #34495e;
    font-size: var(--fs-heading-sm);
    margin: 30px 0 20px;
}

.content-wrapper p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Greeting Page */
.greeting-content {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    position: relative;
}

.greeting-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1a202c;
    opacity: 0.3;
    border-radius: 12px 12px 0 0;
}

.greeting-content p {
    font-size: var(--fs-content-lg);
    margin-bottom: 20px;
    line-height: 1.8;
    color: #4a5568;
}

.greeting-content p:first-child {
    font-size: var(--fs-heading-xs);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.signature {
    margin-top: 50px;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border: 2px solid #a0aec0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.signature p {
    font-size: var(--fs-heading-xs);
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.signature p strong {
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
}

.signature p strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #1a202c;
    opacity: 0.3;
}

/* Active Navigation */
.main-nav .dropdown.active > a {
    background-color: #34495e;
}

.dropdown-content a.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

/* Organization Page */
.org-chart {
    margin: 40px 0;
}

.org-level {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.org-box {
    background-color: #f8f9fa;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    padding: 20px 30px;
    min-width: 200px;
    text-align: center;
}

.org-box.chairman {
    background-color: #2c3e50;
    color: #fff;
}

.org-box h4 {
    font-size: var(--fs-heading-xs);
    margin-bottom: 10px;
}

.org-box p {
    font-size: var(--fs-xl);
    margin: 5px 0;
}

/* History Page */
.history-timeline {
    position: relative;
    padding-left: 50px;
    margin: 40px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #2c3e50;
}

.history-item {
    position: relative;
    margin-bottom: 40px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffcc66;
    border: 2px solid #2c3e50;
}

.history-year {
    font-size: var(--fs-heading-sm);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.history-content {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 3px solid #ffcc66;
}

/* Conference Page */
.conference-section {
    margin: 40px 0;
}

.conference-period {
    background-color: #fffbf0;
    border: 2px solid #ffcc66;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.conference-period h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.year-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.year-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.year-item:hover {
    background-color: #2c3e50;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Publication Page */
.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pub-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.pub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.pub-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.pub-info {
    padding: 20px;
}

.pub-info h4 {
    font-size: var(--fs-content-lg);
    margin-bottom: 10px;
    color: #2c3e50;
}

.pub-info p {
    font-size: var(--fs-xl);
    color: #666;
    margin: 5px 0;
}

/* Research Support Page */
.award-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.award-table th,
.award-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.award-table th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 500;
}

.award-table tr:hover {
    background-color: #f8f9fa;
}

/* Notice Page */
.notice-board {
    margin: 30px 0;
}

.notice-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.notice-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notice-title {
    font-size: var(--fs-heading-xs);
    color: #2c3e50;
    text-decoration: none;
}

.notice-title:hover {
    color: #34495e;
}

.notice-date {
    color: #999;
    font-size: var(--fs-xl);
}

.notice-content {
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.download-list {
    list-style: none;
}

.download-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.download-list a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.download-list a:hover {
    color: #34495e;
}

.download-list a::before {
    content: '📄';
    margin-right: 10px;
    font-size: var(--fs-heading-sm);
}

/* Responsive Design for Sub Pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: var(--fs-heading-lg);
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .content-wrapper h2 {
        font-size: var(--fs-heading-md);
    }
    
    .org-level {
        flex-direction: column;
        align-items: center;
    }
    
    .publication-grid {
        grid-template-columns: 1fr;
    }
    
    .year-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .award-table {
        font-size: var(--fs-xl);
    }
    
    .award-table th,
    .award-table td {
        padding: 10px;
    }
}