.ai-platform-section {
    background-color: var(--color-black, #111);
    color: var(--color-white, #fff);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ai-platform-header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ai-platform-section h2.ai-platform-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    color: #fff;
}

.ai-platform-section p.ai-platform-subtitle {
    font-size: 0.875rem;
    color: #a0a0a0;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

.ai-platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

/* Base Card Style */
.ai-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.ai-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(225,55,50,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ai-card:hover::before {
    opacity: 1;
}

.ai-card-large {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.ai-card-content {
    flex: 1;
    z-index: 1;
}

.ai-platform-section .ai-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    color: #fff;
}

.ai-platform-section .ai-card-desc {
    color: #b0b0b0;
    margin-bottom: 1.25rem;
    font-size: 0.825rem;
    line-height: 1.65;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary-red, #e13732);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    white-space: nowrap;
}

.ai-practicing-btn {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
}

.ai-practicing-btn .btn-text {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
}

.ai-btn:hover {
    background-color: #c32b27;
}

/* Visualization Containers */
.ai-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    min-height: 250px;
}

.ai-dashboard-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.ai-dashboard-image:hover {
    transform: scale(1.02);
}

/* Bottom Left Card */
.ai-card-small {
    flex-direction: column;
}
.ai-platform-section .ai-card-small .ai-card-title {
    font-size: 1rem;
}

.report-visual {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.cefr-badge {
    display: inline-block;
    background: rgba(225,55,50,0.2);
    color: #e13732;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.skill-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.skill-label {
    min-width: 80px;
    font-size: 0.85rem;
    color: #aaa;
}
.skill-track {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    background: #e13732;
    border-radius: 3px;
}
.transcript-quote {
    margin-top: 1.5rem;
    font-style: italic;
    font-size: 0.9rem;
    color: #888;
    border-left: 3px solid #e13732;
    padding-left: 1rem;
}

/* Bottom Right Card */
.assessment-visual {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.node-path {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    position: relative;
}
.node-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}
.node {
    background: #252525;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ccc;
    z-index: 1;
    position: relative;
}
.node.active {
    background: rgba(225,55,50,0.15);
    border-color: #e13732;
    color: #e13732;
    box-shadow: 0 0 15px rgba(225,55,50,0.4);
}
.node-final {
    margin-top: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #e13732 0%, #8a1f1b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(225,55,50,0.5);
    position: relative;
}
.node-final::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid rgba(225,55,50,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@media(max-width: 900px) {
    .ai-platform-section {
        padding: 3rem 1rem;
    }
    .ai-platform-section h2.ai-platform-title {
        font-size: 1.4rem;
    }
    .ai-platform-section p.ai-platform-subtitle {
        font-size: 0.85rem;
    }
    .ai-platform-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .ai-card {
        padding: 1.5rem;
    }
    .ai-platform-section .ai-card-title {
        font-size: 1rem;
    }
    .ai-card-large {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .ai-visual {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
        min-height: auto;
    }
    .ai-btn, .ai-practicing-btn {
        margin: 0 auto;
    }
    .node-path {
        flex-direction: column;
        gap: 1.5rem;
    }
    .node-path::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        bottom: 0;
    }
}

@media(max-width: 480px) {
    .ai-platform-section h2.ai-platform-title {
        font-size: 1.25rem;
    }
    .ai-platform-section {
        padding: 2.5rem 1rem;
    }
    .ai-card {
        padding: 1.2rem;
    }
    .ai-platform-section .ai-card-title {
        font-size: 0.95rem;
    }
    .ai-platform-section .ai-card-desc {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}
