/* MEDmart — DGcom design adaptation.
   1) brand colour (#13ac90) replaces the template's blue in Bootstrap's compiled utilities,
   2) RTL/Arabic typography, 3) restyles the shared content blocks (.sec/.cc/.svc…) used by inner pages. */

:root {
    --primary: #13ac90;
    --primary-d: #0e907a;
    --primary-l: #2ec4a9;
    --brand: #13ac90;
    --brand-d: #0e907a;
    --brand-l: #2ec4a9;
    --lime: #13ac90;
    --dark: #252525;
    --dark2: #2f2f2f;
    --dark3: #3a3a3a;
    --soft: #f8f8f8;
}

body.dgcom {
    font-family: 'Open Sans', 'Cairo', system-ui, sans-serif;
    color: #6c757d;
    background: #fff;
    line-height: 1.6;
}
body.dgcom-rtl { font-family: 'Cairo', 'Open Sans', system-ui, sans-serif; }
body.dgcom img { display: inline-block; }
body.dgcom ul { list-style: none; padding: 0; }
body.dgcom h1, body.dgcom h2, body.dgcom h3, body.dgcom h4, body.dgcom h5, body.dgcom h6 { color: #252525; }

/* ---- Bootstrap compiled-colour overrides (template shipped #009CFF) ---- */
.dgcom .text-primary { color: var(--primary) !important; }
.dgcom .bg-primary { background-color: var(--primary) !important; }
.dgcom .border-primary { border-color: var(--primary) !important; }
.dgcom .btn-primary { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.dgcom .btn-primary:hover, .dgcom .btn-primary:focus, .dgcom .btn-primary:active { background-color: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.dgcom .btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.dgcom .btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.dgcom .form-control:focus, .dgcom .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(19, 172, 144, .25); }
.dgcom .progress-bar { background-color: var(--primary); }
.dgcom .page-link { color: var(--primary); }
.dgcom .page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); }
.dgcom a { color: inherit; }
.dgcom .navbar .navbar-nav .nav-link { color: #fff; }
.dgcom .navbar .navbar-nav .nav-link:hover, .dgcom .navbar .navbar-nav .nav-link.active { color: var(--dark); }
.dgcom .dropdown-item:hover, .dgcom .dropdown-item:focus, .dgcom .dropdown-item.active { background-color: var(--primary); color: #fff; }
.dgcom .section-title { color: var(--primary); }
.dgcom .section-title::before, .dgcom .section-title::after { background: var(--primary); }
.dgcom .img-border::before { border-color: var(--primary); }
.dgcom .project-carousel .owl-dot:hover, .dgcom .project-carousel .owl-dot.active { border-color: var(--primary); background: var(--primary); }

/* ---- Chrome ---- */
.dgcom-logo { height: 58px; width: auto; }
.dgcom-logo-light { filter: brightness(0) invert(1); height: 52px; }
.dgcom-soc { gap: 6px; }
.dgcom-soc a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(19, 172, 144, .5); color: var(--primary); transition: .3s; }
.dgcom-soc a:hover { background: var(--primary); color: #fff; }
.footer .dgcom-soc a { border-color: #6c757d; color: #adb5bd; }
.footer .dgcom-soc a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer .btn.btn-link { display: block; text-align: start; padding: 0; margin-bottom: 8px; color: #adb5bd; font-weight: 400; text-decoration: none; }
.footer .btn.btn-link:hover { color: #fff; }
.footer a { color: #adb5bd; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .copyright { padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.footer .copyright a { color: #fff; }
.footer.bg-dark { background: #252525 !important; }
.back-to-top { position: fixed; right: 30px; bottom: 30px; z-index: 99; }
.dgcom-rtl .back-to-top { right: auto; left: 30px; }
.navbar-brand { text-decoration: none; }
.dgcom-rtl .navbar .navbar-nav .nav-link { margin-right: 0; margin-left: 30px; }
.dgcom-rtl .navbar .dropdown-toggle::after { margin-left: 0; margin-right: 8px; }
.dgcom .navbar .navbar-nav { margin-inline-end: auto; }
@media (max-width: 991.98px) { .dgcom .navbar .navbar-nav .nav-link { margin: 0; padding: 8px 0; } }
.dgcom-team-photo { aspect-ratio: 1; overflow: hidden; background: #f8f8f8; }
.dgcom-team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.dgcom .team-item { box-shadow: 0 0 45px rgba(0, 0, 0, .07); text-decoration: none; transition: .4s; }
.dgcom .team-item:hover { transform: translateY(-6px); }
.dgcom .service-item { background: #fff; text-decoration: none; }
.dgcom .service-item img { width: 100%; height: 180px; object-fit: cover; }
.dgcom .fact-item { background: #f8f8f8; }
.dgcom .img-border img { object-fit: cover; }
.dgcom .brands .marq img { height: 56px; width: auto; }

/* ---- Content blocks used by the inner pages (rendered by shared Blade views) ---- */
.dgcom .wrap { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.dgcom .sec { padding: 64px 0; }
.dgcom .sec.dark { background: #252525; color: #cfd4d8; }
.dgcom .sec.dark h2, .dgcom .sec.dark h3 { color: #fff; }
.dgcom h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: 0; }
.dgcom .eyebrow { color: var(--primary); font-weight: 600; letter-spacing: .08em; }
.dgcom .btn-lime, .dgcom .btn-green, .dgcom .btn-line, .dgcom .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50rem; font-weight: 600; font-size: .95rem; border: 1px solid transparent; text-decoration: none; cursor: pointer;
}
.dgcom .btn-lime, .dgcom .btn-green { background: var(--primary); color: #fff; }
.dgcom .btn-lime:hover, .dgcom .btn-green:hover { background: var(--primary-d); color: #fff; transform: none; }
.dgcom .btn-line { border-color: var(--primary); color: var(--primary); background: transparent; }
.dgcom .btn-line:hover { background: var(--primary); color: #fff; }
.dgcom .btn-ghost { border-color: #fff; color: #fff; }
.dgcom .btn-sm { padding: 8px 18px; font-size: .85rem; }

/* page banner → template's dark page-header look */
.dgcom .page-hero {
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('../img/carousel-1.jpg') center/cover no-repeat;
    color: #fff; padding: 72px 0;
}
.dgcom .page-hero:before { display: none; }
.dgcom .page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.dgcom .page-hero .sub, .dgcom .crumbs, .dgcom .crumbs a { color: rgba(255, 255, 255, .85); }
.dgcom .crumbs a:hover { color: #fff; }
.dgcom .hero { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('../img/carousel-2.jpg') center/cover no-repeat; }

/* cards */
.dgcom .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dgcom .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dgcom .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 991.98px) { .dgcom .grid3, .dgcom .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .dgcom .grid3, .dgcom .grid4, .dgcom .grid2 { grid-template-columns: 1fr; } }
.dgcom .cc, .dgcom .svc, .dgcom .nw, .dgcom .tm {
    display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07); border: 1px solid transparent; transition: .4s;
}
.dgcom .cc:hover, .dgcom .svc:hover, .dgcom .nw:hover, .dgcom .tm:hover { transform: translateY(-8px); box-shadow: none; border-color: #dee2e6; }
.dgcom .svc { background: #fff; color: #6c757d; }
.dgcom .svc p { color: #6c757d; }
.dgcom .svc .im { background: #f8f8f8; }
.dgcom .cc .top { position: relative; height: 190px; background: #252525; overflow: hidden; }
.dgcom .cc .top img { width: 100%; height: 100%; }
.dgcom .cc .top .pill { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--primary); color: #fff; border-radius: 50rem; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.dgcom .cc .bd, .dgcom .svc .bd, .dgcom .nw .bd { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dgcom .cc h3, .dgcom .svc h3, .dgcom .nw h3 { font-size: 1.1rem; color: #252525; }
.dgcom .cc .m { font-size: .85rem; color: #6c757d; }
.dgcom .cc .pr { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; font-size: .85rem; border-top: 1px solid #eee; }
.dgcom .link, .dgcom .cc .link, .dgcom .svc .link { color: var(--primary); font-weight: 600; text-decoration: none; }
.dgcom .row-h { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.dgcom .tm { padding: 14px 14px 22px; text-align: center; }
.dgcom .badge.vip { background: var(--primary); color: #fff; }
.dgcom .ticks li:before, .dgcom .prose ul li:before { background: var(--primary); }
.dgcom .stat b { color: var(--primary); }
.dgcom .cta-box { background: linear-gradient(110deg, #252525 45%, var(--primary-d)); }

/* forms in content pages */
.dgcom select, .dgcom input, .dgcom textarea { border-radius: 6px; border: 1px solid #ced4da; padding: 10px 14px; width: 100%; font-family: inherit; }
.dgcom input[type=radio], .dgcom input[type=checkbox] { width: auto; }
.dgcom select:focus, .dgcom input:focus, .dgcom textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(19, 172, 144, .2); }

/* ---- Single-row header (replaces topbar + brand row + coloured nav) ---- */
.dgcom .dgcom-header.navbar { top: 0 !important; padding-top: 10px; padding-bottom: 10px; box-shadow: 0 2px 18px rgba(0, 0, 0, .06); }
.dgcom .dgcom-header .dgcom-logo { height: 46px; }
.dgcom .dgcom-header .navbar-nav .nav-link { color: #252525; margin: 0 14px; padding: 10px 0; font-weight: 600; border-bottom: 2px solid transparent; }
.dgcom .dgcom-header .navbar-nav .nav-link:hover,
.dgcom .dgcom-header .navbar-nav .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.dgcom .dgcom-header .dropdown-item { padding: 9px 20px; }
@media (max-width: 991.98px) {
    .dgcom .dgcom-header .navbar-nav .nav-link { margin: 0; border-bottom: 0; }
}

/* ---- Calmer hero slider ---- */

/* ---- Split hero ---- */
.dgcom .dgcom-hero { background: radial-gradient(circle at 85% 20%, var(--primary) 0, var(--primary-d) 45%, #0b4a3f 100%); color: #fff; padding: 64px 0 76px; position: relative; overflow: hidden; }
.dgcom .dgcom-hero .carousel-item { transition: transform .8s ease; }
.dgcom .dgcom-hero-kicker { color: #bff3e7; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-bottom: 18px; }
.dgcom .dgcom-hero-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
.dgcom .dgcom-hero-meta { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin-bottom: 30px; max-width: 520px; }
.dgcom .dgcom-hero-frame { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); height: 400px; display: flex; align-items: center; justify-content: center; }
.dgcom .dgcom-hero-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.dgcom .dgcom-hero .carousel-indicators { bottom: -52px; margin-bottom: 0; }
.dgcom .dgcom-hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; margin: 0 5px; border: 0; border-radius: 50%; background: #fff; opacity: .45; }
.dgcom .dgcom-hero .carousel-indicators .active { opacity: 1; }
@media (max-width: 991.98px) { .dgcom .dgcom-hero { padding: 44px 0 70px; } .dgcom .dgcom-hero-frame { height: 280px; } }

/* ---- Facts band ---- */
.dgcom .dgcom-facts { background: #252525; color: #fff; padding: 34px 0; }
.dgcom .dgcom-fact { padding: 10px 12px; border-inline-end: 1px solid rgba(255, 255, 255, .12); }
.dgcom .dgcom-fact:last-child { border-inline-end: 0; }
.dgcom .dgcom-fact-num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--primary-l); line-height: 1.1; }
.dgcom .dgcom-fact-label { font-size: .9rem; color: #c9ced2; margin-top: 4px; }
@media (max-width: 991.98px) { .dgcom .dgcom-fact:nth-child(2) { border-inline-end: 0; } .dgcom .dgcom-fact { padding: 14px 8px; } }

/* ---- Rhythm: soft sections, news without the empty coloured header ---- */
.dgcom .bg-light { background-color: #f6f9f8 !important; }
.dgcom .bg-light .service-item, .dgcom .bg-light .team-item { background: #fff; }
.dgcom .nw .top { height: auto; background: none; padding: 20px 20px 0; }
.dgcom .nw .top span { background: rgba(19, 172, 144, .12); color: var(--primary-d); font-weight: 700; font-size: .75rem; padding: 4px 12px; border-radius: 50rem; }
.dgcom .nw .bd { padding-top: 12px; }

/* ---- Header socials, back-to-top, About image ---- */
.dgcom .dgcom-soc-head a { width: 32px; height: 32px; }
.dgcom .dgcom-soc-head { margin-inline-end: 4px; }
.dgcom .dgcom-top { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 99; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -6px rgba(19, 172, 144, .6); cursor: pointer; transition: background .2s, transform .2s; }
.dgcom .dgcom-top[hidden] { display: none; }
.dgcom .dgcom-top:hover { background: var(--primary-d); transform: translateY(-3px); }
.dgcom .dgcom-top:focus-visible { outline: 3px solid var(--primary-l); outline-offset: 3px; }
.dgcom .dgcom-about-img { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .35); }
.dgcom .dgcom-about-img img { display: block; width: 100%; height: auto; }
/* site/js/app.js injects the classic design's own back-to-top button; dgcom has its own. */
.dgcom .to-top { display: none !important; }
.dgcom .dgcom-about-img { max-width: 440px; margin-inline: auto; }

/* ---- Motion: scroll reveal, carousels, hovers ---- */
.js .dgcom-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .dgcom-reveal.in { opacity: 1; transform: none; }
@keyframes dgcomRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes dgcomPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.dgcom .dgcom-hero .carousel-item.active .dgcom-hero-kicker { animation: dgcomRise .6s .05s both; }
.dgcom .dgcom-hero .carousel-item.active .dgcom-hero-title { animation: dgcomRise .7s .18s both; }
.dgcom .dgcom-hero .carousel-item.active .dgcom-hero-meta { animation: dgcomRise .7s .3s both; }
.dgcom .dgcom-hero .carousel-item.active .btn { animation: dgcomRise .7s .42s both; }
.dgcom .dgcom-hero .carousel-item.active .dgcom-hero-frame { animation: dgcomPop .8s .2s both; }
.dgcom .dgcom-fact-num { transition: transform .3s; }
.dgcom .dgcom-fact:hover .dgcom-fact-num { transform: scale(1.08); }

/* equal-height cards inside Owl */
.dgcom .dgcom-carousel .owl-stage { display: flex; padding: 8px 0 18px; }
.dgcom .dgcom-carousel .owl-item { display: flex; }
.dgcom .dgcom-carousel .owl-item > * { width: 100%; }
.dgcom .dgcom-carousel .service-item { height: 100%; }
.dgcom .dgcom-zoom { overflow: hidden; }
.dgcom .dgcom-zoom img { width: 100%; height: 180px; object-fit: cover; transition: transform .6s ease; }
.dgcom .service-item:hover .dgcom-zoom img { transform: scale(1.08); }
.dgcom .cc .top img { transition: transform .6s ease; }
.dgcom .cc:hover .top img { transform: scale(1.05); }
.dgcom .service-item h4 { transition: color .3s; }
.dgcom .service-item:hover h4 { color: var(--primary); }

/* carousel arrows + dots */
.dgcom .dgcom-carousel .owl-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.dgcom .dgcom-carousel .owl-nav div { cursor: pointer; width: 42px; height: 42px; border-radius: 50% !important; border: 1px solid #ced4da !important; background: #fff !important; color: var(--primary) !important; display: flex; align-items: center; justify-content: center; transition: .25s; font-size: .85rem; }
.dgcom .dgcom-carousel .owl-nav div:hover { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.dgcom .dgcom-carousel .owl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dgcom .dgcom-carousel .owl-dot span { display: block; width: 9px; height: 9px; border-radius: 50%; background: #cfd6d4; transition: .25s; }
.dgcom .dgcom-carousel .owl-dot.active span { width: 26px; border-radius: 6px; background: var(--primary); }
@media (prefers-reduced-motion: reduce) {
    .js .dgcom-reveal { opacity: 1; transform: none; transition: none; }
    .dgcom .dgcom-hero .carousel-item.active * { animation: none !important; }
}
.dgcom .dgcom-carousel .owl-nav.disabled, .dgcom .dgcom-carousel .owl-dots.disabled { display: none !important; }
.dgcom .dgcom-carousel .owl-nav .owl-prev, .dgcom .dgcom-carousel .owl-nav .owl-next { width: 42px; height: 42px; padding: 0; margin: 0; line-height: 1; }

/* ---- Footer bottom bar: copyright + legal links on a single line ---- */
@media (min-width: 768px) {
    .footer .copyright .row { flex-wrap: nowrap; align-items: center; justify-content: space-between; }
    .footer .copyright .row > div { width: auto; flex: 0 0 auto; }
    .footer .copyright .row > div:last-child { white-space: nowrap; padding-inline-end: 64px; }
}
@media (min-width: 768px) and (max-width: 991.98px) { .footer .copyright .row > div:last-child { font-size: 13px; } }
.footer .copyright { color: #adb5bd; }

/* ---- Same green as the classic footer, in the footer and the hero ---- */
:root { --dgcom-green: linear-gradient(160deg, #0e907a 0, #0b7a67 100%); }
.dgcom .footer.bg-dark { background: var(--dgcom-green) !important; color: rgba(255, 255, 255, .92); }
.dgcom .footer p, .dgcom .footer .text-body { color: rgba(255, 255, 255, .92) !important; }
.dgcom .footer a, .dgcom .footer .btn.btn-link { color: rgba(255, 255, 255, .92); }
.dgcom .footer a:hover, .dgcom .footer .btn.btn-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dgcom .footer .dgcom-soc a { border-color: transparent; background: rgba(255, 255, 255, .18); color: #fff; }
.dgcom .footer .dgcom-soc a:hover { background: #252525; border-color: transparent; text-decoration: none; }
.dgcom .footer .copyright { color: rgba(255, 255, 255, .9); border-top-color: rgba(255, 255, 255, .22); }

/* ---- Shorter hero ---- */
.dgcom .dgcom-hero { background: var(--dgcom-green); padding: 36px 0 58px; }
.dgcom .dgcom-hero-frame { height: 290px; padding: 8px; }
.dgcom .dgcom-hero-title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.dgcom .dgcom-hero-kicker { margin-bottom: 12px; }
.dgcom .dgcom-hero-meta { font-size: 1rem; margin-bottom: 20px; }
.dgcom .dgcom-hero .btn { padding: 10px 32px !important; }
.dgcom .dgcom-hero .carousel-indicators { bottom: -40px; }
@media (max-width: 991.98px) { .dgcom .dgcom-hero { padding: 28px 0 54px; } .dgcom .dgcom-hero-frame { height: 220px; } }
/* template's #header-carousel rules (60px thumbnails) are ID-specific — beat them for the dots */
.dgcom #header-carousel .carousel-indicators { bottom: -38px; margin: 0; }
.dgcom #header-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; margin: 0 5px; padding: 0; border: 0; border-radius: 50%; text-indent: -999px; overflow: hidden; background: #fff; opacity: .45; transition: opacity .25s, width .25s; }
.dgcom #header-carousel .carousel-indicators .active { opacity: 1; width: 26px; border-radius: 6px; }

/* ---- Events + clients read as one block: same white, no seam line; section labels match tinted sections ---- */
.dgcom .brands { border: 0; background: transparent; }
.dgcom .bg-light .section-title { background-color: #f6f9f8 !important; }

/* ---- Hero height: a bit taller than the compact version (~460px desktop) ---- */
.dgcom .dgcom-hero { padding: 52px 0 72px; }
.dgcom .dgcom-hero-frame { height: 340px; padding: 10px; }
.dgcom .dgcom-hero-title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.dgcom .dgcom-hero-kicker { margin-bottom: 16px; }
.dgcom .dgcom-hero-meta { margin-bottom: 26px; }
.dgcom .dgcom-hero .btn { padding: 12px 36px !important; }
.dgcom #header-carousel .carousel-indicators { bottom: -50px; }
@media (max-width: 991.98px) { .dgcom .dgcom-hero { padding: 34px 0 62px; } .dgcom .dgcom-hero-frame { height: 250px; } }

/* ---- Card carousels: arrows only (no dots) ---- */
.dgcom .dgcom-carousel .owl-dots { display: none !important; }
.dgcom .dgcom-carousel .owl-nav { margin-top: 4px; }
