body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f0ff;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: white;
    color: black;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 3px solid #2637C9;
}

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
}

section.content {
    text-align: center;
    padding: 2rem;
    background-color: #eaf4ff;
}

.button-box {
    background: #9ed0ff;
    margin: 1.5rem auto;
    padding: 1rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

.button-box h2 {
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #2563eb;
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 40px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.download-button .icon {
    width: 30px;
    height: 30px;
}

.folder-title {
    font-size: 18px;
    font-weight: bold;
    color: #f59e0b;
    margin-top: 25px;
    margin-bottom: 10px;
}

.file-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
}

.download-link {
    color: #1d4ed8;
    font-weight: bold;
    text-decoration: none;
    padding: 2px 10px;
    background: #e0f2fe;
    border-radius: 5px;
}

.download-link:hover {
    background-color: #bae6fd;
}

.contact {
    background: linear-gradient(135deg, #3d6ef7, #1d3eb9);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
}

.info-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-line a,
.info-line p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    text-decoration: none;
}

.info-line a:hover {
    text-decoration: underline;
}

.google-map-btn {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;  /* ตรงนี้ช่วยจัด text ให้ตรงกลาง */
    align-items: center;
    gap: 10px;
    background: #34A853;
    color: white;
    font-weight: bold;
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;               /* ถ้าต้องการให้ปุ่มเต็มบรรทัด */
    max-width: 600px;          /* จำกัดความกว้างให้ดูดี */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.google-map-btn:hover {
    background: #2c8b46;
    transform: translateY(-2px);
}

.google-map-btn .icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.folder-tree {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px;
}

.folder-item, .file-item {
    margin: 6px 0;
    font-size: 1rem;
    font-weight: 500;
}

@for $i from 0 through 10 {
    .level-#{$i} {
        margin-left: #{($i * 20)}px;
    }
}

.download-link {
    font-size: 0.95rem;
    padding: 4px 10px;
    background: #dbeafe;
    border-radius: 5px;
    text-decoration: none;
    color: #1d4ed8;
    font-weight: bold;
    margin-left: 10px;
}

.download-link:hover {
    background-color: #bfdbfe;
}
.level-0 { margin-left: 0px; }
.level-1 { margin-left: 20px; }
.level-2 { margin-left: 40px; }
.level-3 { margin-left: 60px; }
/* เพิ่มได้ตามความลึกที่มี */

.folder-item {
    cursor: pointer;
    margin-left: 1rem;
    font-weight: bold;
}
.file-item {
    margin-left: 2rem;
}
.level-2 { margin-left: 2.5rem; }
.level-3 { margin-left: 3.5rem; }

.children {
    margin-left: 1rem;
}
.hidden {
    display: none;
}
.carousel-item img {
  height: 60vh;             /* ปรับความสูงที่ต้องการ เช่น 60% ของความสูงหน้าจอ */
  object-fit: contain;        /* หรือใช้ contain ก็ได้ตามต้องการ */
  width: 100%;
}