/* CSS based on ewg-board.eu website styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 14px;
    font-family: Verdana, Lucida Console, Trebuchet MS, sans-serif;
    background-color: #FFF;
    color: #333;
    line-height: 1.6;
}

/* 主布局：左中右三栏 */
.main-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 左侧栏 */
.left-sidebar {
    width: 170px;
    background-color: #fff;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
}

.society-title {
    font-size: 10px;
    text-align: left;
    text-transform: uppercase;
    line-height: 1.2;
    color: #000;
    margin-bottom: 5px;
    width: 100%;
}

.society-title.bold {
    font-weight: bold;
}

.society-title.normal {
    font-weight: normal;
    font-size: 9px;
    margin-bottom: 10px;
}

.navigation-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-item {
    background-color: #E3F2FD;
    border-right: 3px solid #4CAF50;
    padding: 6px 8px;
    margin-bottom: 1px;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    display: block;
    text-align: left;
}

/* 中间内容区 */
.main-content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
}

.container {
    max-width: 100%;
    padding: 20px;
    background-color: #ffffff;
    margin-top: 3%;
}

h1 {
    text-align: center;
    color: #45987D;
    font-size: 26px;
    margin-bottom: 40px;
    font-weight: normal;
}

/* 表单错误提示 */
.form-error {
    text-align: center;
    color: #d32f2f;
    background: #fdecea; /* light red */
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px auto 16px;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-error .icon {
    font-weight: 700;
}

/* 右侧栏 */
.right-sidebar {
    width: 175px;
    background-color: #fff;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-bars {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 10px;
    width: 100%;
}

.color-bar {
    width: 100%;
    height: 8px;
}

.bar-blue {
    background-color: #2196F3;
}

.bar-teal {
    background-color: #00BCD4;
}

.bar-light-green {
    background-color: #A5D6A7;
}

.portrait-container {
    width: 100%;
    margin-bottom: 10px;
}

.portrait {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.portrait-name {
    font-size: 11px;
    text-align: center;
    color: #000;
    line-height: 1.3;
    margin-top: 5px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
	justify-content: center;
}

.form-group label {
    width: 200px;
    text-align: right;
    padding-right: 20px;
    color: #333;
    font-size: 16px;
}

.form-group input {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #4a9d9d;
}

.button-container {
    text-align: center;
    margin-top: 40px;
}

button {
    padding: 10px 40px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

button:hover {
    background-color: #f0f0f0;
}

.content-section {
    margin-bottom: 30px;
}

.image-placeholder {
    background-color: #e8e8e8;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    margin: 0 auto;
}

.certificate-placeholder {
    width: 400px;
    margin: 0 auto;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.avatar-placeholder {
    width: 120px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.name-and-title {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}

.name-and-title p {
    margin: 5px 0;
    color: #333;
    font-size: 16px;
}

.resume-section {
    border: 1px solid #333;
    padding: 40px;
    min-height: 300px;
    text-align: left;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.resume-name {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.resume-part {
    margin-bottom: 30px;
}

.resume-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
}

.resume-subtitle {
    font-size: 17px;
    font-weight: 600;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.resume-section p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.resume-list {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 20px;
}

.resume-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.resume-section strong {
    font-weight: bold;
    color: #000;
}
