@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background: #ffffff;
    color: #222;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.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;
}

/* Tab Navigation */
.tab-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.12);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: linear-gradient(135deg, #f8fbff 0%, #fffef8 100%);
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem 1rem;
    background: transparent;
    border: none;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.05);
}

.tab-button.active {
    color: #2e7d32;
    background: white;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32 0%, #c0a040 100%);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 3rem;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.department-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #e2e8f0;
}

.department-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.department-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
}

.missions-container {
    max-width: 100%;
    margin: 0;
}

.mission-section {
    margin-bottom: 2.5rem;
    padding: 0;
    background: transparent;
}

.mission-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c0a040;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.mission-list p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    background: transparent;
    margin: 0;
}

.mission-list p::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #c0a040;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(192,160,64,0.3);
}

.single-mission {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.single-mission h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c0a040;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .tab-button {
        min-width: 150px;
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 2rem 1rem;
    }

    .department-title {
        font-size: 2rem;
    }

    .missions-container {
        padding: 0 1rem;
    }
}

/* 🌙 Dark Mode */
body.dark-mode {
    background: #121212;
    color: #eee;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #2e7d32 0%, #c0a040 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

body.dark-mode .tab-container {
    background: #1e1e1e;
    box-shadow: none;
}

body.dark-mode .tab-nav {
    background: #1e1e1e;
    border-bottom: 2px solid #333;
}

body.dark-mode .tab-button {
    color: #bbb;
}

body.dark-mode .tab-button:hover {
    color: #c0a040;
    background: rgba(192,160,64,0.08);
}

body.dark-mode .tab-button.active {
    color: #c0a040;
    background: #121212;
}

body.dark-mode .tab-button.active::after {
    background: linear-gradient(90deg, #c0a040 0%, #2e7d32 100%);
}

body.dark-mode .department-title {
    color: #c0a040;
}

body.dark-mode .department-description {
    color: #ccc;
}

body.dark-mode .mission-title {
    color: #c0a040;
    border-bottom-color: #2e7d32;
}

body.dark-mode .mission-list p {
    color: #ccc;
}

body.dark-mode .mission-list p::before {
    color: #c0a040;
    text-shadow: 0 2px 4px rgba(192,160,64,0.3);
}

body.dark-mode .single-mission h3 {
    color: #c0a040;
    border-bottom-color: #2e7d32;
}
