/* Rise Theme Custom Styles */

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --rise-primary: #342E7C;
    --rise-secondary: #7C3AED;
    --rise-pink: #EB088C;
    --rise-light: #FFF5F5;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #1F2937;
}

.bg-primary { background-color: var(--rise-primary) !important; }
.text-primary { color: var(--rise-primary); }
.text-primary-var { color: var(--rise-primary); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    color: #342E7C;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #EB088C;
}

/* ============================================
   COURSE ITEMS
   ============================================ */
.course-item {
    width: 18%;
    min-width: 140px;
    max-width: 200px;
    margin: 1%;
}

.bg-course-home {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    aspect-ratio: 3/4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover .bg-course-home {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(52, 46, 124, 0.4);
}

.course-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
    background: rgba(52, 46, 124, 0.95);
    border-radius: 9999px;
}

/* ============================================
   LOCATION CARDS
   ============================================ */
.location-card {
    background: #1f2937;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.location-card:hover {
    background: #374151;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-phone,
.floating-messenger {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-phone:hover,
.floating-messenger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.floating-phone {
    background: linear-gradient(135deg, #342E7C, #7C3AED);
}

.floating-messenger {
    background: #0084FF;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .course-item {
        width: 30%;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .course-item {
        width: 45%;
        min-width: 140px;
    }
    
    .floating-btn {
        right: 10px;
        bottom: 10px;
    }
    
    .floating-phone,
    .floating-messenger {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   UTILITIES
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scale-115 {
    transform: scale(1.15);
}
