/* ===== TrueVision corporate site ===== */
:root {
    --tv-primary: #009FE3;
    --tv-dark: #0B0F14;
    --tv-soft: #F3F8FC;
    --tv-text: #1d2733;
    --tv-muted: #6b7785;
    --radius: 18px;
}
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: 'Poppins', 'Cairo', system-ui, sans-serif; color: var(--tv-text); font-size: 16px; }
body.lang-ar { font-family: 'Cairo', 'Poppins', system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--tv-dark); }
a { color: var(--tv-primary); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--tv-primary) 80%, #000); }
.text-tv { color: var(--tv-primary) !important; }
.bg-soft { background: var(--tv-soft); }
.lang-ar .flip-rtl { display: inline-block; transform: scaleX(-1); }

/* Buttons */
.btn-tv { background: var(--tv-primary); color: #fff; border: 0; border-radius: 50px; padding: .6rem 1.5rem; font-weight: 600; transition: .2s; }
.btn-tv:hover, .btn-tv:focus { background: color-mix(in srgb, var(--tv-primary) 82%, #000); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--tv-primary) 35%, transparent); }
.btn-outline-dark, .btn-light { border-radius: 50px; padding: .6rem 1.5rem; font-weight: 600; }
.btn-sm.btn-tv { padding: .45rem 1.1rem; }
.link-tv { font-weight: 600; }

/* Top bar & nav */
.topbar { background: var(--tv-dark); color: #c9d3dd; font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #c9d3dd; }
.topbar a:hover { color: #fff; }
.topbar .social a { font-size: .95rem; }
.lang-switch { border: 1px solid rgba(255,255,255,.25); border-radius: 50px; padding: .15rem .8rem; }
.lang-switch-sm { font-weight: 700; border: 1px solid #dfe6ee; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--tv-dark); }
.main-nav { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 2px 18px rgba(11,15,20,.06); padding: .7rem 0; }
.main-nav .navbar-brand img { height: 46px; width: auto; }
.main-nav .nav-link { color: var(--tv-dark); font-weight: 600; padding: .5rem .9rem !important; position: relative; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--tv-primary); }
.main-nav .dropdown-menu { border: 0; border-radius: 14px; box-shadow: 0 14px 40px rgba(11,15,20,.12); padding: .5rem; }
.main-nav .dropdown-item { border-radius: 8px; padding: .5rem .9rem; font-weight: 500; }
.main-nav .dropdown-item:hover { background: var(--tv-soft); color: var(--tv-primary); }
.navbar-toggler { border: 0; font-size: 1.8rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (min-width: 992px) { .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

/* Hero */
.hero .carousel-item { height: min(84vh, 720px); min-height: 480px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lang-ar .hero-bg { transform: scaleX(-1); } /* mirror artwork so it sits opposite the Arabic text */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,15,20,.88) 0%, rgba(11,15,20,.55) 55%, rgba(11,15,20,.15) 100%); }
.lang-ar .hero-overlay { background: linear-gradient(-100deg, rgba(11,15,20,.88) 0%, rgba(11,15,20,.55) 55%, rgba(11,15,20,.15) 100%); }
.hero-content { position: relative; height: 100%; display: flex; align-items: center; color: #fff; z-index: 2; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-content p { font-size: 1.15rem; color: #d7e2ec; margin-bottom: 2rem; max-width: 560px; }
.carousel-item.active .hero-content > div { animation: heroIn .9s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 90px 0; }
.eyebrow { display: inline-block; color: var(--tv-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .6rem; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow.light { color: #7fd3f7; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.about-visual img { box-shadow: 0 30px 60px rgba(0,159,227,.15); }
.pillar { background: #fff; border: 1px solid #e8eef4; border-radius: var(--radius); padding: 2rem; transition: .25s; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11,15,20,.08); border-color: transparent; }
.pillar-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--tv-primary), #0a6fa8); margin-bottom: 1rem; }
.pillar-icon.lg { width: 84px; height: 84px; font-size: 2.3rem; border-radius: 22px; }
.vm-row { background: var(--tv-soft); border-radius: var(--radius); padding: 1.5rem; }

/* CEO */
.ceo-section { background: radial-gradient(circle at 15% 20%, rgba(0,159,227,.35), transparent 45%), var(--tv-dark); color: #d7e2ec; }
/* CEO portrait: rounded photo with gradient border and soft glow */
.ceo-photo { position: relative; width: 360px; max-width: 100%; margin: 0 auto; padding: 5px; border-radius: 28px; line-height: 0;
    background: linear-gradient(150deg, var(--tv-primary) 0%, rgba(0,159,227,.15) 40%, rgba(255,255,255,.08) 60%, var(--tv-primary) 100%); }
.ceo-photo::before { content: ""; position: absolute; inset: 8% -8% -6% -8%; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,159,227,.35) 0%, rgba(0,159,227,0) 70%); filter: blur(10px); }
/* whole photo shown at its own proportions – no cropping, no stretching */
.ceo-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 23px; background: #1a222c; image-rendering: auto; }
.ceo-photo.sm { width: 300px; background: linear-gradient(150deg, var(--tv-primary) 0%, rgba(0,159,227,.2) 45%, #e3eef6 60%, var(--tv-primary) 100%); box-shadow: 0 20px 45px rgba(11,15,20,.14); }
.ceo-photo.sm::before { display: none; }
.ceo-section .row { position: relative; z-index: 0; }
.ceo-quote { max-width: 680px; font-size: 1.25rem; line-height: 1.8; border-inline-start: 4px solid var(--tv-primary); padding-inline-start: 1.25rem; margin: 1.5rem 0; color: #eef4f8; font-style: italic; }
.lang-ar .ceo-quote, .lang-ar .quote-box { font-style: normal; } /* no fake italic for Arabic */
.ceo-sign { font-weight: 700; color: #fff; }
.ceo-sign.dark { color: var(--tv-dark); }
.ceo-card { background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11,15,20,.08); overflow: hidden; }
.quote-box { background: var(--tv-soft); border-inline-start: 5px solid var(--tv-primary); border-radius: 12px; padding: 1.25rem 1.5rem; font-size: 1.15rem; font-style: italic; margin-bottom: 1.5rem; }
.ceo-side { top: 110px; }

/* Projects */
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 35px rgba(11,15,20,.07); display: flex; flex-direction: column; transition: .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(11,15,20,.12); }
.project-card > .p-4 { display: flex; flex-direction: column; flex: 1; }
.project-cover { position: relative; height: 230px; }
.project-cover > img { width: 100%; height: 100%; object-fit: cover; }
.project-logo { position: absolute; bottom: -34px; inset-inline-start: 24px; width: 76px; height: 76px; background: #fff; border-radius: 18px; box-shadow: 0 10px 25px rgba(0,0,0,.12); display: grid; place-items: center; padding: 10px; }
.project-logo img { max-width: 100%; max-height: 100%; }
.project-logo.static { position: static; }
.project-cat { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); padding: .2rem .7rem; border-radius: 50px; margin-bottom: .6rem; }
.project-cat.light { background: rgba(255,255,255,.15); color: #fff; }
.project-hero { position: relative; padding: 110px 0 90px; background-size: cover; background-position: center; color: #fff; }
.project-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
.project-hero .breadcrumb a, .project-hero .breadcrumb-item.active, .project-hero .breadcrumb-item + .breadcrumb-item::before { color: #c9d6e2; }
.features-box { background: var(--tv-soft); border-radius: var(--radius); padding: 2rem; border-top: 5px solid var(--accent); }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: .55rem 0; display: flex; gap: .7rem; align-items: flex-start; border-bottom: 1px dashed #d8e2ea; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list i { color: var(--accent); margin-top: .15rem; }

/* Stats */
.stats-section { background: linear-gradient(120deg, var(--tv-primary), #0a5f92); color: #fff; padding: 70px 0; }
.stat i { font-size: 2rem; opacity: .85; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
.stat-label { opacity: .9; font-weight: 500; }

/* News */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #e8eef4; transition: .3s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 20px 40px rgba(11,15,20,.08); transform: translateY(-4px); }
.news-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card h5 a { color: var(--tv-dark); }
.news-card h5 a:hover { color: var(--tv-primary); }
.news-meta { display: flex; gap: .75rem; align-items: center; font-size: .85rem; color: var(--tv-muted); margin-bottom: .6rem; flex-wrap: wrap; }
.badge-tv { background: color-mix(in srgb, var(--tv-primary) 12%, #fff); color: var(--tv-primary); padding: .15rem .65rem; border-radius: 50px; font-weight: 600; font-size: .75rem; }
.side-news { display: flex; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid #edf1f5; color: var(--tv-dark); }
.side-news img { width: 90px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.share a { font-size: 1.3rem; margin-inline-start: .6rem; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; align-items: center; }
.partners img { height: 60px; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.partners a:hover img { filter: none; opacity: 1; }

/* Team */
.team-card { background: #fff; border: 1px solid #e8eef4; border-radius: var(--radius); padding: 1.75rem 1.25rem; transition: .25s; }
.team-card:hover { box-shadow: 0 20px 40px rgba(11,15,20,.08); }
.team-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid var(--tv-soft); }

/* CTA */
.cta { background: var(--tv-dark); color: #d7e2ec; padding: 55px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(0,159,227,.45), transparent 70%); inset-inline-end: -80px; top: -150px; }
.cta h3 { color: #fff; }
.cta .container { position: relative; z-index: 1; }

/* Page header */
.page-header { background: radial-gradient(circle at 85% 0%, rgba(0,159,227,.45), transparent 50%), var(--tv-dark); color: #d7e2ec; padding: 70px 0 60px; }
.page-header h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-header .breadcrumb a, .page-header .breadcrumb-item.active, .page-header .breadcrumb-item + .breadcrumb-item::before { color: #9fb1c2; }
.page-header .breadcrumb a:hover { color: #fff; }

/* Rich text */
.rich { line-height: 1.85; }
.rich img { max-width: 100%; height: auto; border-radius: 12px; }
.rich ul { padding-inline-start: 1.2rem; }
.rich li { margin-bottom: .35rem; }
.benefits ul { list-style: none; padding: 0; }
.benefits li::before { content: "\F26A"; font-family: "bootstrap-icons"; color: var(--tv-primary); margin-inline-end: .5rem; }

/* Careers */
.job-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid #e8eef4; border-radius: 14px; padding: 1.4rem 1.6rem; transition: .2s; }
.job-row:hover { border-color: var(--tv-primary); box-shadow: 0 10px 30px rgba(0,159,227,.1); }
.job-row h5 a { color: var(--tv-dark); }
.job-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; color: var(--tv-muted); font-size: .9rem; }
.job-meta i { color: var(--tv-primary); }
.general-apply { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--tv-soft); border-radius: var(--radius); padding: 2rem; }
.job-summary { background: var(--tv-soft); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 110px; }
.job-summary li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #dfe7ee; gap: 1rem; }
.job-summary li span { color: var(--tv-muted); }

/* Forms */
.form-card { background: #fff; border: 1px solid #e8eef4; border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 35px rgba(11,15,20,.05); }
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #dbe3eb; }
.form-control:focus, .form-select:focus { border-color: var(--tv-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--tv-primary) 18%, transparent); }
.form-label { font-weight: 600; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-info .ci { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-info .ci > i { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--tv-soft); color: var(--tv-primary); font-size: 1.35rem; }
.contact-info h6 { margin-bottom: .2rem; }
.contact-info p { margin: 0; color: var(--tv-muted); }
.contact-info .social a { background: var(--tv-soft); color: var(--tv-primary); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }

/* Footer */
.site-footer { background: var(--tv-dark); color: #aab6c3; padding: 80px 0 0; }
.footer-logo { height: 52px; width: auto; }
.site-footer h6 { color: #fff; margin-bottom: 1.2rem; font-size: 1.05rem; }
.site-footer a { color: #aab6c3; }
.site-footer a:hover { color: var(--tv-primary); }
.site-footer li { margin-bottom: .6rem; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact i { color: var(--tv-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.5rem 0; font-size: .9rem; text-align: center; }
.social { display: flex; gap: .5rem; }
.site-footer .social a, .social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.topbar .social a { width: auto; height: auto; background: none; }
.social a:hover { background: var(--tv-primary); color: #fff; }
.whatsapp-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(37,211,102,.4); z-index: 1000; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 767px) {
    .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
    .hero .carousel-item { min-height: 520px; }
}
@media (max-width: 991px) {
    .section { padding: 64px 0; }
    .main-nav .navbar-brand img { height: 38px; }
    .main-nav .navbar-collapse { padding: 1rem 0; }
    .ceo-photo { width: 300px; }
}
@media (max-width: 575px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
.page-item.active .page-link { background: var(--tv-primary); border-color: var(--tv-primary); }
.page-link { color: var(--tv-dark); }
.form-check-input:checked { background-color: var(--tv-primary); border-color: var(--tv-primary); }
