/* Castika overrides on the base stylesheets. Loaded last, so it wins. */

/* Section bands */
[data-theme="light"] .band-a {
    background-color: #ffffff;
}

[data-theme="light"] .band-b {
    background-color: #f2f2f2;
}

[data-theme="dark"] .band-a {
    background-color: #171616;
}

[data-theme="dark"] .band-b {
    background-color: #1a1b1c;
}

[data-theme="light"] .band-dark {
    background-color: #000000;
}

[data-theme="dark"] .band-dark {
    background-color: #000000;
}

[data-theme="light"] .band-dark h2,
[data-theme="light"] .band-dark p,
[data-theme="light"] .band-dark li {
    color: #fff;
}

/* Dark theme gaps */
[data-theme="dark"] body {
    background-color: #171616;
}

/* Typography */

body {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.navbar-nav > li > a,
.nav-tabs > li > a,
.btn,
button,
input,
textarea,
select,
.section-head p {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
}

p {
    font-weight: 400;
    line-height: 1.9em;
    word-break: keep-all;
}

h1, h2, h3, h4 {
    word-break: keep-all;
}

.intro .intro-slider .container h2 {
    font-weight: 300;
    line-height: 1.5em;
    margin-bottom: 20px;
}

/* Intro slider */
.intro .intro-slider .item.one {
    background: url(../images/introslider/hero1-poster.jpg);
}

.intro .intro-slider .item.two {
    background: url(../images/introslider/hero2-poster.jpg);
}

.intro .intro-slider .item.three {
    background: url(../images/introslider/hero3-poster.jpg);
}

.intro .intro-slider .item.four {
    background: url(../images/introslider/hero4-poster.jpg);
}

.intro .intro-slider .item {
    position: relative;
    background-position: center center !important;
    background-size: cover !important;
}

.intro .intro-slider .item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.intro .intro-slider .item .container {
    position: relative;
    z-index: 2;
}

.intro .intro-slider .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .intro .intro-slider .hero-video {
        display: none;
    }
}

.intro .intro-slider .container .brand-logo {
    height: 56px;
    width: auto;
    margin: 0 0 22px 0;
    display: block;
}

.intro .intro-slider .container h2 {
    font-size: 34px;
}

.intro .intro-slider .container .lead-line {
    font-size: 17px;
    max-width: 520px;
}

.intro .intro-slider .container .paddingtop {
    margin-top: 8%;
}

.intro .intro-slider .container .lead-line {
    margin-bottom: 26px;
}

@media (max-width: 991px) {
    .intro .intro-slider .container .paddingtop {
        margin-top: 0;
        padding-top: 96px;
        text-align: center;
    }
    .intro .intro-slider .container .brand-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .intro .intro-slider .container .paddingtop {
        padding-top: 88px;
    }
}

/* Intro slider: the desktop lead measure */
@media (min-width: 992px) {
    .intro .intro-slider .container .lead-line {
        max-width: 640px;
    }
}

/* Logos */
img.logo-dark { display: none; }
[data-theme="dark"] img.logo-light { display: none; }
[data-theme="dark"] img.logo-dark { display: block; }

.navbar-brand {
    padding-top: 11px;
    padding-bottom: 11px;
    height: auto;
}

.navbar-brand img {
    height: 58px;
    width: auto;
}

@media (max-width: 767px) {
    .navbar-brand {
        padding-top: 19px;
        padding-bottom: 19px;
    }
    .navbar-brand img {
        height: 42px;
    }
}

/* Standing logo strip */
.site-logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
}

.site-logo {
    display: inline-block;
    float: left;
    padding: 11px 0;
    pointer-events: auto;
}

.site-logo img {
    height: 58px;
    width: auto;
}

.navbar .navbar-brand {
    visibility: hidden;
}

.site-logo-bar:not(.fixednav) img.logo-light {
    display: none;
}

.site-logo-bar:not(.fixednav) img.logo-dark {
    display: block;
}

@media (max-width: 767px) {
    .site-logo {
        padding: 19px 0;
    }
    .site-logo img {
        height: 42px;
    }
}

/* Theme toggle: which icon shows */
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }

/* Features */
.features .features-left,
.features .features-right {
    margin-top: 60px;
}

.features .feature {
    margin-bottom: 46px;
}

.features .feature h4 {
    line-height: 1;
}

