:root {
    /* Color Palette */
    --color-primary: #007A48;        /* BMA Official Emerald Green style */
    --color-primary-light: #009D5E;  /* Lighter vibrant green */
    --color-primary-dark: #005632;   /* Deep forest green */
    --color-accent: #FFC72C;         /* BMA Emblem Gold */
    --color-accent-dark: #D9A000;    /* Dark gold for hover state */
    
    --color-bg-base: #f3f9f6;
    --color-card-bg: rgba(255, 255, 255, 0.85);
    --color-card-border: rgba(0, 122, 72, 0.12);
    
    --color-text-main: #1F2E26;
    --color-text-muted: #53695C;
    --color-text-light: #8E9F95;
    
    /* System variables */
    --font-primary: 'Prompt', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 122, 72, 0.05);
    --shadow-md: 0 12px 24px -8px rgba(0, 122, 72, 0.08);
    --shadow-lg: 0 20px 40px -12px rgba(0, 50, 30, 0.12);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
    line-height: 1.6;
}

/* Background Decorations */
.background-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--color-primary-light);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background-color: var(--color-accent);
    bottom: -150px;
    left: -150px;
    opacity: 0.25;
}

/* Container */
.container {
    width: 100%;
    max-width: 960px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header styling */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInDown 0.8s var(--transition-smooth);
}

.logo-container {
    background: white;
    padding: 1.25rem;
    border-radius: 50%;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    border: 1.5px solid var(--color-card-border);
}

.logo-container:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(0, 122, 72, 0.15);
}

.bma-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.title-container {
    max-width: 700px;
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 0.5rem;
    background: rgba(0, 122, 72, 0.08);
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.main-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 50, 30, 0.05);
}

/* Custom separator */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 1.25rem 0;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light));
}

.divider-line:last-child {
    background: linear-gradient(270deg, transparent, var(--color-primary-light));
}

.divider-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
}

.description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 400;
    text-wrap: balance;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.2s both;
}

/* Custom Card/Buttons styling */
.menu-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Glowing border overlay on hover */
.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    opacity: 0;
    transition: var(--transition-smooth);
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 122, 72, 0.25);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.menu-card:hover::before {
    opacity: 1;
}

/* Card Icons */
.card-icon-wrapper {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(0, 122, 72, 0.08) 0%, rgba(0, 157, 94, 0.03) 100%);
    border: 1px solid rgba(0, 122, 72, 0.1);
    color: var(--color-primary);
    font-size: 1.6rem;
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.menu-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 122, 72, 0.15);
}

/* Card Typography */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    transition: var(--transition-smooth);
}

.menu-card:hover .card-title {
    color: var(--color-primary-light);
}

.card-badge {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(0, 122, 72, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.menu-card:hover .card-badge {
    background: rgba(0, 157, 94, 0.1);
    color: var(--color-primary-dark);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Arrow indicator styling */
.card-arrow {
    font-size: 1.1rem;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card:hover .card-arrow {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

/* Footer Section styling */
.footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    animation: fadeIn 1s var(--transition-smooth) 0.4s both;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Modal styling for unlinked items */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 30, 15, 0.25);
    border: 1px solid rgba(0, 122, 72, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 122, 72, 0.08);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.modal-box h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.modal-box p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.modal-btn {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 72, 0.2);
    transition: var(--transition-smooth);
    width: 100%;
    margin-top: 0.5rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 122, 72, 0.3);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .container {
        gap: 2rem;
    }
    
    .bma-logo {
        width: 90px;
        height: 90px;
    }
    
    .logo-container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    .grid-container {
        gap: 1rem;
    }
    
    .menu-card {
        padding: 1.25rem;
        gap: 1.1rem;
    }
    
    .card-icon-wrapper {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
        border-radius: 12px;
    }
    
    .card-title {
        font-size: 1.15rem;
    }

    .modal-box {
        padding: 1.75rem 1.5rem;
    }
}
