:root {
    /* Cotton Candy Sky background */
    --bg-gradient: linear-gradient(to right, #b3ffff, #fcb69f);
    --font-main: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg-gradient);
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =========================================
   EYE-CATCHING BRANDING & TITLES
   ========================================= */
.site-branding {
    --bg-gradient: linear-gradient(to right, #b3ffff, #fcb69f);
    /* background: rgba(255, 255, 255, 0.9); */
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    /* margin-bottom: 20px; */
    /* border-bottom: 4px solid #fff; */
}

.animated-logo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(45deg, #ff00cc, #3333ff, #ff9900, #ff00cc);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease infinite;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(2px 2px 1px rgba(255,255,255,0.8));
}
.animated-logo:hover { transform: scale(1.08) rotate(-2deg); }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color:#ec51d8;
    /* color:#da1050; */
    margin: 5px 20px 15px 20px;
    text-shadow: 
        3px 3px 0 #d0f090,
        /* 6px 6px 0 #171617, */
        9px 9px 15px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}


/* Home / Hub Nav Buttons */
.home-nav { display: flex; justify-content: center; margin: 15px 0 20px; flex-wrap: wrap; }
.home-btn { padding: 10px 25px; font-size: 1.1rem; border-radius: 40px; background: #2196f3; color: white; text-decoration: none; font-weight: bold; box-shadow: 0 6px 12px rgba(0,0,0,0.2); border: 3px solid white; transition: transform 0.2s, background 0.2s; }
.home-btn:hover { transform: scale(1.05); }

/* Frosted Glass Effect for Ads & Text */
.ad-container {
    width: 100%; display: none; justify-content: center;
    margin: 10px 0 20px 0; position: relative; z-index: 40; 
    padding: 0 15px; box-sizing: border-box;
}
.ad-space {
    background: rgba(255, 255, 255, 0.35); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 3px dashed rgba(255, 152, 0, 0.7); 
    border-radius: 15px; width: 100%; max-width: 728px; min-height: 90px; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); color: #555;
    font-size: 0.9rem; font-weight: bold; overflow: hidden;
}

.seo-intro-box {
    max-width: 1000px; margin: 10px auto 20px auto; padding: 20px 30px; 
    background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 20px;
    font-size: clamp(1rem, 1.2vw, 1.1rem); color: #333; line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); position: relative; z-index: 30; 
    box-sizing: border-box;
}

.bottom-description { margin-top: 20px; margin-bottom: 30px; text-align: left; }
.bottom-description h2 { color: #c23989; margin-top: 0; font-size: 1.6rem; text-align: center; }

.page-wrapper {
    flex: 1; width: 100%; max-width: 1200px; margin: auto;
    padding: 0 10px; box-sizing: border-box; position: relative; z-index: 20;
}

/* =========================================
   4-IN-A-ROW CARDS GRID LAYOUT
   ========================================= */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    margin: 0 auto 30px auto;
    width: 100%;
}

/* Resized Card to fit 4 across */
.hub-card {
    width: clamp(210px, 23%, 260px); /* Forces 4 cards on desktop */
    background: white;
    border-radius: 25px;
    padding: 20px 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 8px solid var(--card-theme);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.card-icon-wrapper {
    background: #f1f8e9;
    width: 75px; /* Smaller icon */
    height: 75px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
    border: 3px solid var(--card-theme);
    transition: transform 0.3s ease;
}

.card-icon { font-size: 2.2rem; }

.hub-card h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--card-theme);
    margin: 0 0 10px 0;
}

.hub-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.3;
    flex-grow: 1;
}

.card-action {
    width: 100%;
    background: var(--card-theme);
    color: white;
    padding: 8px 0;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Active Hover States */
.active-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.active-card:hover .card-icon-wrapper { transform: rotate(-10deg) scale(1.1); }

/* Coming Soon States */
.coming-soon { cursor: default; background: #fdfdfd; opacity: 0.9; }
.coming-soon:hover { transform: translateY(-3px); }
.coming-soon .card-icon-wrapper { border-color: #ddd; background: #f5f5f5; filter: grayscale(50%); }
.coming-soon h2 { color: #888; }
.coming-soon p { color: #999; }
.coming-soon .card-action.locked { background: #e0e0e0; color: #888; box-shadow: none; }

.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff5722;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: rotate(5deg);
    z-index: 10;
}

/* Media Queries for wrapping (Tablets 2-across, Mobile 1-across) */
@media (max-width: 950px) {
    .hub-card { width: clamp(220px, 45%, 320px); }
}
@media (max-width: 550px) {
    .hub-card { width: 100%; max-width: 320px; }
    .animated-title { font-size: 1.8rem; text-shadow: 2px 2px 0 #ff5722, 4px 4px 0 #c23989; }
}

/* BACK TO HOME BUTTON */
.bottom-actions { margin: 10px 0 30px 0; }
.action-btn { 
    display: inline-block; background: #9c27b0; color: white; border: 3px solid white; 
    padding: clamp(10px, 1.5vh, 15px) 40px; font-size: clamp(16px, 2.5vh, 20px); 
    font-family: inherit; font-weight: bold; border-radius: 50px; text-decoration: none;
    cursor: pointer; box-shadow: 0 6px 15px rgba(0,0,0,0.15); transition: transform 0.1s; 
}
.action-btn:hover { transform: scale(1.05); background: #8e24aa; }
.action-btn:active { transform: translateY(6px); box-shadow: none; }

/* Footer */
.footer { text-align: center; padding: 20px 15px; background: #2c3e50; color: white; margin-top: auto; width: 100%; position: relative; z-index: 20; box-sizing: border-box;}
.footer a { color: #ffcc00; text-decoration: none; margin: 0 10px; display: inline-block; padding: 5px 0; font-size: 1rem; transition: color 0.2s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.copyright { margin-top: 10px; font-size: 0.85rem; color: #aaa; }