

.course-detail p,
.course-content p {
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

.course-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eaecef;
    color: #1e293b;
}



.bg-light-purple {
    background-color: #e6d9ff; /* soft light purple */
    color: #4b2e83; /* readable darker purple text */
}

.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-icon {
    font-size: 1.4rem;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-en {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
}

.info-ar {
    font-size: 1.25rem;
    line-height: 1.9;
    text-align: right;
    color: #444;
    background: rgba(0,0,0,0.02);
    padding: 12px;
    border-radius: 8px;
}

.info-ar p {
    margin-bottom: 8px;
}

.info-en p {
    margin-bottom: 8px;
}

.info-block a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.info-block a:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    .info-content {
        grid-template-columns: 1fr;
    }

    .info-ar {
        font-size: 1rem;
    }

    .info-en {
        font-size: 1rem;
    }
}

code, pre {
    max-height: 600px;
}
.related-items {
    list-style-type: none;
    padding: 0;
    max-height: 350px; /* adjust as needed */
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: transparent transparent; /* Firefox */
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}

/* Hide scrollbar visually but keep scroll functionality */
.related-items::-webkit-scrollbar {
    width: 6px;
}

.related-items::-webkit-scrollbar-track {
    background: transparent;
}

.related-items::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.related-items li {
    margin-bottom: 10px;
    font-size: 1.2rem;
    background-color: #f8f9fa;
    border-left: 5px solid #0d6efd;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.related-items li:hover {
    background-color: #e2e6ea;
}

.related-items a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: bold;
}

.related-items a:hover {
    text-decoration: underline;
}

.related-items .badge {
    margin-left: 10px;
    font-size: 0.9rem;
}

.exam-courses-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.exam-courses-list li {
    margin-bottom: 8px;
    font-size: 1.1rem;
    background-color: #e8f4fd;
    border-left: 4px solid #17a2b8;
    padding: 8px 12px;
    border-radius: 4px;
}

.exam-courses-list a {
    text-decoration: none;
    color: #17a2b8;
    font-weight: 500;
}

.exam-courses-list a:hover {
    text-decoration: underline;
    color: #138496;
}

.course-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}
    
.contact-card a:hover {
    background-color: #0056b3 !important;
}

.contact-card a:nth-of-type(2):hover {
    background-color: #128C7E !important;
}

@media (max-width: 768px) {
    .related-items::-webkit-scrollbar {
        display: none;
    }
    .related-items {
        scrollbar-width: none; /* Firefox */
    }
}

.new-pill {
    display: inline-block;
    background: #e71f10;
    color: rgb(246, 250, 13);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 8px;
    animation: newElastic 1.5s infinite;
}

@keyframes newElastic {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.18); }  /* stretch */
    45%  { transform: scale(0.94); }  /* recoil */
    60%  { transform: scale(1.08); }  /* bounce back */
    75%  { transform: scale(0.98); }  /* small settle */
    100% { transform: scale(1); }     /* back to normal */
}

/* ============================= */
/* SEO INTRO BLOCK               */
/* ============================= */
.seo-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
    padding: 14px 16px;
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
}

.seo-intro strong {
    color: #0d6efd;
}


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

.faq-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0d6efd;
}

.faq-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.faq-section strong {
    display: block;
    color: #212529;
    margin-bottom: 4px;
}


/* ============================= */
/* DOWNLOAD TITLE (SEO HEADING)  */
/* ============================= */
.download-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #198754;
    margin-bottom: 10px;
}

.wa-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease;
    margin: 15px 0;
}
.wa-float-btn:hover {
    transform: scale(1.02);
    color: white !important;
    background-color: #128C7E;
}

/* ============================= */
/* COMPACT HUB CALLOUT           */
/* ============================= */
.hub-compact {
    font-size: 1rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 0;
    margin: 25px 0 15px 0;
}
.hub-compact a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}
.hub-compact a:hover {
    text-decoration: underline;
    color: #0a58ca;
}

/* ============================= */
/* IMPROVED PDF BUTTON           */
/* ============================= */
.pdf-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    color: #fff;
    text-decoration: none;
}


/* ============================= */
/* STICKY DOWNLOAD (OPTIONAL)    */
/* ============================= */
.sticky-download {
    position: sticky;
    bottom: 10px;
    z-index: 10;
}


/* ============================= */
/* SMALL META INFO (READ TIME)   */
/* ============================= */
.meta-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 10px;
}


/* ============================= */
/* INTERNAL LINK PROMPT          */
/* ============================= */
.related-intro {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #444;
}

.related-intro strong {
    color: #0d6efd;
}

    figure {
    margin: 2rem 0;
    text-align: center;
}

    figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

figcaption {
    margin-top: 0.75rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    color: #2c3e50;
    font-style: italic;
    line-height: 1.5;

    /* Force wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}


/* ============================= */
/* RESPONSIVE TWEAKS             */
/* ============================= */
@media (max-width: 768px) {
    .seo-intro {
        font-size: 1rem;
    }

    .faq-section {
        padding: 15px;
    }

    .faq-section h3 {
        font-size: 1.2rem;
    }

    .pdf-download-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .info-header {
        flex-wrap: wrap;      /* allow badge to drop to a new line */
        row-gap: 8px;         /* space between lines */
    }

    .info-header .badge {
        white-space: normal;  /* override Bootstrap’s nowrap */
        word-break: break-word;
        display: inline-block;
        max-width: 100%;
        font-size: 0.75rem;   /* slightly smaller on mobile */
        text-align: center;
    }
}

