/* ==========================================
   CRD Website - Resources of Development
   Design System
   Colors: Orange #F15A24 | Purple #4B2991
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700;900&family=Poppins:wght@300;400;500;600;700;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --orange: #F15A24;
    --orange-dark: #d44e1e;
    --orange-light: #ff7a4d;
    --orange-glow: rgba(241, 90, 36, 0.4);
    --purple: #4B2991;
    --purple-dark: #2a1660;
    --purple-light: #6b3ec0;
    --purple-glow: rgba(75, 41, 145, 0.4);
    --white: #ffffff;
    --off-white: #f8f9fc;
    --light-gray: #f0f2f7;
    --text-dark: #1a1a2e;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 10px 40px rgba(75, 41, 145, 0.08);
    --shadow-hover: 0 20px 50px rgba(75, 41, 145, 0.15);
    --shadow-orange: 0 10px 40px rgba(241, 90, 36, 0.25);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ar);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

body[lang="en"] { font-family: var(--font-en); }

/* RTL/LTR */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="ltr"] { direction: ltr; text-align: left; }

/* ---- Utility ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center !important; }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

img { max-width: 100%; height: auto; }

.public-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.public-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    max-width: 500px;
}

.public-search-input-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 480px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.expert-form-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.15);
}

.expert-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--text-gray); font-size: 1.05rem; }

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(241,90,36,.12), rgba(75,41,145,.12));
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

body[lang="en"] .section-label { letter-spacing: 3px; }

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title span { color: var(--orange); }

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit; /* FIX: inherit font family */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: var(--white);
    box-shadow: 0 10px 30px var(--orange-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--orange-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-4px);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    padding: 12px 0;
}

.navbar.scrolled .nav-link { color: var(--text-dark); }
.navbar.scrolled .nav-logo-text { color: var(--text-dark); }
.navbar.scrolled .nav-hamburger { color: var(--text-dark); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img { height: 50px; object-fit: contain; }

.nav-logo-text {
    color: var(--white);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.2;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover { color: var(--orange); background: rgba(241,90,36,.08); }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-btn:hover { transform: scale(1.05); }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--purple-dark);
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero-shape-1 {
    width: 600px; height: 600px;
    background: rgba(241, 90, 36, 0.4);
    top: -150px; right: -150px;
}
.hero-shape-2 {
    width: 500px; height: 500px;
    background: rgba(107, 62, 192, 0.5);
    bottom: -100px; left: -100px;
    animation-delay: -4s;
}
.hero-shape-3 {
    width: 400px; height: 400px;
    background: rgba(255, 122, 77, 0.3);
    top: 40%; left: 40%;
    animation-delay: -8s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 140px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    color: var(--white);
    margin-bottom: 10px;
    animation: fadeInDown 0.8s 0.2s ease both;
    font-weight: 900;
}

.hero-title-ar {
    display: block;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    opacity: 0.85;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s 0.3s ease both;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.8);
    max-width: 680px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    animation: fadeInUp 1s 1s ease both;
}

.scroll-wheel {
    width: 26px; height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--orange);
    border-radius: 2px;
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* ---- About Section ---- */
.about { background: var(--off-white); overflow-x: clip; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-logo-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.about-logo-box::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(241,90,36,.08) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo-box::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(75,41,145,.08) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo-box img { max-width: 280px; width: 100%; position: relative; z-index: 1; }

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-orange);
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 2;
}

.about-badge span { font-size: 0.8rem; display: block; font-weight: 500; opacity: 0.9; }

[dir="ltr"] .about-badge { right: auto; left: 30px; }

.about-text { padding: 20px 0; }
.about-text h2 { color: var(--text-dark); margin-bottom: 20px; }
.about-text p { margin-bottom: 30px; font-size: 1.05rem; }

.accred-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.accred-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    border-right: 4px solid var(--orange);
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

[dir="ltr"] .accred-card { border-right: none; border-left: 4px solid var(--orange); }

.accred-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.accred-card h4 { color: var(--text-dark); font-size: 0.95rem; margin-bottom: 6px; }
.accred-card p { font-size: 0.85rem; color: var(--text-gray); }

.accred-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--white); /* FIX: icons inside accred are white */
}

.accred-icon i { color: var(--white) !important; }

/* ---- Stats Section ---- */
.stats {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(241,90,36,.2) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.13);
}

.stat-number {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--orange-light);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 500;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 10px var(--orange));
}

/* ---- Services Section ---- */
.services { background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 41, 145, 0.2);
}

.service-icon-wrap {
    width: 70px; height: 70px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px var(--orange-glow);
}

