/* SmartVET overrides on top of the Otech template (assets/css/style.css is left untouched). */
:root {
  --sv-navy: #312A56;
  --sv-navy-dark: #211C3D;
  --sv-purple: #6558B5;
  --sv-teal: #45C4C4;
  --sv-teal-dark: #1F7F86;
  --sv-orange: #F7A64A;
  --vl-theme-color-4: #6558B5;
  --vl-theme-color-5: #6558B5;
  --vl-gradient-2: linear-gradient(90deg, #312A56 0%, #6558B5 100%);
}

/* Accessibility */
.sv-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; color: var(--sv-navy); padding: 12px 18px; font-weight: 700; border-radius: 0 0 8px 0; }
.sv-skip:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, .theme-btn:focus-visible {
  outline: 3px solid var(--sv-orange) !important; outline-offset: 3px;
}
.sv-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.vl-header-bg-4 { background: rgba(33, 28, 61, 0.92) !important; }
.vl-logo img { height: 66px; width: auto; display: block; }
.vl-offcanvas-logo img { height: 46px; width: auto; display: block; }
.vl-offcanvas { background: #211C3D !important; }
@media (max-width: 575px) { .vl-logo img { height: 44px; } }
.vl-header-area .vl-main-menu ul li a[aria-current="page"] { color: var(--sv-teal) !important; }

/* Hero */
.sv-hero { background: radial-gradient(circle at 80% 30%, #6558B5 0%, rgba(101, 88, 181, 0) 45%), linear-gradient(135deg, #211C3D 0%, #312A56 55%, #3F3480 100%) !important; }
.sv-hero.vl-hero-area-4 { height: auto; min-height: max(770px, 100vh); min-height: max(770px, 100svh); padding-bottom: 0 !important; display: flex; align-items: flex-end; }
.sv-hero > .container { width: 100%; }

/* Hidden circuit board in the hero, lit around the pointer */
.sv-circuit { position: absolute; inset: 0; z-index: -1; pointer-events: none; --mx: 70%; --my: 45%; }
.sv-circuit-base, .sv-circuit-glow, .sv-circuit-light { position: absolute; inset: 0; }
.sv-circuit-base { background: url(../img/circuit-flow.svg?v=3) center / cover no-repeat; opacity: .09; }
.sv-circuit-glow {
  background: url(../img/circuit-flow.svg?v=3) center / cover no-repeat;
  filter: drop-shadow(0 0 2px rgba(69, 196, 196, .9)) drop-shadow(0 0 7px rgba(69, 196, 196, .5));
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 35%, transparent 100%);
          mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 35%, transparent 100%);
  opacity: .9; transition: opacity .6s ease;
}
.sv-circuit-light { background: radial-gradient(circle 340px at var(--mx) var(--my), rgba(101, 88, 181, .45), transparent 70%); mix-blend-mode: screen; }
.sv-circuit.is-idle .sv-circuit-glow { opacity: .55; }
.sv-hero .row { align-items: flex-end !important; }
.sv-hero .vl-hero-img { display: flex; justify-content: center; }
.sv-hero .vl-hero-fan { position: absolute; inset: 10% 0 auto 10%; width: 80%; opacity: .5; }
.sv-hero .vl-hero-img-4 { position: relative; z-index: 1; }
.sv-hero .vl-hero-img-4 img { position: static; display: block; width: auto !important; max-width: 100%; max-height: 640px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
/* bigger than its column: grows to the right, capped by the screen height so the hero still fits */
.sv-hero-anim { flex: 0 0 auto; width: 128%; max-width: min(900px, calc((100vh - 170px) * 1.092)); margin: 0 -28% 20px auto; }
@media (max-width: 1599px) { .sv-hero-anim { width: 112%; margin-right: -12%; } }
.sv-hero .vl-hero-img-4.sv-hero-anim video, .sv-hero .vl-hero-img-4.sv-hero-anim img { display: block; width: 100% !important; max-width: 100%; height: auto; max-height: none; aspect-ratio: 1092 / 1000; background: transparent; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.sv-hero-anim video + .sv-hero-still { display: none; } /* still image only when the video was removed (Safari, reduced motion) */
.sv-hero .col-xl-6 { margin-bottom: 0 !important; }
.sv-hero .vl-hero-content { padding-bottom: 60px; }
.sv-hero .vl-hero-counter-box-title { line-height: 1.3; white-space: nowrap; }
.sv-hero-badge { z-index: 2; }
.sv-hero .vl-hero-counter-box-title { font-size: 17px; }
.sv-hero .vl-section-subtitle-5 { color: #fff; }
.sv-hero-badge { position: absolute; left: 0; bottom: 40px; background: #fff; color: var(--sv-navy); border-radius: 12px; padding: 16px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 260px; }
.sv-hero-badge strong { display: block; font-size: 18px; }
.sv-hero-badge img { height: 34px; margin-top: 8px; }

.sv-figure { position: relative; }

/* EU strip */
.sv-eu-strip { background: #fff; border-bottom: 1px solid #e6e4f2; }
.sv-eu-strip .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.sv-eu-strip img { height: 56px; width: auto; }
.sv-eu-strip p { margin: 0; color: #333; font-size: 15px; }

/* Cards */
.sv-card { background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(49, 42, 86, .08); overflow: hidden; height: 100%; }
.sv-card > img, .sv-card .sv-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sv-card-body { padding: 26px 26px 30px; }
.sv-card-body h3 { font-size: 22px; margin-bottom: 10px; color: var(--sv-navy); }
.sv-card-body p { color: #4a4a55; }
.sv-tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--sv-teal-dark); background: #e7f7f7; border-radius: 30px; padding: 3px 12px; margin-bottom: 12px; }
.sv-tag.done { color: #fff; background: var(--sv-purple); }
.sv-tag.next { color: var(--sv-navy); background: #fde9d2; }
.sv-card-band { aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; background: linear-gradient(135deg, #312A56 0%, #6558B5 70%, #45C4C4 140%); }
.sv-card-band strong { font-size: 34px; line-height: 1.1; font-weight: 700; }
.sv-card-band span { font-size: 16px; opacity: .85; margin-top: 6px; }

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

/* Motion and hover effects */
.sv-card { transition: transform .35s ease, box-shadow .35s ease; }
.sv-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(49, 42, 86, .16); }
.sv-card .sv-figure { overflow: hidden; }
.sv-card .sv-figure img { transition: transform .7s ease; }
.sv-card:hover .sv-figure img { transform: scale(1.07); }
.sv-place { position: absolute; left: 14px; bottom: 14px; background: rgba(33, 28, 61, .82); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 30px; backdrop-filter: blur(4px); }
.sv-float { animation: svFloat 5s ease-in-out infinite; }
@keyframes svFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .sv-float, .vl-hero-fan img { animation: none !important; }
  .sv-card, .sv-card .sv-figure img, .sv-pcard { transition: none !important; }
}

/* Partner cards (home) */
.sv-pcard { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; background: #fff; border-radius: 16px; padding: 30px 22px 26px; box-shadow: 0 6px 24px rgba(49, 42, 86, .08); transition: transform .35s ease, box-shadow .35s ease; position: relative; overflow: hidden; }
.sv-pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sv-purple), var(--sv-teal)); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.sv-pcard:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(49, 42, 86, .16); }
.sv-pcard:hover::before { transform: scaleX(1); }
.sv-pcard-logo { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sv-pcard-logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .45s ease; }
.sv-pcard:hover .sv-pcard-logo img { transform: scale(1.08); }
.sv-pcard-flag { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sv-teal-dark); background: #e7f7f7; border-radius: 30px; padding: 3px 12px; margin-bottom: 12px; }
.sv-pcard strong { font-size: 19px; line-height: 1.3; color: var(--sv-navy); }
.sv-pcard small { display: block; margin-top: 6px; font-size: 14px; color: #5b5a68; }

/* CTA sits on the border with the footer: no white band */
.sv-cta-wrap { background: #F4F3FA; padding-top: 10px !important; padding-bottom: 0; }
.sv-partners-band { background: #F4F3FA !important; }
.sv-cta-wrap + .sv-footer, .sv-cta-wrap ~ .sv-footer { padding-top: 70px; }

/* Footer always at the bottom of the window */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
body > footer { margin-top: auto; }

/* Partners */
.sv-partner { display: flex; gap: 22px; align-items: flex-start; }
.sv-partner-logo { flex: 0 0 120px; height: 120px; border-radius: 12px; background: #f4f3fa; display: flex; align-items: center; justify-content: center; padding: 10px; }
.sv-partner-logo img { max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; }
.sv-partner-logo span { font-size: 26px; font-weight: 700; color: var(--sv-purple); }
.sv-logo-row { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center; }
.sv-logo-row .sv-logo-item { height: 90px; min-width: 150px; padding: 12px 18px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(49,42,86,.07); }
.sv-logo-row img { max-height: 66px; width: auto; }
.sv-logo-row .sv-logo-text { font-weight: 700; color: var(--sv-navy); text-align: center; line-height: 1.25; }

/* Timeline */
.sv-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid #e3e0f3; }
.sv-timeline > li { position: relative; padding: 0 0 34px 30px; }
.sv-timeline > li::before { content: ""; position: absolute; left: -11px; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--sv-purple); }
.sv-timeline ul li { list-style: disc; padding: 0; margin-bottom: 6px; }
.sv-photo-img { overflow: hidden; border-radius: 12px; box-shadow: 0 6px 24px rgba(49, 42, 86, .12); }
.sv-photo-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s ease; }
.sv-photo:hover .sv-photo-img img { transform: scale(1.06); }
.sv-photo figcaption { padding-top: 10px; font-size: 14px; color: #4a4a55; }
.sv-timeline > li.done::before { background: var(--sv-purple); }
.sv-timeline h3 { font-size: 21px; color: var(--sv-navy); margin: 4px 0 6px; }
.sv-timeline h3 a { color: inherit; background: linear-gradient(var(--sv-teal), var(--sv-teal)) 0 100% / 0 2px no-repeat; transition: background-size .35s ease, color .35s ease; }
.sv-timeline h3 a:hover { color: var(--sv-purple); background-size: 100% 2px; }
.sv-timeline h3 a::after { content: " \2192"; color: var(--sv-teal-dark); }
.sv-timeline .sv-when { font-weight: 600; color: var(--sv-teal-dark); }

/* Fact table */
.sv-facts { width: 100%; border-collapse: collapse; }
.sv-facts th, .sv-facts td { padding: 12px 14px; border-bottom: 1px solid #e6e4f2; text-align: left; vertical-align: top; }
.sv-facts th { width: 38%; color: var(--sv-navy); font-weight: 600; }

/* Learning platform CTA */
.sv-cta { background: linear-gradient(120deg, #312A56 0%, #6558B5 100%); border-radius: 16px; color: #fff; padding: 56px 48px; position: relative; overflow: hidden; }
.sv-cta h2 { color: #fff; }
.sv-cta p { color: rgba(255,255,255,.88); }
.sv-cta img { max-width: 100%; height: auto; }

/* Footer */
.sv-footer { background: #F4F3FA; padding-top: 80px; }
.sv-footer h3 { font-size: 19px; color: var(--sv-navy); margin-bottom: 16px; }
.sv-footer p, .sv-footer li, .sv-footer a { color: #3c3a48; }
.sv-footer ul { list-style: none; padding: 0; }
.sv-footer li { margin-bottom: 8px; }
.sv-footer a:hover { color: var(--sv-purple); }
.sv-footer .sv-footer-logo img { width: 230px; height: auto; display: block; }
.sv-footer-partners { display: grid; grid-template-columns: repeat(2, 74px); gap: 12px; }
.sv-footer-partners a { width: 74px; height: 74px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 8px; box-shadow: 0 4px 14px rgba(49,42,86,.07); transition: transform .3s ease; }
.sv-footer-partners a:hover { transform: translateY(-4px); }
.sv-footer-partners img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-eu-footer { border-top: 1px solid #dcd9ec; margin-top: 30px; padding: 26px 0; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sv-eu-footer img { height: 64px; width: auto; }
.sv-eu-footer p { margin: 0; flex: 1 1 420px; font-size: 14px; line-height: 1.55; color: #2d2b38; }
.sv-copy { border-top: 1px solid #dcd9ec; padding: 18px 0 26px; font-size: 14px; color: #3c3a48; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sv-copy img { height: 18px; vertical-align: middle; }

/* Content pages */
.sv-content h2 { color: var(--sv-navy); margin-bottom: 18px; }
.sv-content h3 { color: var(--sv-navy); }
.sv-content p, .sv-content li { font-size: 17px; line-height: 1.7; color: #3c3a48; }
.sv-content ul { padding-left: 1.2em; }
.sv-breadcrumb-bg { background: radial-gradient(circle at 85% 20%, #6558B5 0%, rgba(101, 88, 181, 0) 40%), linear-gradient(135deg, #211C3D 0%, #312A56 60%, #4B3F99 100%) !important; }
.sv-breadcrumb-bg .sv-circuit-base { opacity: .13; }
.sv-breadcrumb-bg .vl-breadcrumb-list a { color: rgba(255,255,255,.85); }
.sv-download { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--sv-purple); }
.sv-download:hover { color: var(--sv-navy); }
.sv-license { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #3c3a48; margin-top: 14px; }
.sv-license img { height: 31px; }

@media (max-width: 767px) {
  .sv-cta { padding: 40px 24px; }
  .sv-partner { flex-direction: column; }
  .sv-hero .vl-hero-img { flex-direction: column; align-items: center; }
  .sv-hero-badge { position: static; margin: 0 0 24px; align-self: stretch; max-width: none; }
  .sv-hero .vl-hero-img-4 img { max-height: 420px; }
  .sv-hero-anim { width: 100%; max-width: 520px; margin: 0 auto 16px; }
}

/* Offcanvas (mobile menu) on dark */
.vl-offcanvas a, .vl-offcanvas li, .vl-offcanvas .vl-offcanvas-close-toggle, .vl-offcanvas i { color: #fff !important; }
.vl-offcanvas .vl-offcanvas-close-toggle { background: rgba(255,255,255,.12) !important; border: 0; }
.vl-offcanvas ul li { border-color: rgba(255,255,255,.12) !important; }

/* Activity pages */
.sv-facts-card { background: linear-gradient(140deg, #312A56, #4B3F99); color: #fff; border-radius: 16px; padding: 30px 28px; box-shadow: 0 18px 40px rgba(49, 42, 86, .2); }
.sv-facts-card dl { margin: 0; }
.sv-facts-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #45C4C4; margin-top: 16px; font-weight: 600; }
.sv-facts-card dt:first-child { margin-top: 0; }
.sv-facts-card dd { margin: 4px 0 0; font-size: 17px; line-height: 1.45; color: #fff; }
.sv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.sv-stat { background: #fff; border-radius: 14px; padding: 24px 20px; text-align: center; box-shadow: 0 6px 24px rgba(49, 42, 86, .08); }
.sv-stat .counter, .sv-stat strong { display: block; font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--sv-purple); }
.sv-stat strong .counter { display: inline; font-size: inherit; }
.sv-stat span.sv-stat-label { display: block; margin-top: 8px; font-size: 15px; color: #4a4a55; }
.sv-days { counter-reset: day; }
.sv-day { position: relative; padding: 0 0 26px 62px; }
.sv-day::before { counter-increment: day; content: counter(day); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--sv-purple), var(--sv-teal)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sv-day h3 { font-size: 19px; margin: 0 0 6px; color: var(--sv-navy); }
.sv-day p, .sv-day li { font-size: 16px !important; margin-bottom: 4px; }
.sv-docs a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(49,42,86,.07); margin-bottom: 12px; color: var(--sv-navy); font-weight: 600; transition: transform .3s ease; }
.sv-docs a:hover { transform: translateX(6px); color: var(--sv-purple); }
.sv-docs i { font-size: 24px; color: #d9534f; }
.sv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sv-gallery-item { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9e7f3; }
.sv-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.sv-gallery-item::after { content: "\002B"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; color: #fff; background: rgba(49, 42, 86, .45); opacity: 0; transition: opacity .35s ease; }
.sv-gallery-item:hover img { transform: scale(1.08); }
.sv-gallery-item:hover::after, .sv-gallery-item:focus-visible::after { opacity: 1; }
.sv-act-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #e6e4f2; padding-top: 26px; }
.sv-act-nav a { font-weight: 600; color: var(--sv-purple); }
.sv-note { font-size: 14px !important; color: #6b6a78 !important; }
.mfp-title { font-size: 15px; }

.sv-card-body h3 a { color: inherit; transition: color .3s ease; }
.sv-card-body h3 a:hover { color: var(--sv-purple); }

/* Activity pages: gallery band */
.sv-gallery-band { background: #F4F3FA; }

/* Home: Module 2 online feature */
.sv-iot-feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; background: linear-gradient(120deg, #211C3D 0%, #312A56 55%, #4B3F99 100%); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(49, 42, 86, .18); }
.sv-iot-feature-text { padding: 46px 44px; color: #fff; }
.sv-iot-feature-text .sv-tag { background: rgba(69, 196, 196, .16); color: #7fe0e0; }
.sv-iot-feature-text h3 { color: #fff; font-size: 30px; line-height: 1.2; margin: 4px 0 14px; }
.sv-iot-feature-text p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.65; }
.sv-iot-points { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.sv-iot-points li { color: #fff; font-size: 16px; display: flex; gap: 12px; align-items: center; }
.sv-iot-points i { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: var(--sv-teal); font-size: 15px; }
.sv-iot-btns { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.sv-iot-alt { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.sv-iot-alt:hover { color: var(--sv-teal); }
.sv-iot-feature-img { display: block; overflow: hidden; min-height: 280px; }
.sv-iot-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.sv-iot-feature:hover .sv-iot-feature-img img { transform: scale(1.05); }
@media (max-width: 991px) {
  .sv-iot-feature { grid-template-columns: 1fr; }
  .sv-iot-feature-img { order: -1; max-height: 260px; }
  .sv-iot-feature-text { padding: 32px 24px; }
  .sv-iot-feature-text h3 { font-size: 24px; }
}

.sv-rank th { width: 52px; text-align: center; font-size: 20px; color: var(--sv-purple); }

.row > [class*='col-'] > .sv-stat { height: 100%; }

