/* รีเซ็ตค่าพื้นฐานของ CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #111;
    color: #fff;
}

header {
    background-color: #000;
    padding: 15px 0;
    text-align: left;
    padding-left: 20px;
    font-size: 24px;
    font-weight: bold;
}

.menu a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease-in-out;
}
.menu a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #3BA9FF;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}
.menu a:hover {
    color: #3BA9FF;
}
.menu a:hover::after {
    width: 100%;
}
.menu a.active {
    color: #3BA9FF;
    font-weight: bold;
}
.menu a.active::after {
    width: 100%;
}

.hero {
    color: rgb(163, 163, 159);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Glow effect */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    line-height: 1.6;
    transition: 0.3s ease-in-out;
    user-select: none;
}

.hero:hover {
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 
                 0 0 35px rgba(173, 216, 230, 0.8); 
    color: #ffffff;
    transform: scale(1.05);
}


.content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.card {
    background: #222;
    width: 600px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 0, 0, 0.5);
    overflow: hidden;
    text-align: left;
    padding: 15px;
    display: flex;
    align-items: center;
}

.card img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    margin-right: 15px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2); /* ขอบบางๆ */
}

.card img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 
                0 0 30px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5); /* ขอบชัดขึ้นเมื่อ hover */
}


.card-info {
    flex: 1;
}

.category {
    display: block;
    font-size: 12px;
    color: #888;
}

.card h2 {
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
}

.btn {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.btn:hover {
    background-color: darkred;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 
                0 0 30px rgba(255, 0, 0, 0.6);
}


.meta {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #444;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

footer {
    text-align: center;
    padding: 10px;
    background: #000;
    color: white;
    margin-top: 20px;
}