.service-card h3 { color: var(--text-dark); margin-bottom: 12px; font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; color: var(--text-gray); }

/* ---- Course & Exam Cards ---- */
.modern-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 41, 145, 0.2);
}

.modern-card-header {
    height: 6px;
    background: linear-gradient(90deg, var(--orange), var(--purple));
}

.modern-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card .badge {
    background: rgba(75, 41, 145, 0.08);
    color: var(--purple);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
    align-self: flex-start;
}

.modern-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.modern-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.modern-card-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.modern-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--orange);
    font-size: 1.2rem;
}
.contact { background: var(--off-white); overflow-x: clip; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white); /* FIX: contact icons are white */
}

.contact-item-icon i { color: var(--white) !important; }

.contact-item-text strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item-text span, .contact-item-text a {
    color: var(--text-gray);
    font-size: 1rem;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item-text a:hover { color: var(--orange); }

.contact-map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map-wrap iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-label {
    background: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.map-label-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white); /* FIX: map icon is white */
}

.map-label-icon i { color: var(--white) !important; }

/* ---- Footer ---- */
.footer {
    background: linear-gradient(135deg, var(--purple-dark), #1a1040);
    color: rgba(255,255,255,0.8);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(241,90,36,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-brand img { height: 55px; margin-bottom: 20px; }

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 35px; height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    border-radius: 2px;
}

[dir="ltr"] .footer-title::after { right: auto; left: 0; }

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--orange);
    font-size: 1.1rem;
}

.footer-links a:hover { color: var(--orange); transform: translateX(-4px); }
[dir="ltr"] .footer-links a:hover { transform: translateX(4px); }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover { color: var(--orange); }

.footer-contact-icon {
    width: 32px; height: 32px;
    background: rgba(241,90,36,.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: var(--orange-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.footer-bottom-text { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

.dev-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.dev-credit img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--white);
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: var(--transition);
}

.dev-credit img:hover {
    transform: scale(1.1);
}

/* ---- Animations (AOS Supplement) ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 998;
    text-decoration: none;
}

.back-to-top:hover { transform: translateY(-4px) scale(1.1); }
.back-to-top.visible { display: flex; }

[dir="ltr"] .back-to-top { left: auto; right: 30px; }

/* ---- Mobile Navigation ---- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 13, 70, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.open { display: flex; }

.mobile-menu-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

[dir="ltr"] .mobile-menu-close { left: auto; right: 24px; }

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-nav-link:hover { color: var(--orange); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrap { max-width: 500px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-hamburger { display: flex; }
    .navbar { padding: 12px 0; }
    .nav-logo img { height: 42px; }
    .hero-content { padding: 100px 0 60px; }
    .hero-scroll { display: none; }
    .hero-badge { padding: 8px 16px; font-size: 0.82rem; }
    .hero-sub { font-size: 1rem; margin-bottom: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .accred-cards { grid-template-columns: 1fr; }
    .about-logo-box { padding: 28px 24px; }
    .about-badge { position: static; display: inline-block; margin-top: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-cta-group { flex-direction: column; }
    .section-pad { padding: 70px 0; }
    .container { padding: 0 18px; }
    .public-topbar { align-items: flex-start; margin-bottom: 28px; }
    .public-search-form { width: 100%; max-width: none; flex-direction: column; }
    .listing-grid { grid-template-columns: 1fr; gap: 24px; }
    .modern-card-body { padding: 24px 20px; }
    .modal-card { width: 94%; padding: 24px 18px; }
    .modal-actions { flex-direction: column; }
    .modal-actions > * { width: 100% !important; flex: initial !important; }
    .expert-form-card { padding: 24px 18px; }
    .expert-form-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 22px 18px; }
    .contact-map-wrap iframe { height: 320px; }
    .map-label { padding: 16px 18px; }
    .back-to-top { width: 46px; height: 46px; bottom: 18px; left: 18px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-item { padding: 20px 12px; }
    .service-card { padding: 24px 20px; }
    h2 { font-size: 1.7rem; }
    .hero-content { padding: 90px 0 48px; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .hero-title-ar { font-size: 1.15rem; }
    .mobile-menu { padding: 90px 24px 30px; gap: 18px; }
    .mobile-nav-link { font-size: 1.2rem; }
    .listing-grid { gap: 18px; }
    .modern-card-body { padding: 20px 16px; }
    .modern-card .badge { font-size: 0.74rem; }
    .contact-item { gap: 12px; padding: 14px 0; }
    .contact-item-icon { width: 44px; height: 44px; }
    .contact-map-wrap iframe { height: 280px; }
}
