body {
    margin: 0;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
}

.hub-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    margin-bottom: 40px; 
}

/* Header & Breadcrumbs */
.hub-header h1 {
    font-size: clamp(32px, 6vw, 56px);
    color: #fff;
    text-shadow: 3px 3px 0 #4caf50, -2px -2px 0 #2196f3;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.breadcrumb-nav {
    font-size: clamp(18px, 3.5vw, 24px);
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.breadcrumb-item {
    color: #ff5722;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-item:hover { color: #e64a19; text-decoration: underline; }
.breadcrumb-separator { color: #999; }
.breadcrumb-current { color: #4caf50; }

/* The Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 10px;
    animation: fadeIn 0.4s ease-out;
}

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

/* The Cards */
.activity-card {
    background: white;
    border-radius: 25px;
    padding: 25px 15px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-bottom: 8px solid rgba(0,0,0,0.1);
    cursor: pointer;
}

.activity-card:hover:not(.locked) {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.activity-card:active:not(.locked) {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

/* Card Colors */
.color-orange { border-top: 8px solid #ff9800; }
.color-blue { border-top: 8px solid #2196f3; }
.color-green { border-top: 8px solid #4caf50; }
.color-pink { border-top: 8px solid #e91e63; }
.color-purple { border-top: 8px solid #9c27b0; }
.color-teal { border-top: 8px solid #00bcd4; }

.card-icon {
    font-size: 65px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.activity-card:hover:not(.locked) .card-icon {
    transform: rotate(10deg) scale(1.1);
}

.activity-card h2 { margin: 10px 0; font-size: 24px; }
.activity-card p { margin: 0 0 15px 0; color: #666; font-size: 16px; }

.play-btn {
    background: #ff5722;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 0 #e64a19;
}

/* Locked Cards Styling */
.locked { opacity: 0.8; filter: grayscale(40%); }
.locked:hover { transform: scale(1.02); }
.locked-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #607d8b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 3px solid white;
}

/* Bottom Action Buttons */
.bottom-actions { 
    margin-top: 40px; 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}
.back-home-btn {
    background: white;
    color: #ff5722;
    text-decoration: none;
    font-size: 22px;
    font-family: inherit;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 50px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.1);
    transition: transform 0.1s;
    border: 3px solid #ff5722;
    cursor: pointer;
}
.back-home-btn:active { transform: translateY(6px); box-shadow: none; }

/* New Custom Style for the Back to Learn Button */
.return-learn-btn {
    border-color: #9c27b0;
    color: #9c27b0;
}

/* Coming Soon Popup Overlay */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.hidden { display: none; }
.popup-content { background: white; padding: 40px; border-radius: 30px; text-align: center; max-width: 400px; width: 80%; animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 8px solid #ffc107; }
.popup-content h2 { font-size: 32px; color: #ff9800; margin-top: 0; }
.popup-content p { font-size: 20px; color: #555; margin-bottom: 30px; }
.popup-content button { background: #4caf50; color: white; border: none; padding: 12px 30px; font-size: 22px; border-radius: 40px; cursor: pointer; font-family: inherit; font-weight: bold; box-shadow: 0 5px 0 #388e3c; }
.popup-content button:active { transform: translateY(5px); box-shadow: none; }

@keyframes bounceIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* SEO Container */
.seo-description-container {
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: left;
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.seo-description-container h2 { color: #9c27b0; font-size: 22px; margin-top: 0; }
.seo-description-container ul { padding-left: 20px; }
.seo-description-container li { margin-bottom: 10px; }

/* Footer */
/* Footer */
.footer { 
    text-align: center; 
    padding: 25px 15px; 
    background: #2c3e50; 
    color: white; 
    
    /* Layout Fixes */
    margin-top: 50px; 
    margin-bottom: -30px; 
    margin-left: -15px;  /* Pulls footer completely to the left edge */
    margin-right: -15px; /* Pulls footer completely to the right edge */
    align-self: stretch; 
    
    position: relative; 
    z-index: 20; 
}

.footer a { 
    color: #ffcc00; 
    text-decoration: none; 
    margin: 0 5px; 
    display: inline-block; 
    padding: 5px 0; 
    font-size: clamp(14px, 2vw, 16px); /* Scales nicely on mobile */
    transition: color 0.2s; 
}

.footer a:hover { 
    color: #fff; 
    text-decoration: underline; 
}

.copyright { 
    margin-top: 15px; 
    font-size: 0.85rem; 
    color: #aaa; 
}

/* footer ends */