/* ==========================================================================
   GATEWAY HUB STYLING
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('divina-clark-bIiUv37Ohls-unsplash.jpeg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hub-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px; /* Widened slightly to balance 3 cards cleanly */
    padding: 40px 20px;
    text-align: center;
}

.hub-header {
    margin-bottom: 35px;
    color: #ffffff;
}

.hub-header h1 {
    font-size: 2.6rem;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hub-header p {
    font-size: 1.2rem;
    margin: 0;
    color: #e5e5e5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Base structural rules for layout rows */
.card-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    width: 100%;
}

.primary-grid {
    margin-bottom: 25px; /* Adds space between row 1 and row 2 */
}

/* Unified look for the tiles */
.hub-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    width: 320px;
    height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle variation to distinguish disciplines from events if desired */
.sub-card {
    background: rgba(255, 255, 255, 0.92);
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.hub-card h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #111111;
    letter-spacing: 0.5px;
}

.hub-card p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

.card-btn {
    background: #0056b3;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    width: 100%;
    transition: background 0.2s ease;
}

.hub-card:hover .card-btn {
    background: #004085;
}

/* Media breakpoints to fold rows down cleanly on mobile screens */
@media (max-width: 1024px) {
    .card-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .primary-grid {
        margin-bottom: 20px;
    }
    .hub-card {
        width: 100%;
        max-width: 450px;
        height: 260px;
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .hub-header h1 {
        font-size: 1.9rem;
    }
    .hub-card {
        height: 280px;
    }
}