/* Tall photo cards (viva.com style) + slider + side panel */
.vc-section { background: var(--bg-soft); }
.vc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.vc-head .h2 { margin: 0; }
.vc-nav { display: flex; gap: 10px; }
.vc-arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--blue); background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .25s var(--ease); }
.vc-arrow svg { width: 20px; height: 20px; }
.vc-arrow:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.08); }
.vc-arrow:disabled { opacity: .35; cursor: default; }
.vc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 2px 24px; margin: -6px -2px 0; }
.vc-track::-webkit-scrollbar { display: none; }
.vc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.vcard { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); min-height: 560px; }
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vcard-media { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--navy); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.vcard:hover .vcard-media img { transform: scale(1.07); }
.vcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 20, 47, .45)); }
.vcard-ic { position: absolute; left: 22px; bottom: 20px; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.vcard-ic svg { width: 24px; height: 24px; }
.vcard-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vcard-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.vcard h3 { font-size: 22px; margin: 0; line-height: 1.25; }
.vcard p { font-size: 15px; margin: 0; color: var(--text); }
.vcard-more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; transition: all .25s var(--ease); }
.vcard-more svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--sky-50); color: var(--blue); transition: transform .3s var(--ease), background .3s, color .3s; }
.vcard:hover .vcard-more { border-color: var(--blue); }
.vcard-more:hover svg, .vcard:hover .vcard-more svg { background: var(--blue); color: #fff; transform: rotate(-45deg); }

/* Dark variant inside the technology section */
.fr2-tech .vcard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; min-height: 480px; }
.fr2-tech .vcard h3 { color: #fff; }
.fr2-tech .vcard p { color: #c9d6ee; }
.fr2-tech .vcard-kicker { color: var(--sky); }
.fr2-tech .vcard-media { aspect-ratio: 4 / 3; }

/* Side panel */
.vc-panel { position: fixed; inset: 0; z-index: 110; background: rgba(6, 20, 47, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.vc-panel.open { opacity: 1; visibility: visible; }
.vc-panel-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; overflow-y: auto; transform: translateX(40px); transition: transform .45s var(--ease); box-shadow: -30px 0 80px rgba(6, 20, 47, .3); }
.vc-panel.open .vc-panel-box { transform: none; }
.vc-panel-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.vc-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.vc-panel-body { padding: 34px 40px 50px; }
.vc-panel-body .h3 { margin: 8px 0 18px; }
.vc-close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink); }
.vc-close svg { width: 18px; height: 18px; }

@media (max-width: 1000px) {
    .vc-track { grid-auto-columns: calc((100% - 22px) / 2); }
    .vc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .vc-head { flex-direction: column; align-items: flex-start; }
    .vc-track { grid-auto-columns: 84%; }
    .vc-grid { grid-template-columns: 1fr; }
    .vcard { min-height: 0; }
    .vc-panel-body { padding: 28px 24px 40px; }
}

/* Only horizontal scrolling inside the card slider; vertical wheel/touchpad scroll passes through to the page */
.vc-track { overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: auto; touch-action: pan-x pan-y; padding-bottom: 30px; margin-bottom: -6px; }

/* The closed side panel sits just off-screen: clip it so it never creates horizontal scrolling */
.vc-panel { overflow: hidden; }
.vc-panel:not(.open) .vc-panel-box { visibility: hidden; }

.vcard { min-height: 0; }
.vcard p { font-size: 15.5px; line-height: 1.65; }
.vcard-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.vcard-list li { position: relative; padding-left: 26px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.vcard-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--sky-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230050a0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
