/*
 * IntelQI LMS — Enterprise Learning Platform
 * Features Section Styles
 *
 * Brand Colors:
 * - Primary Blue: #154f95
 * - Primary Blue Dark: #0d3d7a
 * - Dark Blue: #0f172a (headings, dark cards)
 * - Light Blue Tint: #e8f4fc (backgrounds)
 *
 * Copyright © 2025 Euclideum Solutions Private Limited.
 */

/* ============================================
   Features Section Base
   ============================================ */
.features-section {
    padding: 48px 24px;
    background-color: #f8fafc;
}

[data-theme="dark"] .features-section {
    background-color: #0c1222;
}

@media (min-width: 768px) {
    .features-section {
        padding: 64px 24px;
    }
}

@media (min-width: 1024px) {
    .features-section {
        padding: 80px 24px;
    }
}

@media (min-width: 1400px) {
    .features-section {
        padding: 80px 32px;
    }
}

.features-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .features-container {
        flex-direction: row;
        gap: 24px;
        align-items: stretch;
    }
}

@media (min-width: 1400px) {
    .features-container {
        max-width: 1336px;
    }
}

/* ============================================
   Left Card - CTA Card
   ============================================ */
.features-cta-card {
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

[data-theme="dark"] .features-cta-card {
    background: linear-gradient(145deg, #1c3a5a 0%, #0c1322 100%);
    border: 1px solid #1e3a5f;
}

@media (min-width: 768px) {
    .features-cta-card {
        padding: 40px 36px;
        min-height: 420px;
    }
}

@media (min-width: 1024px) {
    .features-cta-card {
        flex: 0 0 420px;
        padding: 44px 40px;
        min-height: auto;
    }
}

@media (min-width: 1200px) {
    .features-cta-card {
        flex: 0 0 480px;
        padding: 48px 44px;
    }
}

@media (min-width: 1400px) {
    .features-cta-card {
        flex: 0 0 540px;
        padding: 52px 48px;
    }
}

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

.features-cta-label {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .features-cta-label {
        font-size: 15px;
        margin-bottom: 24px;
    }
}

@media (min-width: 1024px) {
    .features-cta-label {
        font-size: 16px;
        margin-bottom: 28px;
    }
}

.features-cta-heading {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #a8b4c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

@media (min-width: 768px) {
    .features-cta-heading {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .features-cta-heading {
        font-size: 48px;
    }
}

@media (min-width: 1200px) {
    .features-cta-heading {
        font-size: 54px;
    }
}

.features-cta-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 24px;
}

@media (min-width: 768px) {
    .features-cta-footer {
        gap: 24px;
        padding-top: 32px;
    }
}

.features-cta-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #94a3b8;
    flex: 1;
    max-width: 320px;
}

@media (min-width: 768px) {
    .features-cta-subtitle {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .features-cta-subtitle {
        font-size: 16px;
    }
}

.features-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #0f172a;
    text-decoration: none;
    flex-shrink: 0;
}

.features-cta-button svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Right Side - Feature Cards Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        flex: 1;
        gap: 0;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        overflow: hidden;
    }

    [data-theme="dark"] .features-grid {
        border-color: #334155;
    }
}

/* ============================================
   Feature Card
   ============================================ */
.feature-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .feature-card {
    background-color: #111a2e;
    border-color: #334155;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 28px;
    }
}

@media (min-width: 1024px) {
    .feature-card {
        padding: 32px;
        border-radius: 0;
        border: none;
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        background-color: #ffffff;
    }

    .feature-card:nth-child(2),
    .feature-card:nth-child(4) {
        border-right: none;
    }

    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        border-bottom: none;
    }

    [data-theme="dark"] .feature-card {
        border-color: #334155;
        background-color: #111a2e;
    }
}

@media (min-width: 1200px) {
    .feature-card {
        padding: 36px;
    }
}

@media (min-width: 1400px) {
    .feature-card {
        padding: 40px;
    }
}

.feature-card:hover {
    border-color: #154f95;
}

[data-theme="dark"] .feature-card:hover {
    border-color: #60a5fa;
}

@media (min-width: 1024px) {
    .feature-card:hover {
        border-color: #e2e8f0;
        background-color: #fafbfc;
    }

    [data-theme="dark"] .feature-card:hover {
        border-color: #334155;
        background-color: #1e293b;
    }
}

.feature-card:hover .feature-icon {
    color: #154f95;
    transform: scale(1.05);
}

[data-theme="dark"] .feature-card:hover .feature-icon {
    color: #60a5fa;
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #0f172a;
    transition: color 0.35s ease, transform 0.35s ease;
}

[data-theme="dark"] .feature-icon {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 24px;
    }
}

@media (min-width: 1024px) {
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 28px;
    }
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 17px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

[data-theme="dark"] .feature-title {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
}

@media (min-width: 1024px) {
    .feature-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
}

.feature-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #64748b;
}

[data-theme="dark"] .feature-description {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .feature-description {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .feature-description {
        font-size: 15px;
        line-height: 1.65;
    }
}
