/*
 * IntelQI LMS — Enterprise Learning Platform
 * CTA Section Styles - Refined Spacing & Hierarchy
 *
 * Copyright © 2025 Euclideum Solutions Private Limited.
 */

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

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

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

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

.cta-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* ============================================
   CTA Card - Refined
   ============================================ */
.cta-card {
    position: relative;
    background-color: #e8f4fc;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    overflow: hidden;
}

[data-theme="dark"] .cta-card {
    background-color: #0a1628;
}

@media (min-width: 640px) {
    .cta-card {
        padding: 56px 40px;
        border-radius: 24px;
    }
}

@media (min-width: 768px) {
    .cta-card {
        padding: 64px 56px;
    }
}

@media (min-width: 1024px) {
    .cta-card {
        padding: 72px 80px;
    }
}

/* ============================================
   Decorative Elements - Left Side (Subtle)
   ============================================ */
.cta-decor-left {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0.04;
}

@media (max-width: 767px) {
    .cta-decor-left {
        display: none;
    }
}

@media (min-width: 768px) {
    .cta-decor-left {
        left: -40px;
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .cta-decor-left {
        left: -20px;
        gap: 20px;
        opacity: 0.05;
    }
}

.cta-stripe {
    height: 14px;
    background-color: #154f95;
    border-radius: 0 7px 7px 0;
}

[data-theme="dark"] .cta-stripe {
    background-color: #60a5fa;
}

.cta-stripe:nth-child(1) { width: 80px; }
.cta-stripe:nth-child(2) { width: 120px; }
.cta-stripe:nth-child(3) { width: 160px; }
.cta-stripe:nth-child(4) { width: 100px; }

@media (min-width: 768px) {
    .cta-stripe { height: 16px; }
    .cta-stripe:nth-child(1) { width: 100px; }
    .cta-stripe:nth-child(2) { width: 150px; }
    .cta-stripe:nth-child(3) { width: 200px; }
    .cta-stripe:nth-child(4) { width: 130px; }
}

@media (min-width: 1024px) {
    .cta-stripe { height: 18px; }
    .cta-stripe:nth-child(1) { width: 120px; }
    .cta-stripe:nth-child(2) { width: 180px; }
    .cta-stripe:nth-child(3) { width: 240px; }
    .cta-stripe:nth-child(4) { width: 160px; }
}

/* ============================================
   Decorative Elements - Right Side (Subtle)
   ============================================ */
.cta-decor-right {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    opacity: 0.04;
}

@media (max-width: 767px) {
    .cta-decor-right {
        display: none;
    }
}

@media (min-width: 768px) {
    .cta-decor-right {
        right: -20px;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .cta-decor-right {
        right: 0;
        gap: 28px;
        opacity: 0.05;
    }
}

.cta-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

.cta-triangle--up {
    border-width: 0 32px 56px 32px;
    border-color: transparent transparent #154f95 transparent;
}

.cta-triangle--down {
    border-width: 56px 32px 0 32px;
    border-color: #154f95 transparent transparent transparent;
}

.cta-triangle--small {
    border-width: 0 20px 34px 20px;
}

.cta-triangle--small.cta-triangle--down {
    border-width: 34px 20px 0 20px;
}

[data-theme="dark"] .cta-triangle--up {
    border-color: transparent transparent #60a5fa transparent;
}

[data-theme="dark"] .cta-triangle--down {
    border-color: #60a5fa transparent transparent transparent;
}

@media (min-width: 768px) {
    .cta-triangle--up { border-width: 0 40px 70px 40px; }
    .cta-triangle--down { border-width: 70px 40px 0 40px; }
    .cta-triangle--small { border-width: 0 24px 42px 24px; }
    .cta-triangle--small.cta-triangle--down { border-width: 42px 24px 0 24px; }
}

@media (min-width: 1024px) {
    .cta-triangle--up { border-width: 0 48px 84px 48px; }
    .cta-triangle--down { border-width: 84px 48px 0 48px; }
    .cta-triangle--small { border-width: 0 28px 48px 28px; }
    .cta-triangle--small.cta-triangle--down { border-width: 48px 28px 0 28px; }
}

.cta-triangles-top,
.cta-triangles-bottom {
    display: flex;
    gap: 16px;
}

.cta-triangles-top { align-items: flex-end; }
.cta-triangles-bottom { align-items: flex-start; }

@media (min-width: 768px) {
    .cta-triangles-top,
    .cta-triangles-bottom { gap: 20px; }
}

@media (min-width: 1024px) {
    .cta-triangles-top,
    .cta-triangles-bottom { gap: 24px; }
}

/* ============================================
   CTA Content - Better Hierarchy
   ============================================ */
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cta-content {
        max-width: 680px;
    }
}

@media (min-width: 1024px) {
    .cta-content {
        max-width: 720px;
    }
}

/* Heading - Clear hierarchy */
.cta-heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #154f95;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

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

@media (min-width: 480px) {
    .cta-heading {
        font-size: 28px;
        margin-bottom: 14px;
    }
}

@media (min-width: 768px) {
    .cta-heading {
        font-size: 34px;
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .cta-heading {
        font-size: 40px;
        margin-bottom: 18px;
    }
}

/* Description - Subtle support text */
.cta-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (min-width: 768px) {
    .cta-description {
        font-size: 16px;
        margin-bottom: 32px;
        max-width: 580px;
    }
}

@media (min-width: 1024px) {
    .cta-description {
        font-size: 17px;
        margin-bottom: 36px;
    }
}

/* ============================================
   CTA Buttons - Refined Sizing
   ============================================ */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        gap: 14px;
        max-width: none;
        width: auto;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .cta-buttons {
        gap: 16px;
    }
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 480px) {
    .cta-btn {
        width: auto;
        padding: 14px 26px;
    }
}

@media (min-width: 768px) {
    .cta-btn {
        padding: 15px 28px;
        font-size: 15px;
    }
}

/* Primary Button - Brand Blue */
.cta-btn--primary {
    background-color: #154f95;
    color: #ffffff;
    border: 2px solid #154f95;
}

.cta-btn--primary:hover {
    background-color: #0d3d7a;
    border-color: #0d3d7a;
    box-shadow: 0 4px 12px rgba(21, 79, 149, 0.3);
}

[data-theme="dark"] .cta-btn--primary {
    background-color: #60a5fa;
    border-color: #60a5fa;
    color: #0f172a;
}

[data-theme="dark"] .cta-btn--primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.cta-btn--primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cta-btn--primary:hover svg {
    transform: translateX(3px);
}

/* Secondary Button - Outlined */
.cta-btn--secondary {
    background-color: #ffffff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}

.cta-btn--secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .cta-btn--secondary {
    background-color: transparent;
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] .cta-btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #475569;
}
