/* Modern module card button styling — Ember Theme */
.module-begin-btn,
a.module-begin-btn,
.module-begin-btn:link,
.module-begin-btn:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Warm parchment text for ember theme */
    color: #FAF3E8 !important;
    background: linear-gradient(135deg, rgba(212, 106, 42, 0.15), rgba(224, 156, 61, 0.1));
    border: 2px solid rgba(212, 106, 42, 0.55);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.module-begin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.module-begin-btn:hover::before {
    left: 100%;
}

.module-begin-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 156, 61, 0.85);
    background: linear-gradient(135deg, rgba(212, 106, 42, 0.3), rgba(224, 156, 61, 0.25));
    box-shadow: 0 10px 25px -5px rgba(212, 106, 42, 0.4), 0 8px 10px -6px rgba(224, 156, 61, 0.3);
}

.module-begin-btn:active {
    transform: translateY(0);
}

.module-begin-btn span {
    color: #FAF3E8 !important;
}

.module-begin-btn .btn-icon {
    color: #FAF3E8 !important;
    transition: transform 0.3s ease;
}

.module-begin-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Card hover animation via class (CSP compliant - no inline styles) */
.card-hover-active {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Module details card background — Ember Theme */
.module-details-card {
    background: linear-gradient(135deg, #3E2819 0%, #5a3a24 100%);
}

/* Module-specific gradient backgrounds for dynamic content */
.gradient-purple-pink { background: linear-gradient(135deg, #d97706, #b45309); }
.gradient-rose-pink { background: linear-gradient(135deg, #f43f5e, #dc2626); }
.gradient-blue-cyan { background: linear-gradient(135deg, #D46A2A, #E09C3D); }
.gradient-green-emerald { background: linear-gradient(135deg, #22c55e, #10b981); }
.gradient-yellow-orange { background: linear-gradient(135deg, #eab308, #f97316); }
.gradient-red-pink { background: linear-gradient(135deg, #ef4444, #dc2626); }
.gradient-indigo-purple { background: linear-gradient(135deg, #d97706, #b45309); }
.gradient-yellow-red { background: linear-gradient(135deg, #facc15, #ef4444); }
.gradient-amber-orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-cyan-teal { background: linear-gradient(135deg, #06b6d4, #14b8a6); }
.gradient-red-orange { background: linear-gradient(135deg, #ef4444, #f97316); }
.gradient-slate-blue { background: linear-gradient(135deg, #78716c, #C55A1C); }
.gradient-steel-blue { background: linear-gradient(135deg, #475569, #1d4ed8); }
.gradient-stone-gray { background: linear-gradient(135deg, #78716c, #57534e); }
.gradient-fire-gold { background: linear-gradient(135deg, #f97316, #fbbf24); }
.gradient-emerald-teal { background: linear-gradient(135deg, #10b981, #14b8a6); }

/* Ensure consistent button placement - fixed height for footer */
.module-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.module-card .module-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.module-card .module-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
