@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    /* Warm Intellectual Palette */
    --bg-color: #0c0e12;
    --surface-color: #161a23;
    --surface-border: rgba(255, 255, 255, 0.05);
    --primary-color: #6366f1;
    /* Intelligent Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent-color: #fb7185;
    /* Warm Rose */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(12, 14, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Background Warmth */
body::before {
    content: '';
    position: fixed;
    top: -5%;
    left: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -5%;
    right: -5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
}

.container {
    width: 1280px;
    margin: 0 auto;
    padding: 0 calc(1.5 * 16px);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: calc(1.25 * 16px) 0;
}

.nav-content {
    overflow: hidden;
}

.logo {
    float: left;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: calc(1.4 * 16px);
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-main);
}

.nav-links {
    float: right;
}

.nav-links a {
    display: inline-block;
    margin-left: calc(2.5 * 16px);
    color: var(--text-muted);
    text-decoration: none;
    font-size: calc(0.85 * 16px);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Responsive Support */
@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 calc(1 * 16px) !important;
    }

    .nav-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        float: none;
        margin-bottom: 1rem;
    }

    .nav-links {
        float: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: calc(0.75 * 16px);
    }

    /* Hero Section Responsive */
    .hero {
        padding: calc(6 * 16px) 0 calc(4 * 16px);
    }

    .hero h1 {
        font-size: calc(2.4 * 16px) !important;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: calc(1 * 16px) !important;
        margin-bottom: calc(2 * 16px);
    }

    /* Grid Adjustments */
    .philosophy-grid,
    .grid.col-3,
    .program-detail-grid,
    .features,
    .profile-details-p,
    .pillar-grid {
        grid-template-columns: 1fr !important;
        gap: calc(1.5 * 16px) !important;
    }

    .phi-card,
    .card,
    .detail-item {
        padding: calc(1.5 * 16px) !important;
    }

    .section-title {
        font-size: calc(1.8 * 16px) !important;
    }

    footer .container {
        text-align: center;
    }

    .cta-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: calc(3 * 16px) !important;
    }

    .cta-section .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    .detail-group {
        margin-bottom: calc(2.5 * 16px);
    }

    .detail-group:last-child {
        margin-bottom: 0;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }
}

