/* KSMS Premium About Page CSS */

/* Wrapper */
.ksms-about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 80px; /* Reduced top padding */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    position: relative; /* For scroll line context */
    -webkit-font-smoothing: antialiased; /* Crisp text */
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Follow Line (Vertical Light) */
/* Scroll Follow Line (Vertical Light) - Updated */
.scroll-light-line {
    position: fixed;
    top: 0;
    right: 40px;
    left: auto;
    transform: none;
    width: 3px;
    height: 0;
    /* Solid Premium Black - No Gradient, No Blur */
    background: #111; 
    /* Remove Shadows */
    box-shadow: none;
    z-index: 900;
    pointer-events: none;
    transition: height 0.05s linear;
    border-radius: 2px; 
    pointer-events: none;
    transition: height 0.05s linear;
    opacity: 0;
}

/* Premium Card */
.about-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 80px 70px;
    /* Deep Shadow */
    box-shadow: 0 20px 60px rgba(0, 57, 127, 0.08), 
                0 0 1px rgba(0,0,0,0.05);
    border: none; /* Removed border */
    position: relative;
    overflow: hidden;
    z-index: 1; /* Above scroll line */
}

/* Artistic Top Border (Canvas Container) */
.cosmic-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Reduced functionality, purely visual at top */
    pointer-events: none;
    z-index: 0;
}

/* Remove old top border */
.about-card::before { display: none; }

/* Responsiveness */
@media (max-width: 768px) {
    .ksms-about-wrapper {
        padding: 0 0 60px; /* Zero outer margin */
    }
    
    .about-card {
        padding: 40px 18px; /* Maximized content area */
        border-radius: 20px;
    }

    .about-title {
        font-size: 26px;
        margin-bottom: 5px;
    }
    
    .about-subtitle {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .about-logo {
        max-width: 120px;
    }

    /* Better text readability on mobile */
    .about-content, .text-block p {
        font-size: 15px; /* Refined size */
        line-height: 1.6;
        text-align: left; /* Justify can be ugly on narrow screens */
        word-break: keep-all;
        letter-spacing: -0.5px;
    }
    
    .intro-greeting {
        font-size: 20px;
    }

    /* Compact Text Blocks */
    .text-block {
        margin-bottom: 30px;
    }
    
    /* Adjust Highlight Box */
    .highlight-wrapper {
        margin: 0 -10px 20px; /* Use full width space */
        width: auto;
    }
    
    .highlight-bg {
        padding: 15px 12px; /* Ultra compact padding */
    }

    /* Highlight Box Specific Font Adjustment */
    .highlight-bg p {
        font-size: 14px; /* Smaller than normal text */
        line-height: 1.55;
        letter-spacing: -0.5px;
    }
    
    .highlight-bg .block-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    /* Adjust Special Badge */
    .special-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px 15px;
        margin: 30px 0;
    }

    /* Hide scroll line on mobile to keep it clean */
    .scroll-light-line {
        display: none;
    }
}

/* Hero Section */
.about-hero {
    text-align: center;
    margin-bottom: 0px;
    position: relative;
    z-index: 1;
}

.about-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 10px;
}

.about-title {
    font-size: 38px;
    font-weight: 800;
    color: #000;
    margin: 0 0 10px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin: 0;
}

/* Intro Section */
.intro-box {
    text-align: center;
    margin-bottom: 60px;
}

.intro-text {
    font-size: 20px;
    font-weight: 600;
    color: #00397f;
    font-style: italic;
    margin-bottom: 20px;
}

.intro-divider {
    width: 40px;
    height: 2px;
    background: #000;
    margin: 0 auto 20px;
}

.intro-greeting {
    font-size: 24px;
    color: #000;
    font-weight: 300;
}

.intro-greeting strong { font-weight: 800; }

/* Text Content */
.about-content {
    line-height: 1.9;
    font-size: 17px;
    color: #000;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.text-block { margin-bottom: 50px; }
.text-block p { color: #000; margin: 0; }

strong {
    font-weight: 700;
    color: #000;
    background: linear-gradient(to top, rgba(0, 210, 255, 0.15) 30%, transparent 30%);
}

.block-title {
    font-size: 18px;
    font-weight: 800;
    color: #00397f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #00397f;
    border-radius: 50%;
}

/* --- The "Living Border" Highlight Box --- */
.highlight-bg {
    position: relative;
    background: #ffffff; /* Keep clean white inside */
    padding: 30px 40px;
    border-radius: 12px;
    /* Remove old static styles */
    border: none;
    box-shadow: 0 0 20px rgba(0, 57, 127, 0.05); /* Softer shadow */
    margin: 1px; /* Gap for border */
    overflow: hidden;
}

/* The Frame Container (Pseudo-border) */
.highlight-wrapper {
    position: relative;
    padding: 1px; /* Thickness of the living border */
    background: #eee; /* Fallback */
    border-radius: 13px; /* Outer radius */
    overflow: hidden;
    margin-bottom: 50px;
}

/* The Living Light (Conic Gradient) */
.highlight-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        transparent 80%, 
        rgba(0, 57, 127, 0.8) 95%, 
        #00d2ff 100%
    );
    animation: borderSpin 4s linear infinite;
    z-index: 0;
}

.highlight-bg {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    height: 100%;
}

@keyframes borderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Special Badge */
.special-badge {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 25px 30px;
    border-radius: 16px;
    margin: 50px 0;
    gap: 20px;
    transition: transform 0.3s ease;
}

.special-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.badge-icon { font-size: 40px; }
.badge-text strong { display: block; font-size: 18px; margin-bottom: 5px; background: none; color: #00397f; }
.badge-text p { margin: 0; font-size: 15px; color: #333; }

/* Closing */
.closing-sign {
    margin-top: 60px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.closing-sign p {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

/* Animations */
.about-card, .text-block, .special-badge, .highlight-wrapper {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.about-card { animation-delay: 0s; }
.text-block:nth-child(1) { animation-delay: 0.2s; }
.text-block:nth-child(2) { animation-delay: 0.3s; }
.highlight-wrapper { animation-delay: 0.4s; }
.special-badge { animation-delay: 0.5s; }
.text-block:nth-child(5) { animation-delay: 0.6s; } /* Adjust index */

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

::selection {
    background: #000;
    color: #fff;
}
