@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background: #fff;
    color: #2e7d32;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2e7d32 0%, #c0a040 100%);
    border-radius: 20px;
    color: white;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.subtitle {
    margin-top: 8px;
    color: #c0a040;
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

.intro-section {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.1);
    border: 2px solid #2e7d32;
    border-left: 8px solid #2e7d32;
}

.intro-section p {
    font-size: 1.1rem;
    color: #475569;
    text-align: justify;
    line-height: 1.8;
}

.timeline-section {
    margin: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #c0a040);
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #2e7d32 0%, #c0a040 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 45%;
    min-width: 300px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #2e7d32;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #2e7d32;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -70px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -70px;
    background: #c0a040;
    box-shadow: 0 0 0 4px #c0a040;
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(192, 160, 64, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(192, 160, 64, 0.15);
    border-color: #2e7d32;
}

.timeline-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

.analysis-section {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(192, 160, 64, 0.05));
    padding: 60px;
    border-radius: 20px;
    margin: 80px 0;
    border: 2px solid rgba(46, 125, 50, 0.2);
}

.analysis-section h2 {
    font-size: 2.2rem;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.analysis-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.1);
    border-left: 6px solid #2e7d32;
    transition: all 0.3s ease;
}

.analysis-card:nth-child(even) {
    border-left-color: #c0a040;
}

.analysis-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(192, 160, 64, 0.15);
}

.analysis-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.analysis-card p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
}

.stats-intro-box {
  max-width: 1200px;
  margin: 0 auto 50px;
  border: 3px solid #2e7d32;
  border-radius: 20px;
  padding: 30px 40px;
  background: white;
  color: #334155;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.1);
}

.stats-intro-box h2 {
  color: #2e7d32;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-intro-box p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  white-space: pre-line;
}

.stats-cards {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.stat-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 25px 40px;
  flex: 1 1 180px;
  max-width: 220px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(46, 125, 50, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #c0a040;
  margin-bottom: 10px;
}

.stat-label {
  font-weight: 600;
  color: #64748b;
  font-size: 1rem;
}

.mckinsey-section {
    background: white;
    padding: 60px;
    border-radius: 20px;
    margin: 80px 0;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.1);
    border: 2px solid #2e7d32;
    border-left: 8px solid #2e7d32;
}

.mckinsey-section h2 {
    font-size: 2.2rem;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.mckinsey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mckinsey-card {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(192, 160, 64, 0.05));
    padding: 30px;
    border-radius: 12px;
    border: 2px solid rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.mckinsey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(192, 160, 64, 0.15);
}

.mckinsey-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
}

.mckinsey-card .s-letter {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
    float: left;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 80px !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 21px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .intro-section, .analysis-section, .mckinsey-section {
        padding: 30px 20px;
    }

    .analysis-grid, .mckinsey-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* 🌙 Dark Mode Manual Toggle */
body.dark-mode {
    background: #1e1e1e !important;   /* พื้นหลังเทาเข้ม */
    color: #e0e0e0 !important;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #2b2b2b 0%, #c0a040 100%) !important;
    color: #fff !important;
}

body.dark-mode .subtitle {
    color: #c0a040 !important;
}

body.dark-mode .intro-section,
body.dark-mode .analysis-section,
body.dark-mode .mckinsey-section,
body.dark-mode .timeline-content,
body.dark-mode .stats-intro-box,
body.dark-mode .stat-card {
    background: #2b2b2b !important;  /* กล่องเทาเข้ม */
    color: #ddd !important;
    border-color: #c0a040 !important;
    box-shadow: 0 6px 20px rgba(192, 160, 64, 0.1) !important;
}

body.dark-mode .section-title,
body.dark-mode .analysis-section h2,
body.dark-mode .mckinsey-section h2 {
    color: #c0a040 !important;
}

body.dark-mode .timeline::before {
    background: linear-gradient(to bottom, #c0a040 0%, #888844 100%) !important;
}

body.dark-mode .timeline-dot {
    background: #c0a040 !important;
    box-shadow: 0 0 0 4px #c0a040 !important;
}

body.dark-mode .timeline-year {
    background: linear-gradient(135deg, #2b2b2b, #c0a040) !important;
    color: #fff !important;
}

body.dark-mode .analysis-card {
    background: #2b2b2b !important;
    border-left: 6px solid #c0a040 !important;
}

body.dark-mode .analysis-card h3,
body.dark-mode .mckinsey-card h3 {
    color: #f0f0f0 !important;
}

body.dark-mode .analysis-card p,
body.dark-mode .timeline-content p,
body.dark-mode .mckinsey-card p,
body.dark-mode .stats-intro-box p,
body.dark-mode .stat-label {
    color: #bbb !important;
}

body.dark-mode .stat-number {
    color: #c0a040 !important;
}

body.dark-mode .mckinsey-card {
    background: linear-gradient(135deg, rgba(192,160,64,0.08), rgba(43,43,43,0.9)) !important;
    border: 2px solid rgba(192,160,64,0.3) !important;
}

body.dark-mode .mckinsey-card .s-letter {
    background: linear-gradient(135deg, #2b2b2b, #c0a040) !important;
}
