/* Frontend polish layer for RSDC */

.hero-section .carousel-indicators {
    left: 50% !important;
    right: auto !important;
    bottom: 30px;
    width: auto;
    margin: 0 !important;
    padding: 0;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-section .carousel-indicators .indicator {
    flex: 0 0 auto;
}

.courses-grid {
    align-items: stretch;
}

.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-duration {
    min-height: 1.5em;
}

.course-description {
    min-height: 6.4em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-align: center;
    text-decoration: none;
}

.course-btn:hover,
.course-btn:focus {
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(18, 140, 126, 0.18);
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.22);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.whatsapp-float img {
    width: 25px;
    height: 25px;
    display: block;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: translateY(-2px);
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 14px 30px rgba(18, 140, 126, 0.28);
    text-decoration: none;
}

@media (max-width: 575px) {
    .hero-section .carousel-indicators {
        bottom: 22px;
    }

    .course-title,
    .course-description {
        min-height: auto;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 84px;
        width: 42px;
        height: 42px;
    }

    .whatsapp-float img {
        width: 23px;
        height: 23px;
    }
}
