/* --- Theme Variables --- */
:root {
    --primary-color: #0a2342;
    --secondary-color: #ff9f1c;
    --danger-color: #e63946;
    --success-color: #2a9d8f;
    --bg-light: #f9fbfd;
    --text-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Hero --- */
.page-header {
    background: linear-gradient(rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.8)),
        url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

/* --- Section Styling --- */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title span {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

/* --- Table Styling (ตารางพืชกระท่อม/ยา) --- */
.restriction-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th,
td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-banned {
    background: #ffebee;
    color: var(--danger-color);
}

.status-allowed {
    background: #e0f2f1;
    color: var(--success-color);
}

/* --- Prohibited Items Grid (กล่องห้ามส่ง) --- */
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.prohibited-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--danger-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.prohibited-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #ffebee;
    color: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-list {
    padding-left: 20px;
    color: #555;
    font-size: 0.95rem;
}

.card-list li {
    margin-bottom: 5px;
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .prohibited-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Unified Header Styles --- */
.lang-th {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 100;
    cursor: pointer;
    transition: color 0.3s;
}

.social {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 100;
    cursor: pointer;
    transition: color 0.3s;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.lang-th:hover,
.lang-en:hover,
.lang-th:active,
.lang-en:active,
.lang-th:focus,
.lang-en:focus {
    color: var(--primary-color);
}

.lang-switch {
    cursor: pointer;
    font-weight: bold;
    color: #888;
    transition: 0.3s;
}

.lang-switch:hover {
    color: #007bff;
}

.lang-switch.active {
    color: #007bff;
    text-decoration: underline;
}

.social {
    align-items: space-between;
    bottom: 2%;
    right: 2%;
    z-index: 1;
    position: fixed;
    display: flex;
}

.social a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem;
    transition: background 0.3s;
}

.social a:hover {
    background: rgba(255, 255, 255, 0.2);
    /* Fallback for glass-border */
}

.social a:active {
    transform: translateY(2px);
}

.social a i {
    font-size: 1.5rem;
}

.social a:hover i {
    color: var(--text-light);
    /* Ensure text-light is defined or use white */
}

/* Ensure nav handles the new items */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}
