/*
 Theme Name:   MSM Training Theme
 Theme URI:    https://msm-training.com
 Author:       MSM Development Team
 Author URI:   https://msm-training.com
 Description:  Professional custom theme for MSM Training Center — bilingual (EN/AR), Elementor compatible, Polylang integrated.
 Version:      1.0.0
 License:      GPL-2.0+
 License URI:  http://www.gnu.org/licenses/gpl-2.0.txt
 Text Domain:  msm-theme
 Requires at least: 6.0
 Requires PHP: 7.4
 Tags:         education, bilingual, rtl-language-support, custom-logo, custom-menu, featured-images
*/

/* === DESIGN TOKENS === */
:root {
    --msm-primary: #073606;
    --msm-primary-light: #0a5209;
    --msm-primary-dark: #052804;
    --msm-primary-rgb: 7, 54, 6;
    --msm-accent: #1a8917;
    --msm-accent-light: #e8f5e9;
    --msm-gold: #c5a55a;

    --msm-bg: #ffffff;
    --msm-bg-alt: #f8faf8;
    --msm-bg-section: #f5f7f5;

    --msm-text: #1a1a1a;
    --msm-text-light: #4a4a4a;
    --msm-text-muted: #888888;

    --msm-border: #e5e7e5;
    --msm-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --msm-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --msm-radius: 8px;
    --msm-radius-lg: 16px;

    --msm-font-en: 'Dubai', sans-serif;
    --msm-font-ar: 'Dubai', sans-serif;
    --msm-font: var(--msm-font-ar);

    --msm-transition: all 0.3s ease;
    --msm-header-height: 80px;
}

/* Arabic mode */
html[lang="ar"] :root,
html[dir="rtl"] :root {
    --msm-font: var(--msm-font-ar);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--msm-font) !important;
    color: var(--msm-text);
    background: var(--msm-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--msm-primary); text-decoration: none; transition: var(--msm-transition); }
a:hover { color: var(--msm-accent); }

h1, h2, h3, h4, h5, h6 {
    color: var(--msm-text);
    font-family: var(--msm-font) !important;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; color: var(--msm-text-light); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === SCREEN READER === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* === JOBS PAGE === */
.msm-page-breadcrumb {
    background-color: #f8faff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7e5;
}
.msm-page-breadcrumb .msm-breadcrumb {
    font-size: 14px;
    color: var(--msm-text-light);
}
.msm-page-breadcrumb .msm-breadcrumb a {
    color: var(--msm-text-light);
    text-decoration: none;
}
.msm-page-breadcrumb .msm-breadcrumb a:hover {
    color: var(--msm-primary);
}
.msm-page-breadcrumb .msm-breadcrumb__sep {
    margin: 0 10px;
    color: var(--msm-text-muted);
}
.msm-page-breadcrumb .msm-breadcrumb span:last-child {
    color: var(--msm-text);
}

.msm-section--jobs {
    padding: 60px 0;
    background-color: #ffffff;
}

.msm-jobs-intro {
    max-width: 900px;
    margin-bottom: 50px;
}
.msm-jobs-intro__title {
    color: var(--msm-primary-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}
.msm-jobs-intro p {
    color: var(--msm-text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.msm-jobs-intro p:last-child {
    margin-bottom: 0;
}
.msm-jobs-intro strong {
    color: var(--msm-text-light);
    font-weight: 600;
}

.msm-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .msm-jobs-grid {
        grid-template-columns: 1fr;
    }
}

.msm-job-card {
    background-color: #ffffff;
    border: 1px solid #e5e7e5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--msm-transition);
}
.msm-job-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #d1d5d1;
}
.msm-job-card__title {
    font-size: 18px;
    color: var(--msm-primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
.msm-job-card__link {
    font-size: 14px;
    color: var(--msm-text-light);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}
.msm-job-card__link:hover {
    color: var(--msm-primary);
}
