.explore-page {
    padding-top: 1rem;
}

/* Page Header Fluid Sizing */
.page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
}

.page-subtitle {
    font-size: clamp(0.88rem, 2.5vw, 1.05rem);
    color: #64748b;
    max-width: 500px;
}

/* Modern Card Base Structure */
.project-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

/* Image Container */
.image-box {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

/* Fluid Handwritten Title */
.card-title {
    font-family: 'Annie Use Your Telescope', serif;
    font-weight: bold;
    font-size: clamp(1.25rem, 4vw, 1.5rem); /* Prevents title overflow on mobile */
    color: #111827;
    margin: 4px 0 12px;
    white-space: nowrap; /* Keeps title neatly on 1 line */
}

/* Divider Ruler */
.card-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: auto 0 12px 0;
    opacity: 0.8;
}

/* Card Action Footer */
.card-footer-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.88rem;
    color: #111827;
    white-space: nowrap; /* Prevents text like 'Explore Module' from wrapping */
}

.card-footer-action span:first-child {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-arrow {
    font-size: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Interactions (Desktop) */
.project-card-active:hover {
    transform: translateY(-6px);
    border-color: #4f46e5;
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
}

.project-card-active:hover .image-box img {
    transform: scale(1.08);
}

.project-card-active:hover .card-footer-action span:first-child {
    transform: translateX(3px);
    color: #4f46e5;
}

.project-card-active:hover .topic-arrow {
    transform: translateX(6px);
    color: #4f46e5;
}

/* Disabled State */
.project-card-disabled {
    opacity: 0.65;
    background: #f8fafc;
    border-style: dashed;
}

/* Mobile Specific Optimizations (< 576px) */
@media (max-width: 576px) {
    .project-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .image-box {
        height: 140px; /* Reduced height for smaller mobile viewports */
        margin-bottom: 8px;
    }

    .card-footer-action {
        font-size: 0.82rem;
    }
}