/* ============================================================
   CERTNEXUS STRATEGIC PARTNERSHIP SECTION
   MicroSmart × CertNexus — Compact Premium Showcase
   ============================================================ */

/* --- Scroll Reveal --- */
.cn-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cn-reveal.cn-visible { opacity: 1; transform: translateY(0); }
.cn-reveal-delay-1 { transition-delay: 0.1s; }
.cn-reveal-delay-2 { transition-delay: 0.15s; }
.cn-reveal-delay-3 { transition-delay: 0.2s; }
.cn-reveal-delay-4 { transition-delay: 0.25s; }
.cn-reveal-delay-5 { transition-delay: 0.3s; }
.cn-reveal-delay-6 { transition-delay: 0.35s; }

/* --- Shimmer Animation --- */
@keyframes cn-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes cn-pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(9,24,158,0.15), 0 8px 32px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 0 35px rgba(9,24,158,0.22), 0 12px 44px rgba(0,0,0,0.12); }
}

/* ============================================================
   MAIN SECTION
   ============================================================ */
.cn-partnership {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* --- HERO --- */
.cn-hero {
    background: linear-gradient(135deg, #060b2e 0%, #09189e 50%, #1a2fd4 100%);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}
.cn-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(229,246,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(229,246,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.cn-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.cn-hero .container { position: relative; z-index: 2; }

/* Badge */
.cn-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229,246,255,0.1);
    border: 1px solid rgba(229,246,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: #e5f6ff;
    font-family: "micro-regular";
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.cn-badge i { color: #fbbf24; font-size: 15px; }

/* Title — ALWAYS ONE LINE */
.cn-hero-title {
    font-family: "micro-bold";
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.cn-hero-title span {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cn-shimmer 3s linear infinite;
}

/* Description */
.cn-hero-desc {
    font-family: "micro-regular";
    font-size: 15px;
    color: rgba(229,246,255,0.85);
    line-height: 1.85;
    max-width: 620px;
    margin-bottom: 10px;
}
.cn-hero-highlight {
    font-family: "micro-bold";
    font-size: 16px;
    color: #fbbf24;
    margin-top: 14px;
    line-height: 1.7;
}

/* Hero Layout */
.cn-hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.cn-hero-text { flex: 1; min-width: 0; }
.cn-hero-visual { flex: 0 0 auto; width: 420px; }

/* Certificate Frame */
.cn-cert-frame {
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(16px);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s;
    animation: cn-pulse-glow 4s ease-in-out infinite;
    width: 100%;
}
.cn-cert-frame:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 50px rgba(251,191,36,0.12), 0 20px 60px rgba(0,0,0,0.2);
}
.cn-cert-frame img { width: 100%; height: auto; border-radius: 10px; display: block; }
.cn-cert-label {
    text-align: center;
    margin-top: 12px;
    font-family: "micro-regular";
    font-size: 12px;
    color: rgba(229,246,255,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   MERGED COMPACT SECTIONS (Skills + Benefits + Advantages)
   ============================================================ */
.cn-compact {
    background: linear-gradient(180deg, #070d35 0%, #0b1555 100%);
    padding: 50px 0 60px;
    border-top: 1px solid rgba(229,246,255,0.06);
}

.cn-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Column */
.cn-compact-col {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.cn-compact-col:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
}

/* Column header */
.cn-compact-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cn-compact-col-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.cn-compact-col-icon.cn-blue {
    background: rgba(9,24,158,0.4);
    color: #93b4ff;
}
.cn-compact-col-icon.cn-green {
    background: rgba(16,185,129,0.2);
    color: #6ee7b7;
}
.cn-compact-col-icon.cn-gold {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
}
.cn-compact-col-title {
    font-family: "micro-bold";
    font-size: 16px;
    color: white;
    margin: 0;
}

/* Items inside columns */
.cn-compact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cn-compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.cn-compact-item:hover {
    background: rgba(255,255,255,0.07);
    transform: translateX(-3px);
    border-color: rgba(255,255,255,0.12);
}
[dir="ltr"] .cn-compact-item:hover {
    transform: translateX(3px);
}

.cn-compact-item-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.cn-compact-item-icon.cn-skill-i {
    background: linear-gradient(135deg, rgba(147,180,255,0.15), rgba(9,24,158,0.25));
    color: #93b4ff;
}
.cn-compact-item-icon.cn-benefit-i {
    background: linear-gradient(135deg, rgba(110,231,183,0.1), rgba(16,185,129,0.2));
    color: #6ee7b7;
}
.cn-compact-item-icon.cn-advantage-i {
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(251,191,36,0.2));
    color: #fbbf24;
}

.cn-compact-item-text {
    font-family: "micro-regular";
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
    .cn-hero { padding: 50px 0 40px; }
    .cn-hero-content { flex-direction: column; text-align: center; gap: 30px; }
    .cn-hero-text { order: 1; }
    .cn-hero-visual { order: 2; width: 360px; max-width: 100%; }
    .cn-hero-title { font-size: 36px; white-space: normal; }
    .cn-hero-desc { margin-left: auto; margin-right: auto; }
    .cn-badge { justify-content: center; }
    .cn-compact-grid { grid-template-columns: 1fr; gap: 20px; }
    .cn-compact { padding: 40px 0 50px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
    .cn-hero { padding: 36px 0 30px; }
    .cn-hero-content { gap: 24px; }
    .cn-hero-title { font-size: 28px; }
    .cn-hero-desc { font-size: 14px; }
    .cn-hero-highlight { font-size: 14px; }
    .cn-hero-visual { width: 100%; }
    .cn-cert-frame { padding: 12px; border-radius: 12px; }
    .cn-compact { padding: 30px 0 40px; }
    .cn-compact-col { padding: 20px 16px; }
    .cn-badge { font-size: 11px; padding: 6px 14px; }
}

/* ============================================================
   RTL OVERRIDES
   ============================================================ */
[dir="rtl"] .cn-compact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .cn-compact-col-header { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .cn-hero-content { direction: rtl; }
