/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base Style ===== */
body {
    font-family: "Arial", sans-serif;
    background-color: #494b4d57;
    color: #333;
}

/* ===== Navbar ===== */
nav {
    background-color: #3b3b42;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-bottom: 8px solid #2a2a30;
    border-top: 8px solid #2a2a30;
    border-left: 8px solid #2a2a30;
    border-right: 8px solid #2a2a30;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: right;
    padding: 0.5rem 0;
    margin: 0;
}

.navbar li {
    margin: 0 0px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    transition: background 0.3s, border 0.3s;
    border: 2px solid transparent;
    border-left: 8px solid #2a2a30;
}

.navbar a:hover {
    background-color: #ffffff33;
    border-color: #ffffff;
}

.navbar a.active {
    background-color: white;
    color: #2a2a30;
    border-color: #2a2a30;
}

.navbar h {
    color: white;
    margin-right: auto;
    margin-left: 20px;
    font-weight: 600;
}

/* ===== Content ===== */
.content {
    text-align: center;
    margin: 60px auto;
    padding: 0 20px;
    max-width: 100%;
}

.content h1 {
    color: #000000;
    margin-bottom: 10px;
}

.img-main {
    max-width: auto;
    height: auto;
}

.img-presentation {
    max-width: 500px;
    height: auto;
}

.img-member {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.img-icon {
    width: 150px;
    height: 150px;
    border-radius: 5%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* ===== Member Page ===== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
    margin: 40px auto;
    max-width: 700px;
}

.member-card {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    width: 315px;
    border-bottom: 6px solid #2a2a30;
    border-left: 6px solid #2a2a30;
    border-top: 6px solid #2a2a30;
    border-right: 6px solid #2a2a30;
    transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.member-card h3 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 5px;
    border-top: 2px solid #2a2a30;

}

.member-card h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 5px;
    /* border-bottom: 2px solid #2a2a30; */

}

.member-card p {
    color: #000000;
    font-size: 0.95rem;
}

/* ===== Abstract Container ===== */
.abstract-container {
    background-color: #2a2a305d;
    border-bottom: 8px solid #2a2a30;
    border-left: 8px solid #2a2a30;
    border-top: 8px solid #2a2a30;
    border-right: 8px solid #2a2a30;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px 30px;
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
}

.abstract-container h1 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
}

.abstract-container hr {
    border: none;
    border-top: 3px solid #2a2a30;
    width: auto;
    margin: 0 auto 25px;
}

.abstract-container p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    font-weight: 500;
}

.abstract-container strong {
    font-weight: 700;
    color: #0f4c81;
}

/* ===== ปุ่มทั่วไป ===== */
.button-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    width: 80%;
    text-align: center;
}

/* ===== ปุ่มดาวน์โหลด PDF ===== */
.pdf-btn {
    background-color: #0078d7;
    border: 2px solid #005fa3;
}
.pdf-btn:hover {
    background-color: #005fa3;
}

/* ===== ปุ่ม YouTube ===== */
.youtube-btn {
    background-color: #ff3333;
    border: 2px solid #cc0000;
}
.youtube-btn:hover {
    background-color: #cc0000;
}

/* ===== ปุ่ม Download ===== */
.download-btn {
    max-width: 250px;
    background-color: #222020;
    border: 2px solid #000000;
}
.download-btn:hover {
    background-color: #000000;
}
