
/* ========== GLOBAL TEXT STYLING ========== */
p {
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

/* ========== SERVICE CARDS & STEPS ========== */
.service-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.8rem;
    margin: 2rem 0;
    border-left: 6px solid #0d6efd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;               /* hover animation */
}
.service-card:hover {
    transform: translateY(-4px);
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.step-number {
    background: #0d6efd;
    color: white;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ========== BUTTONS ========== */
.btn-group-lg {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 2.5rem 0;
    justify-content: center;
}
.btn-latex {
    padding: 14px 28px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-latex:active {
    transform: scale(0.98);                         /* button press effect */
}
.btn-wa {
    background: #25D366;
    color: white;
}
.btn-wa:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}
.btn-email {
    background: #dc3545;
    color: white;
}
.btn-email:hover {
    background: #b02a37;
    color: white;
    transform: translateY(-2px);
}
.btn-telegram {
    background: #0088cc;
    color: white;
}
.btn-telegram:hover {
    background: #006699;
    color: white;
    transform: translateY(-2px);
}

/* ========== HERO CTA (NEW) ========== */
.hero-cta {
    background: linear-gradient(145deg, #f1f9ff, #e6f2ff);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(13, 110, 253, 0.2);
}
.hero-cta h3 {
    font-weight: 700;
    color: #0a58ca;
}

/* ========== TRUST STRIP (NEW) ========== */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    background: #fcfcfc;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #dee2e6;
    margin: 1.5rem 0;
    font-weight: 500;
}

/* ========== PRICING BADGE ========== */
.pricing-badge {
    background: #ffc107;
    color: #212529;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 40px;
    display: inline-block;
    margin: 20px auto;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* ========== EXAMPLE / PORTFOLIO ========== */
.example-note {
    background: #eef5ff;
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 2rem;
    border: 1px solid #cfe2ff;
}

/* ========== INFO BLOCK ========== */
.info-block {
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    border-left: 5px solid #0d6efd;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.info-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.info-en, .info-ar {
    font-size: 1.15rem;
    line-height: 1.7;
}
.info-ar {
    text-align: right;
    background: rgba(0,0,0,0.02);
    padding: 12px;
    border-radius: 8px;
}

/* Collapse info grid when one language is hidden */
.info-content:has(.lang-en:not(.lang-hidden)):has(.lang-ar.lang-hidden) {
    grid-template-columns: 1fr;
}
.info-content:has(.lang-ar:not(.lang-hidden)):has(.lang-en.lang-hidden) {
    grid-template-columns: 1fr;
}
.info-content .lang-hidden {
    display: none !important;
}

/* ========== FAQ ========== */
.faq-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.faq-section h3 {
    color: #0d6efd;
}

/* ========== LANGUAGE TOGGLE ========== */
.lang-toggle-wrapper {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}
.lang-toggle-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lang-toggle-btn:hover {
    background: #e0e0e0;
}
.lang-ar, .lang-en {
    transition: opacity 0.2s;
}
.lang-hidden {
    display: none !important;
}
.lang-ar[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
.lang-en {
    direction: ltr;
    text-align: left;
}

/* ========== FLOATING WHATSAPP (NEW) ========== */
.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white !important;
    padding: 16px 22px;
    border-radius: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.25s;
}
.floating-wa:hover {
    background: #128C7E;
    transform: scale(1.05);
    color: white;
}
.floating-wa span {
    font-size: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .info-content {
        grid-template-columns: 1fr;
    }
    .btn-group-lg {
        flex-direction: column;
        align-items: center;
    }
    .btn-latex {
        justify-content: center;
    }
    .floating-wa span {
        display: none;                              /* hide text on mobile, icon only */
    }
    .floating-wa {
        padding: 16px 20px;
        bottom: 15px;
        right: 15px;
    }
}

/* ========== MISC ========== */
.course-detail h2 {
    margin-bottom: 0.5rem;
}
.bg-light-purple {
    background-color: #e6d9ff;
    color: #4b2e83;
}

@media (max-width: 768px) {
    .info-header {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .info-header .badge {
        white-space: normal;
        word-break: break-word;
        display: block;               /* force full width */
        width: 100%;
        max-width: 100%;
        font-size: 0.75rem;
        text-align: center;
        margin-left: 0 !important;     /* remove Bootstrap's ms-2 left margin */
        margin-top: 6px;               /* spacing from the title */
    }
    /* Optional: keep icon and title aligned nicely */
    .info-header .info-icon,
    .info-header .lang-en,
    .info-header .lang-ar {
        display: inline-block;
    }
}