/* Services */
.service-group {
    margin-bottom: 60px;
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-group-head {
    text-align: center;
    margin-bottom: 40px;
}

.service-group-head h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.service-group-head .underline-small {
    width: 60px;
    border-top: 2px solid #0099e6;
}

.service {
    margin-bottom: 30px;
}

.service h4 {
    line-height: 1.5em;
}

.service p {
    font-size: 15px;
    line-height: 1.8em;
}

/* Footer */
.footer .footer-column {
    text-align: left;
}

.footer .footer-logo {
    height: 58px;
    width: auto;
    margin: 0;
}

.footer .footer-line {
    margin-bottom: 18px;
}

.footer .footer-line-copy {
    margin-bottom: 0;
}

.footer .footer-rule {
    margin: 4px 0 20px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .footer .footer-rule {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.footer .footer-line-biz,
.footer .footer-line-legal,
.footer .footer-line-copy {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
}

.footer .footer-line-biz,
.footer .footer-line-legal {
    font-size: 14px;
    color: #666;
}

[data-theme="dark"] .footer .footer-line-biz,
[data-theme="dark"] .footer .footer-line-legal {
    color: #9a9a9a;
}

.footer .footer-line-legal a,
.footer .footer-line-brands a {
    color: inherit;
    text-decoration: none;
}

.footer .footer-line-legal a:hover,
.footer .footer-line-legal a:focus,
.footer .footer-line-brands a:hover,
.footer .footer-line-brands a:focus {
    text-decoration: underline;
}

.footer .biz-line {
    margin: 0;
    line-height: 1.6;
}

.footer .footer-line-biz {
    margin-bottom: 22px;
}

.footer .biz-gap {
    display: inline;
    margin-left: 14px;
}

@media (max-width: 767px) {
    .footer .footer-column {
        text-align: center;
    }
    .footer .footer-logo {
        margin: 0 auto;
    }
}

/* Contact details behind one badge */
.contact-more {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 10px 2px 10px;
    border: 1px solid #e9e9e9;
    border-radius: 999px;
    background-color: #e9e9e9;
    color: #444;
    font-size: 12px;
    line-height: 1.7;
    vertical-align: baseline;
    cursor: pointer;
}

.contact-more[hidden] {
    display: none;
}

.contact-more:hover {
    background-color: #d9d9d9;
    border-color: #d9d9d9;
    color: #333;
}

[data-theme="dark"] .contact-more {
    background-color: #3f4041;
    border-color: #3f4041;
    color: #ddd;
}

[data-theme="dark"] .contact-more:hover {
    background-color: #4a4b4c;
    border-color: #4a4b4c;
    color: #fff;
}

.contact-more:focus:not(:focus-visible) {
    outline: 0;
}

.contact-more:focus-visible {
    outline: 2px solid #999;
    outline-offset: 2px;
}

.contact-value {
    color: inherit;
}

a.contact-value:hover,
a.contact-value:focus {
    color: #0099e6;
}

/* Restored sections */

/* The player */
.video-stage {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
    /* Bar reserve height and badge radius; every badge dimension derives from the radius. The badge is drawn from 768px up only */
    --video-bar-box: 120px;
    --video-badge-r: 42px;
}

.video-stage::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    cursor: pointer;
}

.video-stage::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 24%;
    background-image: linear-gradient(to top,
                      rgba(0, 0, 0, 0.78) 0%,
                      rgba(0, 0, 0, 0.32) 55%,
                      rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.video-spectrum {
    position: absolute;
    left: 25%;
    top: 88%;
    z-index: 1;
    width: 50%;
    height: 9%;
    pointer-events: none;
}

/* Centred in the picture the control bar leaves, not the whole frame; z-index outranks the bar, the clamp keeps them apart. --video-bar-box over-estimates the bar height on purpose */
.video-bigplay {
    position: absolute;
    top: clamp(var(--video-badge-r), 50%,
               100% - var(--video-bar-box) - var(--video-badge-r));
    left: 50%;
    z-index: 3;
    width: calc(var(--video-badge-r) * 2);
    height: calc(var(--video-badge-r) * 2);
    margin: calc(var(--video-badge-r) * -1) 0 0 calc(var(--video-badge-r) * -1);
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.video-bigplay[hidden] {
    display: none;
}

.video-bigplay-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -9px;
    border-style: solid;
    border-width: 15px 0 15px 24px;
    border-color: transparent transparent transparent #fff;
}

.video-bigplay:hover,
.video-bigplay:focus-visible {
    background-color: #0099e6;
}

.video-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 22px 16px 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-stage.is-idle .video-controls {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.video-stage.is-idle .video-player {
    cursor: none;
}

.video-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #fff;
}

.video-title {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-count {
    flex: none;
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.video-seek {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    touch-action: none;
}

.video-seek::before {
    content: "";
    position: absolute;
    top: -9px;
    right: 0;
    bottom: -9px;
    left: 0;
}

.video-seek-buffered,
.video-seek-played {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-radius: 999px;
    pointer-events: none;
}

.video-seek-buffered {
    background-color: rgba(255, 255, 255, 0.22);
}

.video-seek-played {
    background-color: #0099e6;
}

.video-seek-knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.video-bar {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.video-bar-gap {
    flex: 1 1 auto;
}

.video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background-color: transparent;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.video-button:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.video-time {
    margin-left: 8px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.video-time-sep {
    margin: 0 4px;
    opacity: 0.6;
}

.video-button-toggle .icon-pause,
.video-button-mute .icon-quiet,
.video-button-full .icon-shrink {
    display: none;
}

.video-stage.is-playing .video-button-toggle .icon-play {
    display: none;
}

.video-stage.is-playing .video-button-toggle .icon-pause {
    display: inline;
}

.video-button-mute.is-muted .icon-sound {
    display: none;
}

.video-button-mute.is-muted .icon-quiet {
    display: inline;
}

.video-stage:fullscreen .video-button-full .icon-expand {
    display: none;
}

.video-stage:fullscreen .video-button-full .icon-shrink {
    display: inline;
}

.video-stage:-webkit-full-screen .video-button-full .icon-expand {
    display: none;
}

.video-stage:-webkit-full-screen .video-button-full .icon-shrink {
    display: inline;
}

.video-stage:fullscreen {
    max-width: none;
    border-radius: 0;
}

.video-stage:fullscreen::before {
    display: none;
}

.video-stage:fullscreen .video-player {
    object-fit: contain;
}

.video-stage:-webkit-full-screen {
    max-width: none;
    border-radius: 0;
}

.video-stage:-webkit-full-screen::before {
    display: none;
}

.video-stage:-webkit-full-screen .video-player {
    object-fit: contain;
}

.video-bar .video-volume {
    width: 84px;
    height: 14px;
    margin: 0 4px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.video-volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.3);
}

.video-volume::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.video-volume::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.3);
}

.video-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
}

/* The player: track picker */
.video-picker {
    max-width: 960px;
    margin: 26px auto 0;
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
}

.video-thumbs .video-thumb {
    display: block;
    width: 100%;
    padding: 0 8px;
    border: 0;
    background: none;
    text-align: center;
    cursor: pointer;
}

.video-thumb-poster {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.45);
    filter: brightness(0.5) saturate(0.8);
    transition: filter 0.15s ease, border-color 0.15s ease;
}

.video-thumb-title {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.video-thumb:hover .video-thumb-poster,
.video-thumb:focus-visible .video-thumb-poster {
    filter: brightness(0.8) saturate(0.9);
}

.video-thumb:hover .video-thumb-title,
.video-thumb:focus-visible .video-thumb-title {
    color: #fff;
}

.video-thumb.is-current .video-thumb-poster {
    border-color: #0099e6;
    filter: none;
}

.video-thumb.is-current .video-thumb-title {
    color: #fff;
}

@media (max-width: 767px) {
    .video-thumb-title {
        margin-top: 6px;
        font-size: 11px;
    }
}

@media (max-width: 479px) {
    .video-thumb-title {
        display: none;
    }
}

.video {
    position: relative;
    background-image: url(../images/video-bg-10427641.jpg);
}

.video::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.video .container {
    position: relative;
    z-index: 1;
}

.video .section-head h2,
.video .section-head p {
    color: #fff;
}

.video .tab-pane h4,
.video .tab-pane p {
    color: #fff;
}

.video .nav-tabs > li > a {
    color: #fff;
}

.video .brief-content .btn {
    margin-top: 26px;
    font-size: 15px;
    padding: 10px 24px;
}

.video .brief-content .project + .project {
    margin-top: 40px;
}

.video .brief-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.video .brief-content .tags > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

/* lexaflow hero features (#lexaflow) */
.hero-features {
    padding: 100px 0;
}

.hero-features .client-image {
    float: none;
    padding: 52px;
    text-align: center;
}

.hero-features .client-image img {
    width: 240px;
    height: 240px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 40px 8px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .hero-features .client-image img {
    box-shadow: 0 0 40px 8px rgba(255, 255, 255, 0.12);
}

.hero-features .client-name {
    float: none;
    clear: both;
    padding: 0;
    text-align: center;
}

.hero-features .client-name h4 {
    letter-spacing: 1px;
}

.hero-features .quote-lead {
    font-weight: 700;
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
}

@media (min-width: 992px) {
    .hero-features .testemonial {
        display: flex;
        align-items: stretch;
    }
    .hero-features .testemonial > [class*="col-"] {
        float: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-features .client-quote {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .hero-features .client-image {
        padding: 52px 0;
    }
}

[data-theme="light"] .hero-features .client-data {
    border-right-color: rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .client-data {
    border-right-color: #2b2b2b;
}

/* QuantumFlow step tiles (#quantumflow) */
.step-grid .step-tile {
    width: 100%;
    padding: 0 8px;
}

.screens .step-tile a {
    display: block;
    position: relative;
    width: 255px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0;
    line-height: 0;
}

.step-tile img {
    display: block;
    width: 100%;
    height: auto;
}

.step-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-radius: 4px;
    pointer-events: none;
}

.step-caption {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 0 20px;
    background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.72) 16%,
                rgba(0, 0, 0, 0.9) 100%);
    text-align: left;
}

.step-caption::before {
    content: attr(data-step);
    display: block;
    font-family: "GmarketSansBold", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.step-rule {
    display: block;
    width: 34px;
    margin: 12px 0;
    border-top: 3px solid #0099e6;
}

.step-text {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.65em;
    word-break: keep-all;
}

/* The same overlay, over the enlarged photograph */
.nivo-lightbox-image {
    position: relative;
}

.step-overlay--lightbox {
    border-radius: 0;
}

.step-overlay--lightbox .step-caption {
    padding: 32px 36px 0 36px;
    background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.66) 16%,
                rgba(0, 0, 0, 0.86) 100%);
}

.step-overlay--lightbox .step-caption::before {
    font-size: 58px;
}

.step-overlay--lightbox .step-rule {
    width: 56px;
    margin: 18px 0;
    border-top-width: 4px;
}

.step-overlay--lightbox .step-text {
    font-size: 17px;
    max-width: 34em;
}

/* Bar navs: step tiles, video pages, lexaflow cards */
.features-pagination,
.video-pagination,
.step-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.features-pagination-item,
.video-pagination-item,
.step-pagination-item {
    position: relative;
    width: 32px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.25);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.features-pagination-item::before,
.video-pagination-item::before,
.step-pagination-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -9px;
    bottom: -9px;
}

[data-theme="dark"] .features-pagination-item,
[data-theme="dark"] .step-pagination-item {
    background-color: rgba(255, 255, 255, 0.35);
}

.video-pagination-item {
    background-color: rgba(255, 255, 255, 0.35);
}

.features-pagination-item:hover,
.features-pagination-item.active,
.video-pagination-item:hover,
.video-pagination-item.active,
.step-pagination-item:hover,
.step-pagination-item.active {
    background-color: #0099e6;
}

/* The band is centred in the frame, so under the 992px container step its left edge reaches the time readout, and the frame is too short for a strip clear of the control bar */
@media (max-width: 991px) {
    .video-spectrum {
        display: none;
    }
}

@media (max-width: 767px) {
    /* The 16:9 frame is too short here for a badge clear of the control bar; the picture itself is the play target */
    .video-bigplay {
        display: none;
    }
    .video-controls {
        padding: 28px 10px 10px;
    }
    .video-bar .video-volume {
        display: none;
    }
    .video-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .video-time {
        font-size: 12px;
    }
    .video-title {
        font-size: 13px;
    }
    .features-pagination,
    .video-pagination,
    .step-pagination {
        gap: 6px;
        flex-wrap: nowrap;
    }
    .features-pagination-item,
    .video-pagination-item,
    .step-pagination-item {
        width: 24px;
        height: 5px;
    }
}

/* Bar gives back spacing on the smallest frames; must stay after the 767px block (same specificity, source order wins) */
@media (max-width: 479px) {
    .video-controls {
        padding: 14px 8px 8px;
    }
    .video-meta {
        margin-bottom: 6px;
    }
    .video-bar {
        margin-top: 8px;
    }
}

/* Carousel viewport: clipped, and never a scroll container */
.owl-carousel .owl-wrapper-outer {
    overflow: hidden;
    overflow: clip;
}

/* Carousel arrows: one rule, every row */
.carousel-arrows {
    --arrow-gutter: 56px;         /* the 44px chevron box + 12px of air */
    --arrow-caption: 0px;         /* a row with a caption under the tile sets its own */
    padding: 0 var(--arrow-gutter);
}

@media (max-width: 991px) {
    .carousel-arrows {
        --arrow-gutter: 44px;
    }
}

@media (max-width: 767px) {
    .carousel-arrows {
        --arrow-gutter: 40px;
    }
}

@media (max-width: 479px) {
    .carousel-arrows {
        --arrow-gutter: 34px;
    }
}

.video-thumbs {
    --arrow-caption: 26px;        /* 8px margin + 13px x 1.4 line */
}

@media (max-width: 767px) {
    .video-thumbs {
        --arrow-caption: 21px;    /* 6px margin + 11px x 1.4 line */
    }
}

@media (max-width: 479px) {
    .video-thumbs {
        --arrow-caption: 0px;     /* the caption is display:none here */
    }
}

.carousel-arrows .owl-controls {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
}

.carousel-arrows .owl-prev,
.carousel-arrows .owl-next {
    position: absolute;
    top: calc(50% - var(--arrow-caption) / 2);
    margin-top: 0;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: auto;
}

.carousel-arrows .owl-prev {
    left: 0;
}

.carousel-arrows .owl-next {
    right: 0;
}

.carousel-arrows .btn-slide {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 36px;
    background: none;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    opacity: 0.75;
}

.carousel-arrows .owl-prev:hover .btn-slide,
.carousel-arrows .owl-next:hover .btn-slide,
.carousel-arrows .btn-slide:hover {
    background: none;
    background-color: transparent;
    opacity: 1;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);
}

@media (max-width: 767px) {
    .carousel-arrows .btn-slide {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 30px;
    }
}

@media (max-width: 479px) {
    .carousel-arrows .btn-slide {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 24px;
    }
}

/* Brand names: Gmarket Sans */
.brand {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
    font-weight: normal;
    letter-spacing: 0;
}

.navbar-default .navbar-nav > li > a {
    font-weight: normal;
}

h1 .brand,
h2 .brand,
h3 .brand,
h4 .brand,
h5 .brand,
h6 .brand {
    font-family: "GmarketSansBold", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
    font-weight: normal;
}

.service-group-head h3 .brand {
    font-size: 22px;
    letter-spacing: 0.02em;
}

/* Focus ring: keyboard only */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

.navbar a:focus-visible,
.navbar button:focus-visible,
.site-logo:focus-visible,
.navbar-brand:focus-visible,
.tabs a:focus-visible,
.nav-tabs > li > a:focus-visible,
.theme-toggle:focus-visible,
.btn:focus-visible,
.video-bigplay:focus-visible,
.video-button:focus-visible,
.video-seek:focus-visible,
.video-volume:focus-visible,
.video-thumb:focus-visible,
.features-pagination-item:focus-visible,
.video-pagination-item:focus-visible,
.step-pagination-item:focus-visible {
    outline: 2px solid #0099e6;
    outline-offset: 2px;
}

.video-player:focus-visible {
    outline: 3px solid #0099e6;
    outline-offset: -3px;
}

.video-controls:focus-within {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Centre visual (#features) */
.image-features {
    display: block;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.features-visual {
    display: inline-block;
    max-width: 390px;
    width: 100%;
    height: auto;
}

@media (min-width: 1200px) {
    .features .image-features {
        margin-left: -15px;
        margin-right: -15px;
    }
}

.features .image-features::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 66%;
    height: 30px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
                rgba(0, 0, 0, 0.6) 0%,
                rgba(0, 0, 0, 0.3) 45%,
                rgba(0, 0, 0, 0) 72%);
    filter: blur(7px);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 991px) {
    .features .image-features {
        display: none;
    }
}

/* #features: the three columns as one flex row */
@media (min-width: 992px) {
    .features .features-row {
        display: flex;
        align-items: center;
    }
    .features .features-row::before,
    .features .features-row::after {
        display: none;
    }
    .features .features-row > [class*="col-md-"] {
        float: none;
    }
    .features .features-row .features-left,
    .features .features-row .features-right {
        margin-top: 0;
    }
    .features .features-row .feature:last-child {
        margin-bottom: 0;
    }
}

/* #castika-pro's tab panes */
.extra .tab-pane .brief-content {
    max-width: none;
    text-align: left;
}

.extra .tab-pane .brief-content h4 {
    margin-bottom: 0;
}

.extra .tab-pane .brief-content .underline {
    margin-top: 14px;
    margin-bottom: 22px;
}

.extra .tab-pane .brief-content p + p {
    margin-top: 18px;
}

.extra .tab-pane .brief-content p {
    word-break: normal;
}

/* Tab video wells */
.extra .tab-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
}

.extra .tab-stage::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.extra .tab-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .extra .tab-stage {
        margin-bottom: 26px;
    }
}

