/* ==========================================================================
   GLOBAL & CONTAINER STYLES
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b132b;
    color: #ffffff;
    max-width: 950px;
    margin: 40px auto;
    padding: 15px;
}

.adventure-card, .portal-card, .hub-card {
    background: #1c2541;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border: 1px solid #3a506b;
    margin: 0 auto;
}

/* ==========================================================================
   HEADER BANNER
   ========================================================================== */
.header-banner {
    background: linear-gradient(135deg, #131c31, #1c2541);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 2px solid #2a3a5e;
}

.header-banner h1 {
    margin: 0;
    font-size: 32px;
    color: #ffffff;
}

.subtitle {
    margin-top: 8px;
    margin-bottom: 0;
    color: #00cec9;
    font-size: 16px;
}

/* ==========================================================================
   CARD GRID (FOR MAIN HUB & TYPING MENU)
   ========================================================================== */
.content {
    padding: 30px;
}

.link-grid, .activities-grid, .subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Styled Card Buttons */
.nav-btn, .module-card, .subject-card {
    border-radius: 16px;
    padding: 25px 20px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
}

.nav-btn:hover, .module-card:hover, .subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nav-btn span, .module-card h2, .subject-card h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

.btn-icon, .icon, .card-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   COLOR THEMES FOR CARDS
   ========================================================================== */
.typing-btn, .typing-card   { background: #2980b9; }
.math-btn, .spelling-card   { background: #e67e22; }
.bible-btn, .bible-card     { background: #16a085; }
.history-btn, .history-card { background: #8e44ad; }
.science-btn, .science-card { background: #2ecc71; }

/* ==========================================================================
   FOOTER NAVIGATION BAR
   ========================================================================== */
.footer-navigation, .footer-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #2a3a5e;
    text-align: center;
}

.back-to-hub-btn, .back-link, .btn {
    display: inline-block;
    color: #00cec9;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 24px;
    border: 2px solid #00cec9;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.back-to-hub-btn:hover, .back-link:hover, .btn:hover {
    background: #00cec9;
    color: #0d1b2a;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .link-grid, .activities-grid, .subject-grid {
        grid-template-columns: 1fr;
    }
}