body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: transparent;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
    -webkit-text-size-adjust: 100%; /* Prevents iOS from auto-zooming text */
}

/* ARABIC FONT OVERRIDE */
html[dir="rtl"] body { font-family: 'Tajawal', sans-serif; }

/* --- 2. ROLE TOGGLE (Absolute Priority Fix) --- */
body.role-employee .student-only,
body.role-employee span.student-only,
body.role-employee div.student-only,
body.role-employee p.student-only,
body.role-employee h3.student-only { display: none !important; }

body.role-student .employee-only,
body.role-student span.employee-only,
body.role-student div.employee-only,
body.role-student p.employee-only,
body.role-student h3.employee-only { display: none !important; }

.not-ready { display: none !important; }

/* --- 3. MODERN BUTTONS (Glassmorphism) --- */
.modern-btn, .lang-segment {
    -webkit-appearance: none; /* Removes default iOS button styling */
    appearance: none;
}
.modern-btn {
    background: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: white; padding: 8px 22px; border-radius: 30px; 
    cursor: pointer; font-weight: 600; font-family: inherit;
    display: inline-flex; align-items: center; gap: 10px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    white-space: nowrap; font-size: 0.95rem;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.modern-btn:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.modern-btn i { font-size: 1.1rem; }

/* --- 4. LANDING PAGE STYLES --- */
.landing-page {
    position: fixed; top: 0; left: 0; width: 100%; 
    height: 100%; min-height: 100dvh; /* dynamic viewport fixes the iOS bottom bar issue */
    z-index: 3000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s; 
    overflow-y: auto; /* Allows scrolling on very small/short screens */
    overflow-x: hidden; 
    
    /* Background Layering */
    background-color: #8a0630;
    background-image: 
        linear-gradient(135deg, rgba(171, 10, 61, 0.9) 0%, rgba(138, 6, 48, 0.96) 100%),
        url('images/logo_overlay.png'),
        url('images/logo_overlay.png');
    background-position: 0 0, -15% 115%, 110% -10%; 
    background-size: 100% 100%, 650px, 450px;
    background-repeat: no-repeat;
}


/* Landing Decorative Solid Circles */
.landing-page::before {
    content: ''; position: absolute; top: -10%; right: -5%;
    width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
    background: rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none;
}
.landing-page::after {
    content: ''; position: absolute; bottom: -15%; left: -10%;
    width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
    background: rgba(255,255,255,0.03); border-radius: 50%; pointer-events: none;
}

.landing-page.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.landing-lang-container { position: absolute; top: 40px; right: 50px; z-index: 100; }
html[dir="rtl"] .landing-lang-container { right: auto; left: 50px; }

.landing-content { 
    text-align: center; color: white; animation: fadeIn 0.8s ease; 
    position: relative; z-index: 2; width: 90%; max-width: 800px; 
    padding: 80px 10px 40px 10px;
    box-sizing: border-box;
}
.landing-logo { height: 100px; width: auto; margin-bottom: 30px; filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.2)); }
.landing-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 40px; text-shadow: 0 4px 10px rgba(0,0,0,0.15); display: block;}

