@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #2e7d32 0%, #c0a040 100%);
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.12);
    transition: all 0.4s ease;
    border: 2px solid rgba(46, 125, 50, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32 0%, #c0a040 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.2);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #c0a040;
    font-weight: bold;
    font-size: 1.2rem;
}

.card strong {
    color: #2e7d32;
    font-weight: 600;
}

/* Cards with theme colors */
.vision-card {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-left: 6px solid #2e7d32;
}

.mission-card {
    background: linear-gradient(135deg, #fffef8 0%, #ffffff 100%);
    border-left: 6px solid #c0a040;
}

.purpose-card {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-left: 6px solid #2e7d32;
}

.function-card {
    background: linear-gradient(135deg, #fffef8 0%, #ffffff 100%);
    border-left: 6px solid #c0a040;
}

.value-card {
    background: linear-gradient(135deg, #f8fbff 0%, #fffef8 100%);
    border-left: 6px solid #2e7d32;
}

.competency-card {
    background: linear-gradient(135deg, #fffef8 0%, #f8fbff 100%);
    border-left: 6px solid #c0a040;
}

.full-width {
    grid-column: 1 / -1;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .header {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }
}

.highlight-box {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(192, 160, 64, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-left: 5px solid #2e7d32;
}

.icon-large {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2e7d32 0%, #c0a040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}/* 🌙 Dark Mode (Gray Theme) */
body.dark-mode {
    background-color: #121212 !important; /* เทาเข้ม */
    color: #eee !important;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #1e1e1e 0%, #c0a040 100%);
    box-shadow: none;
    color: #fff;
}

body.dark-mode .card {
    background: #1e1e1e;
    border: 2px solid rgba(192, 160, 64, 0.25);
    box-shadow: none;
    color: #eee;
}

body.dark-mode .card::before {
    background: linear-gradient(90deg, #888844 0%, #c0a040 100%);
}

body.dark-mode .card h2 {
    color: #c0a040;
}

body.dark-mode .card p,
body.dark-mode .card li {
    color: #ddd;
}

body.dark-mode .card li::before {
    color: #c0a040;
}

body.dark-mode .card strong {
    color: #c0a040;
}

/* Cards Dark Mode */
body.dark-mode .vision-card,
body.dark-mode .mission-card,
body.dark-mode .purpose-card,
body.dark-mode .function-card,
body.dark-mode .value-card,
body.dark-mode .competency-card {
    background: #1e1e1e;
    border-left: 6px solid #c0a040;
}

/* Highlight Box Dark */
body.dark-mode .highlight-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(192, 160, 64, 0.1) 100%);
    border: 1px solid rgba(192, 160, 64, 0.25);
    border-left: 5px solid #c0a040;
    color: #eee;
}

/* Icon Gradient Dark */
body.dark-mode .icon-large {
    background: linear-gradient(135deg, #c0a040 0%, #888844 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