/* Tab pane entrances */
@media (prefers-reduced-motion: reduce) {
    .extra .tab-pane .tab-stage,
    .extra .tab-pane .brief-content {
        animation: none !important;
        -webkit-animation: none !important;
    }
}

/* Section titles */
.section-head h2,
.brief-content h2 {
    font-family: "GmarketSansBold", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: normal;
}

.section-head--medium h2 {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 32px;
}

@media (max-width: 767px) {
    .section-head--medium h2 {
        font-size: 28px;
    }
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    opacity: 1;
    margin-top: 0;
    animation-name: none;
    -webkit-animation-name: none;
}

.navbar.fixednav {
    background-color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .navbar.fixednav {
    background-color: rgba(0, 0, 0, 0.6);
}

.navbar .navbar-collapse,
.navbar .navbar-toggle {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s linear, visibility 0.3s linear;
            transition: opacity 0.3s linear, visibility 0.3s linear;
}

.navbar.fixednav .navbar-collapse,
.navbar.fixednav .navbar-toggle {
    opacity: 1;
    visibility: visible;
}

@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.5);
    }
    .navbar.fixednav {
        background-color: rgba(255, 255, 255, 0.92);
    }
    [data-theme="dark"] .navbar.fixednav {
        background-color: rgba(0, 0, 0, 0.85);
    }
}

