:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-light: #f8f9fa;
    --bs-white: #fff;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-border-radius: 0.375rem;
    --bs-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --font-family: "Malgun Gothic", sans-serif;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar, .footer {
    width: 100%;
}

main {
    flex: 1;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.navbar {
    background-color: var(--bs-white);
    border-bottom: 1px solid var(--bs-gray-200);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-nav {
    display: flex;
    gap: 0;
    height: 100%;
    position: relative;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    width: 200px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0;
    color: #4b5563;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
    color: var(--bs-primary);
    background-color: var(--bs-gray-100);
}

.nav-link.active {
    color: var(--bs-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bs-primary);
}

.mega-menu {
    position: absolute;
    top: 60px; 
    left: 0;
    width: 100%;
    background-color: var(--bs-white);
    border-bottom: 1px solid var(--bs-gray-200);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
}

.navbar:hover .mega-menu {
    display: block;
}

.mega-menu-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.mega-menu-column {
    width: 200px;
    padding: 0 1.5rem;
}

.mega-menu-column:not(:first-child) {
    border-left: 1px solid var(--bs-gray-200);
}

.mega-menu-column:nth-child(3) {
    width: 250px;
}

.mega-menu-column:first-child {
    padding-left: 0;
}

.mega-menu-item {
    display: block;
    padding: 0.6rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.mega-menu-item:hover {
    color: var(--bs-primary);
    background-color: #f3f4f6;
}

.game-link {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.game-link:hover {
    opacity: 1 !important;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.clock {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    font-weight: 500;
}

.game-link {
    opacity: 0.3;
}

.game-link:hover {
    opacity: 1;
}

/* Layout */
.row {
    display: flex;
    gap: 2.5rem;
}

.col-main {
    flex: 7;
}

.col-side {
    flex: 3;
}

.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-gray-200);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2rem;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

.section-body {
    padding: 0.5rem 0;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--bs-gray-100);
    border-top: 1px solid var(--bs-gray-200);
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--bs-primary);
}

.sep {
    color: #d1d5db;
}

/* Common UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--bs-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.25);
}

.btn-success {
    background-color: #198754;
    color: white;
}

.btn-success:hover {
    background-color: #157347;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.25);
}

.btn-secondary {
    background-color: var(--bs-gray-200);
    color: #4b5563;
}

.btn-secondary:hover {
    background-color: var(--bs-gray-300);
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.4rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.5rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.badge-primary {
    background-color: var(--bs-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.more-btn {
    text-decoration: none;
    color: var(--bs-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.more-btn:hover {
    color: var(--bs-primary);
}

@media (max-width: 900px) {
    .row {
        flex-direction: column;
    }
}
