/* =============================================
   Why Malaysia Section Styles (wm- prefix)
   Section: لماذا يختار الطلاب الدراسة في ماليزيا
   ============================================= */

/* ---- Main Section Wrapper ---- */
.wm-section {
    padding: 70px 0 60px;
    background: #fff;
}

/* ---- Block spacing between the 3 sub-sections ---- */
.wm-block {
    margin-bottom: 60px;
}

.wm-block:last-child {
    margin-bottom: 0;
}

/* =============================================
   Block 1: Text-Only Intro
   ============================================= */
.wm-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wm-intro .wm-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color, #112d53);
    margin-bottom: 22px;
    line-height: 1.5;
}

.wm-intro .wm-desc {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-dark, #333);
    margin-bottom: 26px;
    text-align: right;
}

/* Bullet-list items within intro */
.wm-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wm-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
    padding: 14px 18px;
    background: var(--light-bg, #f8f9fa);
    border-radius: var(--border-radius, 8px);
    border-right: 4px solid var(--secondary-color, #da7900);
}

.wm-highlight-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--secondary-color, #da7900);
    margin-top: 3px;
}

.wm-highlight-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark, #333);
}

.wm-highlight-text strong {
    color: var(--primary-color, #112d53);
    font-weight: 700;
}

/* =============================================
   Blocks 2 & 3: Two-Column Layout (Text + Image)
   ============================================= */
.wm-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Reverse layout for Block 3 */
.wm-row--reverse {
    flex-direction: row-reverse;
}

/* ---- Text Column ---- */
.wm-content {
    flex: 1;
    min-width: 0;
}

.wm-content .wm-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color, #112d53);
    margin-bottom: 18px;
    line-height: 1.5;
}

.wm-content .wm-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wm-content .wm-title a:hover {
    color: var(--secondary-color, #da7900);
}

.wm-content .wm-desc {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-dark, #333);
    margin-bottom: 22px;
    text-align: right;
}

/* Bullet-list items in columns */
.wm-content .wm-highlights {
    gap: 14px;
}

.wm-content .wm-highlight-item {
    padding: 12px 16px;
}

/* ---- Image Column ---- */
.wm-image {
    flex: 1;
    min-width: 0;
}

.wm-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   Responsive Breakpoints
   =========================================== */

/* Tablet: stack columns */
@media (max-width: 1024px) {
    .wm-row,
    .wm-row--reverse {
        flex-direction: column;
        gap: 30px;
    }

    .wm-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .wm-section {
        padding: 60px 0 50px;
    }

    .wm-block {
        margin-bottom: 50px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .wm-section {
        padding: 45px 0 35px;
    }

    .wm-block {
        margin-bottom: 40px;
    }

    .wm-intro .wm-title,
    .wm-content .wm-title {
        font-size: 1.3rem;
    }

    .wm-intro .wm-desc,
    .wm-content .wm-desc {
        font-size: 0.93rem;
    }

    .wm-highlight-item {
        padding: 12px 14px;
    }

    .wm-highlight-text {
        font-size: 0.9rem;
    }

    .wm-row {
        gap: 24px;
    }
}
