/* ============================================
   STUDENT LMS PAGE STYLES
   KS Chemistry - Student LMS Custom Styles
============================================ */

/* Sinhala Font Support */
body,
.section-description-text,
.feature-detail-card p,
.about-content p,
.about-content b {
    font-family: 'YaldeviColombo', sans-serif;
}

/* Feature Detail Card Styles */
.feature-detail-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover Effects - Simple and Clean */
.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(237, 59, 59, 0.15);
}

.feature-detail-card:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--theme);
}

/* Icon Transition */
.feature-icon i {
    transition: all 0.3s ease;
}

/* Card Title Transition */
.feature-detail-card h4 {
    transition: color 0.3s ease;
}

/* Content stays on top */
.feature-detail-card > * {
    position: relative;
    z-index: 1;
}

/* Smooth animation for cards on load */
.feature-detail-card {
    animation: fadeInCard 0.6s ease forwards;
}

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

/* Text Styles - Matching Index Page Learning Process Section */
.lms-content-text {
    margin-bottom: 20px;
    font-weight: normal !important;
    color: #000 !important;
    font-size: 20px;
    line-height: 30px;
    font-family: 'YaldeviColombo', sans-serif;
}

/* Section Description Text */
.section-description-text {
    max-width: 900px;
    margin: 0 auto;
    font-weight: normal !important;
    color: #000 !important;
    font-size: 20px;
    line-height: 30px;
    font-family: 'YaldeviColombo', sans-serif;
}

/* Card Paragraph Text */
.feature-detail-card p {
    margin: 0;
    color: var(--text) !important;
    line-height: 1.8;
    font-weight: normal !important;
    font-size: 20px;
    font-family: 'YaldeviColombo', sans-serif;
}

/* Features Details Section Alignment */
.features-details-section {
    background-color: #f8f9fa;
    margin-bottom: 100px !important;
}

/* LMS and CHEM BOT AI Section Headings */
.about-content .section-title h2 {
    font-size: 44px;
    line-height: 1.2;
}

.features-details-section .section-title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--header);
}

.features-details-section .feature-detail-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.features-details-section .feature-detail-card .d-flex {
    flex: 1;
}

/* Card Title Styling */
.feature-detail-card h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* Icon Container */
.feature-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* LMS Features Section - Add padding-top on all screens */
.features-details-section .row.mt-5.mb-5 {
    padding-top: 80px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-detail-card {
        margin-bottom: 20px;
    }
    
    .section-description-text,
    .lms-content-text {
        font-size: 16px;
        line-height: 28px;
    }
    
    .feature-detail-card p {
        font-size: 15px;
    }
    
    .about-content .section-title h2 {
        font-size: 28px;
    }
    
    .features-details-section .section-title h2 {
        font-size: 28px;
    }
    
    .feature-detail-card h4 {
        font-size: 18px;
    }
    
    /* Add margin-bottom to CHEM BOT AI Features section on mobile */
    .features-details-section .row.g-4.mb-5 {
        margin-bottom: 4rem !important;
    }
    
    /* Add margin-bottom to LMS Features section on mobile */
    .features-details-section .row.g-4:last-child {
        margin-bottom: 4rem !important;
    }
}

/* Tablet Screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-description-text,
    .lms-content-text {
        font-size: 17px;
        line-height: 29px;
    }
    
    .feature-detail-card p {
        font-size: 16px;
    }
    
    .about-content .section-title h2 {
        font-size: 38px;
    }
    
    .features-details-section .section-title h2 {
        font-size: 32px;
    }
    
    /* Add margin-bottom to CHEM BOT AI Features section on tablet */
    .features-details-section .row.g-4.mb-5 {
        margin-bottom: 5rem !important;
    }
    
    /* Add margin-bottom to LMS Features section on tablet */
    .features-details-section .row.g-4:last-child {
        margin-bottom: 4rem !important;
    }
}
