@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #e7138f;
    --secondary-color: #eb7f1a;
    --dark-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Sarabun", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.main-nav {
    background: white;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav img {
    width: 80px;
    margin-bottom: 10px;
}

.main-nav h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Grid Container */
.container {
    flex: 1; /* Pushes footer to bottom */
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Document Lists (Cards) */
.document-list {
    background: white;
    padding: 25px;
    border-radius: 12px;
    list-style: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.document-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.document-list h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.document-list.highlight {
    background: var(--secondary-color);
    color: white;
}

.document-list.highlight h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.document-list li {
    margin-bottom: 12px;
}

.document-list a {
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.document-list:not(.highlight) a {
    color: #555;
}

.document-list a:hover {
    opacity: 0.7;
    padding-left: 5px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    background: none; /* Resetting your previous background */
    padding: 0;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #777;
}

@media (max-width: 768px) {
    .container { margin: 1.5rem auto; }
}