/* Theme toggle: how it is drawn */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: none;
    border: 0;
    padding: 0 0 0 18px;
    margin: 0;
    line-height: 1;
    font-size: 16px;
    color: #282828;
    cursor: pointer;
    vertical-align: top;
}

.theme-toggle:hover,
.theme-toggle:focus {
    color: #0099e6;
    background: none;
    border: 0;
}

[data-theme="dark"] .theme-toggle {
    color: #fff;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .theme-toggle:focus {
    color: #0099e6;
}

.theme-toggle .theme-toggle-label {
    margin-left: 8px;
    font-size: 14px;
    line-height: 20px;
}

.theme-toggle .label-dark { display: none; }
[data-theme="dark"] .theme-toggle .label-dark { display: inline; }
[data-theme="dark"] .theme-toggle .label-light { display: none; }

@media (min-width: 768px) {
    .theme-toggle .theme-toggle-label,
    [data-theme="dark"] .theme-toggle .theme-toggle-label {
        display: none;
    }
}

@media (max-width: 767px) {
    .theme-toggle {
        height: 40px;
        padding: 0 20px;
        justify-content: flex-start;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .navbar-toggle {
        height: 42px;
        margin-top: 19px;
        margin-bottom: 19px;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 40px;
    }
}

/* Feature cards: reserved title and body height */
.services .service h4 {
    min-height: 44px;
    margin-bottom: 14px;
}

.services .service p {
    min-height: 56px;
    margin-bottom: 0;
}

.features .feature .fetaure-details h4 {
    min-height: 27px;
}

.features .feature .fetaure-details p {
    min-height: 58px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .services .service h4,
    .services .service p,
    .features .feature .fetaure-details h4,
    .features .feature .fetaure-details p {
        min-height: 0;
    }
}

/* Services grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 970px;   /* 4 x 220 + 3 x 30 */
    margin: 0 auto;
}