/* Language Selector Pill */
.language-selector { margin-bottom: 50px; display: flex; justify-content: center; }
.lang-segmented-control { display: inline-flex; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px; padding: 5px; backdrop-filter: blur(12px); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.lang-segment { background: transparent; border: none; color: rgba(255, 255, 255, 0.7); padding: 8px 30px; border-radius: 25px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
.lang-segment:hover { color: white; }
.lang-segment.active { background: white; color: #ab0a3d; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.landing-cards { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.role-card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 40px; width: 200px; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.role-card:hover { background: white; color: #ab0a3d; transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.25); }
.role-card:hover .role-icon { color: #ab0a3d; }
.role-icon { font-size: 3.5rem; margin-bottom: 20px; color: white; transition: color 0.3s ease; }
.role-text { font-size: 1.3rem; font-weight: 700; }


/* --- 5. DYNAMIC HEADER --- */
.header {
    padding: 0 40px; position: fixed; width: 100%; top: 0; min-height: 80px; 
    box-sizing: border-box; z-index: 1000; transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(171, 10, 61, 0.3); display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; overflow: hidden; 
    
    /* Header Background Layering */
    background-color: #8a0630;
    background-image: 
        linear-gradient(135deg, rgba(171, 10, 61, 0.9) 0%, rgba(138, 6, 48, 0.96) 100%),
        url('images/logo_overlay.png');
    background-position: 0 0, 75% -120px;
    background-size: 100% 100%, 350px;
    background-repeat: no-repeat;
}

/* Header Decorative Circles */
.header::before {
    content: ''; position: absolute; top: -40px; right: 5%;
    width: 150px; height: 150px; background: rgba(255,255,255,0.06);
    border-radius: 50%; transition: opacity 0.4s ease; pointer-events: none;
}
.header::after {
    content: ''; position: absolute; bottom: -50px; left: 15%;
    width: 120px; height: 120px; background: rgba(255,255,255,0.04);
    border-radius: 50%; transition: opacity 0.4s ease; pointer-events: none;
}

.header > div { position: relative; z-index: 2; }
.header-left-group { display: flex; align-items: center; gap: 20px; height: 100%; }
.header img { height: 50px; width: auto; transition: all 0.3s; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.header-divider { height: 35px; width: 2px; background-color: rgba(255,255,255,0.3); transition: background-color 0.3s; margin: 0 20px; }

.header-text { display: flex; flex-direction: column; justify-content: center; color: white; margin-right: auto; margin-left: 20px; align-items: flex-start; text-align: left; }
html[dir="rtl"] .header-text { margin-right: 20px; margin-left: auto; align-items: flex-start; text-align: right; }

.header-text h1 { margin: 0; font-size: 1.6rem; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-text span { font-size: 1rem; opacity: 0.9; font-weight: 300; }
.header-actions { display: flex; align-items: center; gap: 15px; }

/* Scrolled State */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px) saturate(180%); -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08); color: #ab0a3d;
}
.header.scrolled::before, .header.scrolled::after { opacity: 0; }
.header.scrolled .header-text h1 { text-shadow: none; color: #ab0a3d; }
.header.scrolled .header-text span { color: #ab0a3d; font-weight: 500; }
.header.scrolled .header-divider { background-color: rgba(171, 10, 61, 0.2); }
.header.scrolled img { filter: brightness(0) saturate(100%) invert(13%) sepia(65%) saturate(4765%) hue-rotate(334deg) brightness(87%) contrast(96%); }
.header.scrolled .modern-btn { color: #ab0a3d; border-color: rgba(171, 10, 61, 0.2); background: rgba(171, 10, 61, 0.05); box-shadow: none; }
.header.scrolled .modern-btn:hover { background: rgba(171, 10, 61, 0.1); }


/* --- 6. MAIN CONTENT AREA --- */
.main-container { display: flex; margin-top: 80px; flex: 1; position: relative; }
.content-area { width: 100%; padding: 50px 40px; box-sizing: border-box; max-width: 1400px; margin: 0 auto; }
.tab-content { animation: fadeUp 0.4s ease; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 40px;}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h2 { color: #ab0a3d; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; margin-top: 0; font-size: 1.8rem; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
h3 { color: #222; margin-top: 30px; font-size: 1.3rem; font-weight: 600; }
p, li { line-height: 1.7; color: #555; margin-bottom: 15px; }


/* --- 7. WELCOME HERO & DASHBOARD --- */
.welcome-hero {
    border-radius: 16px; padding: 50px 30px; color: white; text-align: center;
    margin-bottom: 50px; box-shadow: 0 10px 30px rgba(171, 10, 61, 0.2);
    position: relative; overflow: hidden;
    
    /* Welcome Background Layering */
    background-color: #8a0630;
    background-image: 
        linear-gradient(135deg, rgba(171, 10, 61, 0.88) 0%, rgba(138, 6, 48, 0.95) 100%),
        url('images/logo_overlay.png'),
        url('images/logo_overlay.png');
    background-position: 0 0, -20px 140%, 105% -40px;
    background-size: 100% 100%, 450px, 280px;
    background-repeat: no-repeat;
}
.welcome-hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.welcome-hero::after { content: ''; position: absolute; bottom: -50%; left: -10%; width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%; }

.welcome-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 50%; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.2); position: relative; z-index: 2; }
.welcome-icon-wrapper i { font-size: 2.5rem; color: white; }
.welcome-title { color: white; border: none; margin: 0 0 15px 0; font-size: 2.5rem; font-weight: 800; justify-content: center; position: relative; z-index: 2; }
.welcome-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 650px; margin: 0 auto; line-height: 1.6; font-weight: 300; position: relative; z-index: 2; }

.dashboard-section-title { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; color: #222; margin: 50px 0 25px 0; }
.dashboard-section-title i { color: #ab0a3d; margin-inline-end: 12px; font-size: 1.3rem; }
.dashboard-section-title::after { content: ''; flex: 1; height: 2px; background-color: #eaeaea; margin-inline-start: 20px; border-radius: 2px; }


/* --- 8. IMAGES SIZING FIX (Global Optimization) --- */
.guide-image { 
    max-width: 100%; 
    width: auto;           
    max-height: 450px;     
    object-fit: contain; 
    border-radius: 8px; 
    border: 1px solid #e0e0e0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    display: block; 
    margin: 25px auto; 
}


/* --- 9. COMPONENT BOXES --- */
.box { background-color: #fff5f7; padding: 20px 25px; margin: 25px 0; margin-bottom: 100px; border-radius: 8px; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2); }
.highlight-box { background-color: #fff5f7; padding: 20px 25px; margin: 25px 0; border-radius: 8px; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.05); border-inline-start: 5px solid #ab0a3d; }
.info-box { background-color: #f8f9fa; padding: 20px 25px; margin: 25px 0; border-radius: 8px; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.05); border-inline-start: 5px solid #ab0a3d; }
.alert-box { background-color: #fff3cd; padding: 20px 25px; margin: 25px 0; border-radius: 8px; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.05); border-inline-start: 5px solid #fd7e14; color: #856404; }
.critical-box { background-color: #f8d7da; padding: 20px 25px; margin: 25px 0; border-radius: 8px; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.05); border-inline-start: 5px solid #dc3545; color: #721c24; }

.time-alert-box { display: flex; align-items: center; background-color: #fffdf5; border: 2px solid #eee; border-inline-start: 8px solid #ab0a3d; padding: 25px; margin: 30px 0; border-radius: 8px; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1); }
.time-badge { background-color: #ab0a3d; color: white; padding: 15px 25px; border-radius: 8px; text-align: center; margin-inline-end: 25px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(171, 10, 61, 0.3); }
.time-badge .number { font-size: 3rem; font-weight: 900; line-height: 1; display: block; }
.time-badge .text { font-size: 0.95rem; text-transform: uppercase; font-weight: bold; letter-spacing: 2px; margin-top: 5px; display: block; }
.time-alert-content h4 { margin-top: 0; color: #ab0a3d; font-size: 1.5rem; margin-bottom: 10px; border-bottom: none; padding-bottom: 0; }
.time-alert-content p { margin: 0; color: #333; font-size: 1.1rem; }


/* --- 10. GRIDS & CARDS --- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.app-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 25px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.app-card:hover { transform: translateY(-4px); border-color: #ab0a3d; box-shadow: 0 8px 15px rgba(171, 10, 61, 0.1); }
.app-icon { font-size: 2.5rem; margin-bottom: 15px; }
.word { color: #2b579a; } .excel { color: #217346; } .ppt { color: #b7472a; } .outlook { color: #0078d4; } .onedrive { color: #0078d4; } .onenote { color: #7719aa; }
.app-card h4 { margin: 10px 0; font-size: 1.2rem; color: #333; }
.card-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-card { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: #f0f0f0; color: #333; padding: 10px 15px; border-radius: 6px; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: 0.2s; }
.btn-card:hover { background-color: #ab0a3d; color: #fff; }
.btn-primary { background-color: #333; color: #fff; }

/* --- SUPPORT TAB STYLES --- */
.support-grid { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px;}
.support-card { flex: 1 1 300px; background: #fdfdfd; border: 1px solid #eaeaea; padding: 30px; border-radius: 12px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; box-sizing: border-box; }
.support-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(171, 10, 61, 0.1); border-color: #ab0a3d;}
.support-title { font-size: 1.3rem; font-weight: 700; color: #ab0a3d; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.contact-item { display: flex; align-items: center; margin-bottom: 15px; font-size: 1.05rem; }
.contact-item i { width: 30px; color: #ab0a3d; }
.map-container { width: 100%; height: 350px; background-color: #e9e9e9; margin-top: 20px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }


/* --- 11. VERTICAL LOGIN STEPS DESIGN --- */
.login-steps-container { display: flex; flex-direction: column; gap: 25px; margin-top: 30px; }
.login-step-row { display: flex; background: #fff; border-radius: 12px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05); overflow: hidden; border: 1px solid #eaeaea; transition: transform 0.3s ease; }
.login-step-row:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(171, 10, 61, 0.15); border-color: #ab0a3d; }
.login-step-content { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background-color: #ab0a3d; color: #fff; font-size: 1.3rem; font-weight: 900; border-radius: 50%; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(171, 10, 61, 0.3); }
.login-step-content h4 { color: #ab0a3d; margin: 0 0 15px 0; font-size: 1.4rem; border: none; padding: 0; }
.login-step-content p { margin: 0; color: #555; font-size: 1.1rem; line-height: 1.6; }

.login-step-image { flex: 1.2; background-color: #f8f9fa; display: flex; align-items: center; justify-content: center; padding: 30px; border-inline-start: 1px solid #eaeaea; }
.login-step-image img { max-width: 100%; width: auto; max-height: 250px; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border: 1px solid #eee; margin: 0 auto; display: block; }
.forgot-pwd-box { margin-top: 25px; padding: 15px; background-color: #fffdf5; border-inline-start: 4px solid #C5B358; border-radius: 6px; font-size: 0.95rem; }


/* --- 12. MFA LANDSCAPE STEPS --- */
.mfa-landscape { display: flex; justify-content: space-between; align-items: stretch; gap: 15px; margin: 40px 0; position: relative; }
.mfa-landscape::before { content: ''; position: absolute; top: 25px; left: 50px; right: 50px; height: 4px; background-color: #ab0a3d; z-index: 1; }
.mfa-step-card { flex: 1; background: #fff; border: 2px solid #eee; border-radius: 8px; padding: 40px 20px 20px; text-align: center; position: relative; z-index: 2; box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1); }
.mfa-step-card .step-num { width: 50px; height: 50px; background: #ab0a3d; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; position: absolute; top: -25px; left: 50%; transform: translateX(-50%); border: 4px solid #fff; }
.mfa-step-card h4 { color: #ab0a3d; margin-top: 0; margin-bottom: 15px; font-size: 1.2rem; }
.mfa-step-card p { font-size: 0.95rem; color: #555; margin-bottom: 0; }


/* --- 13. INSPERA / CANVAS TYPOGRAPHY --- */
.inspera-table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
.inspera-table th { background-color: #ab0a3d; color: white; text-align: left; padding: 15px; }
html[dir="rtl"] .inspera-table th { text-align: right; }
.inspera-table td { border-bottom: 1px solid #e0e0e0; padding: 15px; }
.inspera-table tr:nth-child(even) { background-color: #f8f9fa; }
.inspera-code { background-color: #f1f3f5; padding: 3px 6px; border-radius: 4px; color: #dc3545; font-family: Consolas, monospace; }

.inspera-subheading { color: #ab0a3d; font-size: 1.6rem; margin-top: 40px; margin-bottom: 15px; display: flex; align-items: center; background-color: transparent; padding: 10px; border-radius: 4px; font-weight: bold; }
.inspera-h4 { color: #444; font-size: 1.2rem; margin-top: 25px; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.screenshot-caption { font-style: italic; color: #6c757d; font-size: 0.95rem; text-align: center; display: block; margin-bottom: 40px; }


/* --- FOOTER --- */
.footer { background-color: #333333; color: #ffffff; text-align: center; padding: 20px; font-size: 14px; margin-top: auto; position: relative; z-index: 1001; }


/* ==========================================================================
   14. MOBILE RESPONSIVENESS (Grid Header Fix & Resizing)
   ========================================================================== */
@media screen and (max-width: 900px) {
    .header { 
        display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
        gap: 15px 10px; padding: 15px 20px; align-items: center; min-height: auto;
    }
    .header-left-group { grid-column: 1; grid-row: 1; display: flex; align-items: center; }
    .header-actions { grid-column: 2; grid-row: 1; margin: 0; justify-self: end; }
    html[dir="rtl"] .header-actions { margin: 0; justify-self: start; }

    .header-actions .modern-btn span { display: none !important; }
    .header-actions .modern-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
    .header-actions .modern-btn i { margin: 0; }
    
    .header-text { 
        grid-column: 1 / -1; grid-row: 2; 
        display: flex !important; flex-direction: column !important;
        align-items: center !important; text-align: center !important; 
        margin: 0 !important; padding-top: 15px !important; 
        border-top: 1px solid rgba(255,255,255,0.2); 
    }
    html[dir="rtl"] .header-text { align-items: center !important; text-align: center !important; }
    
    .header-text h1 { font-size: 1.3rem; }
    .header-text span { font-size: 0.95rem; }
    .header-divider { display: none; }
    
    .main-container { margin-top: 150px; } 
    .content-area { padding: 20px 15px; width: 100%;}
    .tab-content { padding: 25px 20px; }
    h2 { font-size: 1.5rem; }

    .time-alert-box { flex-direction: column; text-align: center; }
    .time-badge { margin: 0 0 20px 0 !important; }
    .mfa-landscape { flex-direction: column; gap: 50px; }
    .mfa-landscape::before { display: none; }
    
    .login-step-row { flex-direction: column; }
    .login-step-image { border-inline-start: none; border-top: 1px solid #eaeaea; padding: 20px; }
    .login-step-content { padding: 30px 20px; }
}

/* Dedicated Smartphone Targeting */
@media screen and (max-width: 600px) {
    .landing-lang-container { top: 20px; right: 20px; }
    html[dir="rtl"] .landing-lang-container { left: 20px; right: auto; }
    
    /* Shrink elements so they fit without pushing edges */
    .landing-logo { height: 75px; margin-bottom: 20px; margin-top: 0; }
    .landing-title { font-size: 1.5rem; margin-bottom: 25px; }
    html[dir="rtl"] .landing-title span.ar { font-size: 1.3rem !important; }
    .language-selector { margin-bottom: 30px; }

    .landing-cards { gap: 15px; flex-direction: row; flex-wrap: wrap; }
    
    /* Slimmer role cards */
    .role-card { padding: 25px 15px; width: 130px; }
    .role-icon { font-size: 2.5rem; margin-bottom: 15px; }
    .role-text { font-size: 1.05rem; }
}

@media screen and (max-width: 400px) {
    .modern-btn { padding: 6px 12px; font-size: 0.85rem; }
    /* Stack cards vertically on VERY small screens like iPhone SE */
    .landing-cards { flex-direction: column; align-items: center; margin: 0; }
    .role-card { width: 180px; padding: 20px; }
}


/* ==========================================================================
   15. LANGUAGE UTILITY (Safe Logic)
   ========================================================================== */
.ar { display: none; }
.en { display: inline-block; 
vertical-align: top;}

p.en, div.en, h2.en, h3.en, h4.en { display: block; }
h2.en { display: flex; }

html[dir="rtl"] .en { display: none !important; }
html[dir="rtl"] .ar { display: inline-block; 
vertical-align: top;}

html[dir="rtl"] p.ar, html[dir="rtl"] div.ar, html[dir="rtl"] h2.ar, html[dir="rtl"] h3.ar, html[dir="rtl"] h4.ar { display: block; }
html[dir="rtl"] h2.ar { display: flex; }

/* Flip back arrow for Arabic */
html[dir="rtl"] .fa-arrow-left { transform: rotate(180deg); }

.content-area .modern-btn:hover {
    background: rgba(171, 10, 61, 0.1) !important;
    box-shadow: 0 4px 12px rgba(171, 10, 61, 0.1);
}

/* ========================================== */
/* URGENT ANNOUNCEMENT PULSE EFFECT           */
/* ========================================== */
@keyframes maroonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(171, 10, 61, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(171, 10, 61, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(171, 10, 61, 0);
    }
}

.urgent-pulse {
    animation: maroonPulse 1s infinite;
    /* Optional: brightens the left border slightly to match the pulse */
    border-inline-start: 10px solid #d41b51 !important; 
}