.home-area-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 5px;
}

/* Each home area = full-screen section */
.home-area {
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden; /* no scrollbar inside */
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #f9f9f9;
    font-family: 'Patrick Hand';
    font-size: 14px;
    white-space: pre-wrap;

    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Desktop will use horizontal wrapping */
    align-content: flex-start;
}

/* Special styling for HomeArea_1 */
#HomeArea_1 {
    background: #cfdbf5;
    font-size: 8px;
    color: rgba(237, 92, 44, 0.425);
}



/* ------------ RESPONSIVE LAYOUT RULES ------------ */

/* Mobile — stack vertically (1 column) */
@media (max-width: 767px) {
    .home-area {
        flex-direction: column;
        flex-wrap: nowrap;  /* No horizontal wrapping on mobile */
    }
}

/* Desktop — multiple items per row */
@media (min-width: 768px) {
    .home-area > * {
        flex: 0 1 auto; /* allow items to wrap */
    }
}


/* Grid layout for topic cards */
.card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.topic-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.topic-card i {
    font-size: 2rem;
    color: #161cca;
    margin-bottom: 10px;
}

.topic-card h3 {
    margin: 10px 0;
}

.topic-card p {
    font-size: 0.9rem;
}




@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

iframe {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
}


