/* --- Core Layout & Typography --- */
:root {
    --bg-light: #f0f2f5;
    --text-dark: #1a1a1a;
    --text-muted: #444;
    --footer-bg: #343a40;
    --footer-text: #adb5bd;
    --primary-color: #007bff; /* Default hover color if none specified */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sticky footer requirement */
}

/* --- Header Styles --- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
}
#tag-line {
    font-size: 15px;
    color: #000000;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.site-logo {
    height: 50px; /* Adjust based on your actual logo size */
    width: auto;
}

.site-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

/* --- Main Content Wrapper --- */
.main-content {
    flex: 1; /* Pushes footer down */
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Grid Styles (Desktop Default: 4 Columns) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

/* Individual Card Style */
.grid-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    box-sizing: border-box;
}

/* Hover Effect (Color is injected via inline CSS in PHP) */
.grid-item:not(.disabled-item):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    /* border-color is handled inline in PHP */
    /* color is handled inline in PHP */
}

.grid-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.grid-item span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Styling for "Coming Soon" placeholders */
.grid-item.disabled-item {
    opacity: 0.5;
    cursor: default;
    background-color: #f9f9f9;
    color: #aaa;
}

.grid-item.disabled-item img {
    filter: grayscale(100%);
    opacity: 0.6;
}


/* --- Footer Styles --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 0;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto; /* Ensure it sits at bottom */
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.footer-links li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #ffffff;
}


/* --- Responsive Media Queries --- */

/* Tablet & Mobile (under 900px) -> 2 Columns */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .grid-item {
            padding: 20px 10px;
    }
}

/* Small Mobile (under 600px) -> Stacked Footer */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
        .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}