/* Hero Section */
.hero {
    padding: calc(10 * 16px) 0 calc(6 * 16px);
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: calc(4.5 * 16px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: calc(2 * 16px);
    letter-spacing: -2px;
}

.hero p {
    font-size: calc(1.35 * 16px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto calc(3 * 16px);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Buttons */
.btn {
    padding: calc(1 * 16px) calc(2.5 * 16px);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: calc(0.95 * 16px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Sections */
.section-header {
    margin-bottom: calc(4 * 16px);
    text-align: center;
}

.label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: calc(0.75 * 16px);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: calc(1 * 16px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: calc(2.5 * 16px);
    font-weight: 700;
    margin-bottom: calc(2 * 16px);
    text-align: center;
}

/* Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(2 * 16px);
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: calc(3 * 16px);
    border-radius: 32px;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.card-icon {
    font-size: calc(2.5 * 16px);
    margin-bottom: calc(1.5 * 16px);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: calc(1.5 * 16px);
    margin-bottom: calc(1 * 16px);
}

.card p {
    color: var(--text-muted);
    font-size: calc(1 * 16px);
}

/* Glass Card */
.glass-card {
    background: rgba(22, 26, 35, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: calc(2.5 * 16px);
    border-radius: 24px;
}

/* Program Pillar */
.program-pillar {
    display: block;
    overflow: hidden;
    margin-bottom: calc(8 * 16px);
}

.pillar-label {
    font-family: var(--font-heading);
    font-size: calc(5 * 16px);
    font-weight: 800;
    opacity: 0.05;
    line-height: 1;
    position: sticky;
    top: 150px;
}

.pillar-sidebar {
    position: sticky;
    top: 150px;
    width: 300px;
    float: left;
    margin-right: calc(4 * 16px);
}

.pillar-content {
    overflow: hidden;
}


.pillar-title {
    font-size: calc(2.2 * 16px);
    margin-bottom: calc(1.5 * 16px);
    font-family: var(--font-heading);
}

.pillar-desc {
    font-size: calc(1.1 * 16px);
    color: var(--text-muted);
    margin-bottom: calc(3 * 16px);
    max-width: 80%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(3 * 16px);
    margin-bottom: calc(2 * 16px);
}

.pillar-item h4 {
    color: var(--primary-color);
    margin-bottom: calc(1 * 16px);
    font-size: calc(1 * 16px);
}

.pillar-item ul {
    list-style: none;
    color: var(--text-muted);
}

.pillar-item li {
    margin-bottom: calc(0.8 * 16px);
    position: relative;
    padding-left: calc(1.2 * 16px);
}

.pillar-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.staff-tag {
    margin-top: calc(2 * 16px);
    font-size: calc(0.85 * 16px);
    color: var(--text-muted);
}

.staff-tag span {
    display: inline-block;
    margin-right: calc(1.5 * 16px);
}

.staff-tag span {
    background: rgba(255, 255, 255, 0.03);
    padding: calc(0.5 * 16px) calc(1 * 16px);
    border-radius: 99px;
    border: 1px solid var(--surface-border);
}

/* Profile Section */
.profile-details-p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(4 * 16px);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: calc(1.5 * 16px);
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ceo-name {
    margin: calc(1.5 * 16px) 0;
}

.ceo-name .ko {
    font-size: calc(2.5 * 16px);
    font-weight: 700;
    margin-right: calc(1 * 16px);
}

.ceo-name .en {
    font-size: calc(1.2 * 16px);
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.ceo-bio {
    font-size: calc(1.35 * 16px);
    margin-bottom: calc(3 * 16px);
    color: var(--text-main);
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.detail-group h4 {
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1 * 16px);
    margin-bottom: calc(1.5 * 16px);
    font-size: calc(1.1 * 16px);
    text-align: left;
}

.detail-group ul {
    list-style: none;
    color: var(--text-muted);
}

.detail-group li {
    margin-bottom: calc(0.8 * 16px);
}

/* Philosophy */
.philosophy {
    padding: calc(8 * 16px) 0;
    border-top: 1px solid var(--surface-border);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(3 * 16px);
    margin-top: calc(4 * 16px);
}

.phi-card h3 {
    font-size: calc(1.25 * 16px);
    margin-bottom: calc(1.5 * 16px);
    color: var(--primary-color);
}

.phi-card p {
    font-size: calc(0.95 * 16px);
    color: var(--text-muted);
}

/* Board */
.comments-grid {
    display: grid;
    gap: calc(1.5 * 16px);
}

.comment-item {
    padding: calc(2 * 16px);
}

.comment-header {
    overflow: hidden;
    margin-bottom: calc(1 * 16px);
}

.comment-author {
    float: left;
    font-weight: 700;
}

.comment-date {
    float: right;
    font-size: calc(0.8 * 16px);
}

/* Footer */
footer {
    padding: calc(6 * 16px) 0;
    border-top: 1px solid var(--surface-border);
    margin-top: calc(8 * 16px);
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: calc(0.85 * 16px);
}

.footer-info p {
    margin-bottom: calc(0.75 * 16px);
}

/* Helpers */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.clean-list {
    list-style: none !important;
}


/* Utilities */
.grid {
    display: grid;
    gap: calc(2 * 16px);
}

.col-2 {
    grid-template-columns: 1fr 1fr;
}


/* News Ticker */
.news-ticker-container {
    width: 100%;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.1);
    /* Low opacity primary */
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: calc(2 * 16px);
    padding: calc(0.5 * 16px) 0;
    position: relative;
    border-radius: 8px;
    /* Optional rounded corners */
}

.news-ticker-wrapper {
    display: block;
}

.news-ticker {
    display: block;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

.news-item {
    margin-right: calc(2 * 16px);
    color: var(--text-main);
    font-weight: 500;
    display: inline-block;
}

.news-item::before {
    content: "•";
    margin-right: calc(0.5 * 16px);
    color: var(--accent-color);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Program Detail Grid Styling */
.program-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(1.5 * 16px);
    margin-top: calc(1 * 16px);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}


.detail-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    padding: calc(2 * 16px);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: calc(1.2 * 16px);
    font-size: calc(1.1 * 16px);
    font-weight: 700;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: calc(0.8 * 16px);
}

.detail-item p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.detail-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--text-muted);
}

.detail-item ul li {
    margin-bottom: calc(0.8 * 16px);
    position: relative;
    padding-left: calc(1.5 * 16px);
    line-height: 1.6;
}

.detail-item ul li:last-child {
    margin-bottom: 0;
}

.detail-item ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: calc(1.2 * 16px);
    line-height: 1.4;
}

/* Different bullet for checklist if needed */
.check-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-size: calc(1 * 16px);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.image-modal.show {
    display: block;
    opacity: 1;
    text-align: center;
}

.image-modal.show::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal-content {
    display: inline-block;
    vertical-align: middle;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.program-pillar img[onclick] {
    cursor: zoom-in;
}

.program-img-refined {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.program-img-refined:hover {
    transform: scale(1.03) translateY(-5px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}