.services-grid .service-card {
    width: 220px;
    flex: 0 0 220px;
}

.services-grid .service-card .service-group-head {
    margin-bottom: 24px;
}

.services-grid .service-card .service-group-head h3 {
    font-size: 18px;
}

@media (max-width: 991px) {
    .services-grid {
        justify-content: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .services-grid .service-card {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Hero at narrow widths */
@media (max-width: 991px) {
    .intro .intro-slider .container {
        padding: 110px 15px 80px 15px;
    }

    .intro .intro-slider .container h2 {
        font-size: 28px;
    }

    .intro .intro-slider .container .brand-logo {
        height: 46px;
    }

    .intro .intro-slider .container .lead-line {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .intro .intro-slider .container .list-inline {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .intro .intro-slider .container .list-inline > li {
        flex: 0 0 200px;
        padding: 0;
    }

    .intro .intro-slider .container .list-inline > li .btn {
        width: 100%;
    }

    .intro .intro-slider .container .btn {
        box-sizing: border-box;
        min-width: 190px;
        height: 56px;
        padding: 0 22px;
        line-height: 54px;
        font-size: 16px;
        vertical-align: top;
    }
}

@media (max-width: 575px) {
    .intro .intro-slider .container .list-inline {
        margin-left: 0;
        margin-right: 0;
    }

    .intro .intro-slider .container .list-inline {
        flex-direction: column;
        align-items: center;
    }

    .intro .intro-slider .container .list-inline > li {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Feature icon circles */
.features .feature .icon-container .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-width: 3px;
    border-style: solid;
}

.features .feature .icon-container .icon i {
    display: block;
    margin: 0;
    line-height: 1;
}

/* #features background footage */
.features {
    position: relative;
    overflow: hidden;
    background: #12171e url(../images/features-bg-last.jpg) center center / cover no-repeat;
}

.features .features-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.features::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
                rgba(0, 0, 0, 0.85) 0%,
                rgba(0, 0, 0, 0.45) 30%,
                rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .features::before {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .features::after {
    background: linear-gradient(to top,
                rgba(0, 0, 0, 0.92) 0%,
                rgba(0, 0, 0, 0.6) 32%,
                rgba(0, 0, 0, 0) 66%);
}

[data-theme="dark"] .features .features-video {
    filter: brightness(0.8);
}

.features .section-head h2,
.features .section-head p,
.features .feature h4,
.features .feature p {
    color: #fff;
}

/* Legal pages */
.legal-page {
    padding: 140px 0 80px;
}

@media (max-width: 767px) {
    .legal-page {
        padding: 100px 0 60px;
    }
}

.legal-page .section-head {
    margin-bottom: 40px;
}

.legal-body h2 {
    font-size: 24px;
    margin: 48px 0 12px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    font-size: 15px;
}

.legal-body ul {
    margin: 0 0 10px;
    padding-left: 20px;
    list-style: disc outside;
}

.legal-body li {
    list-style: disc outside;
    line-height: 1.9em;
    margin-bottom: 6px;
    word-break: keep-all;
}

.legal-body a {
    color: #0099e6;
}

.legal-body a:hover,
.legal-body a:focus {
    text-decoration: underline;
}

[data-theme="dark"] .legal-body a {
    color: #33b1ef;
}

.legal-table {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e1e1e1;
    word-break: keep-all;
}

.legal-table thead th {
    font-weight: 600;
    border-bottom-width: 2px;
}

[data-theme="dark"] .legal-table th,
[data-theme="dark"] .legal-table td {
    border-bottom-color: #2b2b2b;
    color: #fff;
}

.legal-more {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
    font-size: 14px;
    margin: 0 0 8px;
}

/* Photo credits mosaic */
.photogrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    grid-auto-flow: dense;
    gap: 8px;
    margin: 0 0 16px;
}

.photogrid-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f1f5f9;
}

[data-theme="dark"] .photogrid-item {
    background: #1f1f1f;
}

.photogrid-item-wide { grid-column: span 2; }
.photogrid-item-tall { grid-row: span 2; }
.photogrid-item-big { grid-column: span 2; grid-row: span 2; }

.photogrid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform .2s ease, filter .2s ease;
}

.photogrid-item:hover img,
.photogrid-item:focus img,
.photogrid-item:focus-visible img {
    transform: scale(1.04);
    filter: grayscale(0);
}

@media (prefers-reduced-motion: reduce) {
    .photogrid-item img {
        transition: none;
    }

    .photogrid-item:hover img,
    .photogrid-item:focus img,
    .photogrid-item:focus-visible img {
        transform: none;
    }
}

@media (max-width: 767px) {
    .photogrid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 104px;
    }
}

.credit {
    display: none;
}

.credit:target {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.credit-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(24, 36, 51, .6);
}

.credit-box {
    position: relative;
    max-width: 480px;
    margin: 0;
    padding: 20px 24px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-shadow: 0 16px 48px rgba(24, 36, 51, .25);
    text-align: center;
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
    font-size: 14px;
    word-break: keep-all;
}

[data-theme="dark"] .credit-box {
    background: #1c1c1c;
    color: #fff;
}

/* Licence texts */
.licence-text {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.9em;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    padding: 20px;
    margin: 0 0 24px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fafafa;
    color: inherit;
}

[data-theme="dark"] .licence-text {
    border-color: #2b2b2b;
    background: #1c1c1c;
    color: #fff;
}

.legal-ai,
.legal-effective {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
}

.legal-contact {
    margin-bottom: 10px;
}

.legal-contact .biz-line {
    margin-bottom: 4px;
}

.legal-back {
    margin-top: 56px;
}

/* Contact modal */
.contact-modal .modal-content {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.contact-modal .modal-title,
.contact-modal .contact-modal-line {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", sans-serif;
}

.contact-modal .modal-title {
    font-size: 18px;
}

.contact-modal .contact-modal-lead {
    font-size: 14px;
    line-height: 1.8em;
    margin-bottom: 12px;
    opacity: 0.85;
}

.contact-modal .contact-modal-box {
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

body.modal-open > :not(.modal) {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.contact-modal .contact-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-modal .contact-modal-line {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.8em;
}

.contact-modal:focus {
    outline: none;
}

.contact-modal .contact-modal-line a {
    color: #0099e6;
}

.contact-modal .contact-modal-line a,
.contact-modal .contact-modal-line a:hover,
.contact-modal .contact-modal-line a:focus,
a.contact-value,
a.contact-value:hover,
a.contact-value:focus {
    text-decoration: none;
}

.contact-modal .modal-footer {
    text-align: right;
}

.contact-modal .modal-footer .btn {
    padding: 8px 22px;
    font-size: 14px;
}

[data-theme="dark"] .contact-modal .modal-content {
    background-color: #1f1f20;
    color: #fff;
}

[data-theme="dark"] .contact-modal .modal-header,
[data-theme="dark"] .contact-modal .modal-footer {
    border-color: #2b2b2b;
}

[data-theme="dark"] .contact-modal .modal-title,
[data-theme="dark"] .contact-modal .contact-modal-line {
    color: #fff;
}

[data-theme="dark"] .contact-modal .contact-modal-line a {
    color: #33b1ef;
}

[data-theme="dark"] .contact-modal .close {
    color: #fff;
    opacity: 0.6;
    text-shadow: none;
}

[data-theme="dark"] .contact-modal .close:hover,
[data-theme="dark"] .contact-modal .close:focus {
    color: #fff;
    opacity: 1;
}

.hero-features .client-quote .quote-note {
    font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "Malgun Gothic",
                 "맑은 고딕", sans-serif;
    font-size: 13px;
    line-height: 1.6em;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    opacity: 0.7;
}

/* Reserved height: a switched-out block must not collapse the layout */
.hero-features .client-quote {
    min-height: 101px;
}

.features .feature .fetaure-details {
    min-height: 85px;
}

@media (max-width: 991px) {
    .hero-features .client-quote,
    .features .feature .fetaure-details {
        min-height: 0;
    }
}

/* Track Record */
.track-record {
    position: relative;
    overflow: hidden;
}

.track-record .record-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.track-record .record-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
}

.track-record .record-backdrop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.track-record .record-backdrop::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
                rgba(0, 0, 0, 0.92) 0%,
                rgba(0, 0, 0, 0.6) 32%,
                rgba(0, 0, 0, 0) 66%);
    z-index: 1;
}

.track-record .container {
    position: relative;
    z-index: 2;
}

.track-record .section-head h2,
.track-record .section-head p,
.track-record .record-canvas {
    color: #fff;
}

.track-record .record {
    margin: 0 auto;
    text-align: left;
}

/* The entries are drawn by js/track-record.js, which reads its shape from these values. */
.track-record .record-canvas {
    display: block;
    width: 100%;
    line-height: 1.9em;
    --record-indent: 18px;
    --record-gap: 14px;
    --record-dot-size: 6px;
    --record-dot-top: 0.85;
    --record-dot-color: #0099e6;
}

@media (min-width: 992px) {
    .track-record .records-row {
        position: relative;
        display: flex;
        align-items: flex-start;
    }

    .track-record .records-row::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background-color: #0099e6;
    }

    .track-record .records-row > .col-md-6 {
        width: 50%;
    }

    .track-record .records-row > .col-md-6:first-child {
        padding-right: 40px;
    }

    .track-record .records-row > .col-md-6 + .col-md-6 {
        padding-left: 40px;
    }

    .track-record {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 78vh;
    }
}

@media (max-width: 991px) {
    .track-record .record {
        max-width: 100%;
    }

    .track-record .records-row > .col-md-6 + .col-md-6 .record-canvas {
        margin-top: 14px;
    }
}

/* Hero pagination dots */
.intro {
    position: relative;
}

.intro .intro-slider,
.intro .intro-slider .item {
    height: auto;
    min-height: 800px;
}

.intro .owl-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    width: 100%;
    margin: 0;
    z-index: 3;
}

/* Castika Pro tab strip */
.extra .tabs {
    text-align: center;
}

.extra .nav-tabs {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.extra .nav-tabs > li {
    float: none;
    display: block;
    width: auto;
    margin: 0;
}

.extra .nav-tabs > li > a {
    display: block;
    box-sizing: border-box;
    width: 208px;
    height: 58px;
    margin: 0;
    padding: 0 12px;
    line-height: 56px;
    border: 0;
    border-right: 1px solid #e1e1e1;
    border-radius: 0;
    background-color: transparent;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.extra .nav-tabs > li:first-child > a {
    border-radius: 5px 0 0 5px;
}

.extra .nav-tabs > li:last-child > a {
    border-right: 0;
    border-radius: 0 5px 5px 0;
}

.extra .nav-tabs > li > a:hover,
.extra .nav-tabs > li > a:focus {
    background-color: #0099e6;
    color: #fff;
}

.extra .nav-tabs > li.active > a,
.extra .nav-tabs > li.active > a:hover,
.extra .nav-tabs > li.active > a:focus {
    background-color: #0088cc;
    color: #fff;
}

[data-theme="dark"] .extra .nav-tabs {
    border-color: #3a3a3a;
}

[data-theme="dark"] .extra .nav-tabs > li > a {
    border-right-color: #3a3a3a;
}

/* Narrow screens, in the order the cascade needs them */

@media (max-width: 991px) {
    .intro .intro-slider,
    .intro .intro-slider .item {
        min-height: 640px;
    }
}

@media (max-width: 479px) {
    .intro .intro-slider,
    .intro .intro-slider .item {
        min-height: 690px;
    }
}

@media (max-width: 767px) {
    .extra .nav-tabs {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
    }
    .extra .nav-tabs > li {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
        flex: 1 1 0;
        min-width: 0;
    }
    .extra .nav-tabs > li > a {
        width: auto;
        height: 46px;
        line-height: 44px;
        padding: 0 4px;
        font-size: 13px;
    }
    .extra .nav-tabs > li > a i {
        margin-right: 4px;
    }
}

@media (max-width: 479px) {
    .extra .nav-tabs > li > a {
        font-size: 12px;
        padding: 0 2px;
    }
    .extra .nav-tabs > li > a i {
        margin-right: 2px;
    }
}

/* Contact dialog: stacking and position */
.modal-backdrop {
    z-index: 10040;
}

.contact-modal {
    z-index: 10050;
    text-align: center;
    padding: 0 15px;
}

.contact-modal:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em;
}

.contact-modal .modal-dialog {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    width: 100%;
    max-width: 320px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .contact-modal .modal-dialog {
        max-width: 600px;
    }
}

@media (max-height: 620px) {
    .contact-modal .modal-dialog {
        vertical-align: top;
        margin: 96px 0 30px 0;
    }
}
