/* CSS Global Variables & Reset */
:root {
    --primary-green: #0a4725;
    --secondary-green: #1a936f;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --gold: #c4a380;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Sarabun', sans-serif; line-height: 1.6; color: var(--dark-grey); background-color: var(--white); }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 700; color: var(--primary-green); }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
section { padding: 60px 0; }
.btn { display: inline-block; background: var(--secondary-green); color: var(--white); padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: 700; transition: background 0.3s ease, transform 0.3s ease; }
.btn:hover { background: var(--primary-green); transform: translateY(-2px); }

/* Header & Navigation */
.main-header { background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; } /* ปรับ padding เล็กน้อยเพื่อให้เหมาะกับโลโก้ */
.logo { display: flex; align-items: center; text-decoration: none; }

/* นี่คือสไตล์สำหรับโลโก้รูปภาพที่ย้ายมา */
.logo-image {
    max-height: 55px; /* กำหนดความสูงสูงสุดของโลโก้ (ปรับค่านี้ได้ตามต้องการ) */
    width: auto;      /* ให้ความกว้างปรับตามอัตโนมัติ */
}

.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 25px; }
.main-nav ul li a { text-decoration: none; color: var(--dark-grey); font-weight: 700; transition: color 0.3s ease; padding-bottom: 5px; }
.main-nav ul li a:hover,
.main-nav ul li.active a { color: var(--secondary-green); border-bottom: 2px solid var(--secondary-green); }
/* Slideshow (For index.php) */
#hero { position: relative; height: 85vh; color: var(--white); overflow: hidden; padding: 0; }
.slides-container { display: flex; height: 100%; transition: transform 0.7s ease-in-out; }
.slide { flex: 0 0 100%; width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.slide-content { position: relative; text-align: center; max-width: 800px; padding: 20px; }
.slide-content h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--white); }
.slide-content p { font-size: 1.2rem; margin-bottom: 2rem; }
.slide-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; }
.dot { cursor: pointer; height: 12px; width: 12px; margin: 0 5px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; display: inline-block; transition: background-color 0.3s ease; }
.dot.active { background-color: var(--white); }

/* Styles for Innovation/PDF Page */
.pdf-viewer-container { text-align: center; }
.pdf-viewer { width: 100%; height: 80vh; border: 1px solid #ddd; border-radius: 8px; margin-top: 20px; }
.back-to-list-link { display: inline-block; margin-bottom: 20px; color: var(--primary-green); text-decoration: none; font-weight: bold; }
.back-to-list-link:hover { color: var(--secondary-green); text-decoration: underline; }

.document-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.document-item { border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.document-item:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.document-item h3 { font-size: 1.4rem; margin-top: 0; margin-bottom: 10px; }
.document-item p { flex-grow: 1; margin-bottom: 20px; color: #555; }
.document-item .btn { align-self: flex-start; }

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media(max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 1rem;
        padding: 0;
    }
    h1, .slide-content h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    #hero {
        height: 70vh;
    }
}
.main-nav ul { 
/* Responsive Styles */
@media(max-width: 768px) {
    .main-header .container { flex-direction: column; }
    .main-nav ul { margin-top: 1rem; padding: 0; }
    h1, .slide-content h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    #hero { height: 70vh; }
}
