/* KSMS President Message Page CSS */

/* Wrapper */
.ksms-president-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 80px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Card Style (Same Premium White Card) */
.president-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 80px 70px;
    box-shadow: 0 20px 60px rgba(0, 57, 127, 0.08), 
                0 0 1px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Scroll Light Line (Right Side) */
.scroll-light-line-p {
    position: fixed;
    top: 0;
    right: 40px;
    width: 3px;
    height: 0;
    background: #111;
    box-shadow: none;
    z-index: 900;
    pointer-events: none;
    transition: height 0.05s linear;
    border-radius: 2px;
    pointer-events: none;
    transition: height 0.1s linear;
}

/* Top Decoration */
/* Top Decoration */
.president-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px; /* Slightly thicker for pastel effect */
    /* Blue (#8EC5FC) to Red (#FF9A9E) Pastel Gradient */
    background: linear-gradient(90deg, #8EC5FC 0%, #E0C3FC 50%, #FF9A9E 100%);
    box-shadow: 0 5px 15px rgba(224, 195, 252, 0.4); /* Soft Glow */
    border-radius: 32px 32px 0 0; /* Follow card radius */
}

/* Content Layout */
.president-header {
    text-align: center;
    margin-bottom: 60px;
}

.president-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin: 0 0 10px;
    letter-spacing: -1px;
}

.president-subtitle {
    font-size: 16px;
    color: #000;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Image Section */
.president-photo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.president-profile {
    text-align: left;
}

.president-profile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.president-profile li {
    font-size: 15px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 12px;
    word-break: keep-all;
}

.president-profile li::before {
    content: '·';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #888;
}

.president-photo-frame {
    width: 190px;  /* Scaled down */
    height: 245px; /* Scaled down (approx 2/3 ratio preserved) */
    flex-shrink: 0;
    border-radius: 18px; /* Refined radius for smaller size */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 57, 127, 0.12); /* Slightly softer shadow */
    border: 4px solid #fff; /* Elegant thinner border */
}

/* The actual image */
.president-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Focus from top down since it's a portrait crop now */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother premium ease */

}

/* Text Content */
.president-message-body {
    line-height: 1.9;
    font-size: 17px;
    color: #000;
    text-align: justify;
}

.president-message-body p {
    margin-bottom: 30px;
    word-break: keep-all;
}

.greeting-highlight {
    font-size: 22px;
    font-weight: 700;
    color: #00397f;
    text-align: center;
    margin-bottom: 40px;
}

/* Signature Section */
.president-sign {
    margin-top: 60px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.sign-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
}

.sign-name {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ksms-president-wrapper {
        padding: 0 0 60px; /* Zero margin mobile */
    }
    
    .president-card {
        padding: 40px 18px;
        border-radius: 20px;
    }
    
    .president-title { font-size: 26px; }
    
    .president-photo-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .president-profile li {
        font-size: 14px;
    }

    .president-photo-frame {
        width: 150px;
        height: 195px;
        border-radius: 14px;
    }
    
    .president-message-body p {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
        letter-spacing: -0.5px;
    }
    
    .greeting-highlight {
        font-size: 19px;
    }
    
    .scroll-light-line-p { display: none; }
}

/* Animations */
.president-card, .president-photo-wrapper, .president-message-body p {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.president-card { animation-delay: 0s; }
.president-photo-wrapper { animation-delay: 0.2s; }
.greeting-highlight { animation-delay: 0.3s; }
.president-message-body p:nth-child(2) { animation-delay: 0.4s; }
.president-message-body p:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
