/* eCPPT Professional Multilingual Layout System */
/* Supports: Arabic (RTL), English (LTR), Chinese (LTR with CJK rules) */

/* ============================================
   SPACING SCALE (Vertical Rhythm)
   ============================================ */
:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
}

/* ============================================
   ANIMATIONS (Direction-Agnostic)
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   CONTAINER SYSTEM (Logical Properties)
   ============================================ */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.ecppt-hero {
    padding-block: var(--space-xl);
}

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-block-end: var(--space-md);
    animation: fadeInDown 0.8s ease-out;
}

/* ============================================
   TYPOGRAPHY (Language-Specific Alignment)
   ============================================ */

/* Hero Title */
.ecppt-title {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.2;
    margin-block-end: var(--space-sm);
    animation: fadeInUp 1s ease-out 0.2s backwards;
    background: linear-gradient(120deg, #e5e7eb 0%, #10b981 50%, #e5e7eb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ecppt-title span {
    animation: glowPulse 3s ease-in-out infinite;
    display: inline-block;
    background: linear-gradient(45deg, #10b981, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lead Text */
.lead {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    margin-block-end: var(--space-md);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Language-Specific Typography Rules */
:lang(ar) {
    text-align: start;
}

:lang(en) {
    text-align: start;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
    text-align: center;
}

:lang(zh) .lead {
    letter-spacing: 0.2px;
}

:lang(ar) .lead {
    letter-spacing: 0;
}

/* ============================================
   HIGHLIGHTS GRID (Equal Height Cards)
   ============================================ */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--space-sm);
    margin-block-end: var(--space-md);
}

.highlights .highlight {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out backwards;
    min-block-size: 100px;
}

.highlights .highlight:nth-child(1) {
    animation-delay: 0.5s;
}

.highlights .highlight:nth-child(2) {
    animation-delay: 0.65s;
}

.highlights .highlight:nth-child(3) {
    animation-delay: 0.8s;
}

.highlights .highlight:nth-child(4) {
    animation-delay: 0.95s;
}

.highlights .highlight:hover {
    border-color: rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.2);
}

.highlights strong {
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
}

.highlights span {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* ============================================
   PRICING SECTION (Direction-Aware)
   ============================================ */
.pricing {
    padding: var(--space-md);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
    margin-block-end: var(--space-lg);
    animation: fadeInUp 1s ease-out 1.1s backwards;
}

.pricing>* {
    text-align: start;
}

.pricing .flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.discount-badge {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

/* ============================================
   CURRICULUM CARD (Equal Height Items)
   ============================================ */
.curriculum-card {
    padding: var(--space-md);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    backdrop-filter: blur(20px);
    animation: fadeInUp 1s ease-out 1.2s backwards;
}

.curriculum-card .space-y-3 {
    display: grid;
    gap: var(--space-sm);
}

.curriculum-item {
    display: grid;
    grid-template-columns: 1fr;
    padding: var(--space-sm);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.1);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.curriculum-item::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: -100%;
    inline-size: 100%;
    block-size: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.curriculum-item:nth-child(1) {
    animation-delay: 1.3s;
}

.curriculum-item:nth-child(2) {
    animation-delay: 1.45s;
}

.curriculum-item:nth-child(3) {
    animation-delay: 1.6s;
}

.curriculum-item:nth-child(4) {
    animation-delay: 1.75s;
}

.curriculum-item:nth-child(n+5) {
    animation-delay: 1.9s;
}

.curriculum-item:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
}

.curriculum-item .flex {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.curriculum-item strong {
    color: #10b981;
    font-weight: 600;
    display: block;
    margin-block-end: 4px;
}

/* Number Badge in Curriculum */
.curriculum-item .flex-shrink-0 {
    flex-shrink: 0;
}

/* ============================================
   CTA BUTTON (Centered, Direction-Agnostic)
   ============================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding-inline: var(--space-md);
    padding-block: 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    border: 2px solid transparent;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.4s backwards;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    inline-size: 0;
    block-size: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: inline-size 0.6s, block-size 0.6s;
}

.btn-cta:hover::before {
    inline-size: 300px;
    block-size: 300px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

/* ============================================
   FORM CARD (Symmetrical Positioning)
   ============================================ */
.form-card {
    inline-size: 100%;
    max-inline-size: 520px;
    padding: var(--space-md);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    backdrop-filter: blur(20px);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.form-card .text-center {
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    margin-block-start: var(--space-2xl);
    padding-block: var(--space-xl);
    border-block-start: 1px solid rgba(16, 185, 129, 0.3);
    animation: fadeInUp 1s ease-out 1.5s backwards;
}

/* ============================================
   RESPONSIVE DESIGN (Mobile-First)
   ============================================ */
@media (max-width: 768px) {
    .ecppt-title {
        font-size: 28px;
    }

    .highlights {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .highlights .highlight {
        min-block-size: 100px;
    }

    .highlights strong {
        font-size: 13px;
    }

    .highlights span {
        font-size: 12px;
        line-height: 1.4;
    }

    .curriculum-item {
        padding: var(--space-sm);
    }

    .btn-cta {
        font-size: 14px;
        inline-size: 100%;
    }

    .pricing {
        padding: var(--space-sm);
    }

    .pricing .flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(120deg, #10b981 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: scale(1.02);
}

/* Remove conflicting global transitions */
.ecppt-hero * {
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}