
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
    background-image: url('img/preview.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: repeat;
    }

    /* Navbar */
nav {
    background: linear-gradient(135deg, #2d4a2d 0%, #3d5a3d 50%, #4a6b4a 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #5a7d5a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: underline;
}

/* Responsive - ปรับให้สวยบนมือถือ */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        flex: 0 1 auto;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

    /* Main Content */
    main {
        flex: 1;
        max-width: 1200px;
        margin: 2rem auto;
        padding: 2rem;
        width: 100%;
    }

    .hero {
        background: linear-gradient(135deg, rgba(45, 74, 45, 0.95), rgba(61, 90, 61, 0.95));
        color: white;
        padding: 3rem 2rem;
        border-radius: 15px;
        text-align: center;
        margin-bottom: 3rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border: 3px solid #5a7d5a;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    .content-section {
        background: white;
        padding: 2rem;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        margin-bottom: 2rem;
    }

    .content-section h2 {
        color: #2d4a2d;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 3px solid #4a6b4a;
    }

    .kings-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
        }
    .king-card {
        background: linear-gradient(135deg, #3d5a3d 0%, #4a6b4a 50%, #5a7d5a 100%);
        color: white;
        padding: 1.5rem;
        border-radius: 10px;
        text-align: center;
        cursor: pointer;
        transition: all 0.4s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        border: 2px solid #5a7d5a;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        display: block;
    }

    .king-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 0;
    }

    .king-card:hover::before {
        opacity: 0.3;
    }

    .king-card:nth-child(1)::before {
        background-image: url('img/rama/R1_yao.jpg');
    }

    .king-card:nth-child(2)::before {
        background-image: url('img/rama/R2_yao.jpg');
    }

    .king-card:nth-child(3)::before {
        background-image: url('img/rama/R3_yao.jpg');
    }

    .king-card:nth-child(4)::before {
        background-image: url('img/rama/R4_yao.jpg');
    }
    .king-card:nth-child(5)::before {
        background-image: url('img/rama/R4_2_yao.jpg');
    }

    .king-card:nth-child(6)::before {
        background-image: url('img/rama/R5_yao.jpg');
    }

    .king-card:nth-child(7)::before {
        background-image: url('img/rama/R6_yao.jpg');
    }

    .king-card:nth-child(8)::before {
        background-image: url('img/rama/R7_yao.png');
    }

    .king-card:nth-child(9)::before {
        background-image: url('img/rama/R8_yao.webp');
    }

    .king-card:nth-child(10)::before {
        background-image: url('img/rama/R9_yao.jpg');
    }

    .king-card:nth-child(11)::before {
        background-image: url('img/rama/R10_yao.webp');
    }

    .king-card h3,
    .king-card p {
        position: relative;
        z-index: 1;
    }

    .king-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,0.6);
        border-color: #6a9d6a;
    }

    .king-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .king-card p {
        opacity: 0.9;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        background: linear-gradient(135deg, #2d4a2d 0%, #3d5a3d 50%, #4a6b4a 100%);
        color: white;
        padding: 2rem;
        margin-top: auto;
        border-top: 3px solid #5a7d5a;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-section a {
        color: #fff;
        text-decoration: none;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .footer-section a:hover {
        opacity: 1;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .nav-links {
            gap: 1rem;
        }

        .nav-links a {
            padding: 0.3rem 0.7rem;
            font-size: 0.9rem;
        }

        .hero h1 {
            font-size: 1.8rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .kings-grid {
            grid-template-columns: 1fr;
        }
    }
    .footer-icon {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-right: 8px;
        filter: brightness(0) invert(1); /* ทำให้รูปเป็นสีขาว */
    }

       .reference-list {
    margin-left: 1.5rem;
    color: #555;
}

.reference-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.reference-list li a {
    color: #3d5a3d;
    text-decoration: none;
    transition: color 0.3s;
}

.reference-list li a:hover {
    color: #4a6b4a;
    text-decoration: underline;
}