:root {
    --brand: #0a1633;
}

body {
    background: #f6f7fb;
    color: #222;
}

.firm-card {
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(10, 22, 51, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.firm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(10, 22, 51, .12);
}

.firm-header {
    padding: 18px 20px 8px;
}

.firm-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
}

.video-teaser {
    position: relative;
    background: #0d1b3f;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    margin: 10px 0 14px;
    border: 1px solid #101c3d;
}

.video-teaser img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.video-teaser>*:not(img.bg) {
    position: relative;
    z-index: 1;
}

.video-teaser .play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    box-shadow: 0 6px 16px rgba(10, 22, 51, .35);
    transition: transform .2s ease;
}

.video-teaser:hover .play-btn {
    transform: scale(1.05);
}

.gallery-title {
    font-size: .95rem;
    font-weight: 700;
    color: #334;
    margin: 2px 0 8px;
}

.gallery-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid a {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9edf5;
    background: #eaeef7;
}

.gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.mobile-swiper {
    display: none;
}

.mobile-swiper .swiper-slide a,
.mobile-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.mobile-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #cfd6e6;
    opacity: 1;
}

.mobile-swiper .swiper-pagination-bullet-active {
    background: #0a1633;
}

.mobile-swiper .swiper-button-next,
.mobile-swiper .swiper-button-prev {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 22, 51, .85);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.mobile-swiper .swiper-button-next:after,
.mobile-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 700;
}

.mobile-swiper .swiper-button-prev {
    left: 6px;
}

.mobile-swiper .swiper-button-next {
    right: 6px;
}

@media (max-width: 767.98px) {
    .gallery-grid { display: none; }
    .mobile-swiper { display: block; }
}

.section-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--brand);
    margin: 14px 0 6px;
    letter-spacing: .3px;
}

.firm-table { margin-top: 6px; }
.firm-table .row-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9edf5;
    align-items: flex-start;
}
.firm-table .label { font-weight: 700; color: #1e2a4a; display: flex; align-items: center; gap: 8px; white-space: normal; }
.firm-table .value { color: #2c344a; word-break: break-word; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 576px) { .firm-table .row-item { grid-template-columns: 140px 1fr; } }

.btn-brand { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: .5rem .85rem; font-weight: 600; }
.btn-brand:hover { background: #0b1a3b; color: #fff; }
.firm-card .btn-brand { width: 100%; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.hero-brand { display: block; }
.hero-brand img { max-height: 125px; width: auto; display: block; }
@media (max-width: 575.98px) { .hero-brand img { max-height: 82px; } }
.hero-text { text-align: left; }
@media (max-width: 575.98px) {
  .hero-text { text-align: center; width: 100%; }
  .hero-brand { margin: 0 auto; }
  .hero-row { justify-content: center !important; align-items: center !important; text-align: center; }
}

.card-like { background: #fff; border: 1px solid #e6e9f0; border-radius: 14px; box-shadow: 0 6px 18px rgba(10, 22, 51, .06); overflow: hidden; }

.video-hero { position: relative; border-radius: 12px; overflow: hidden; background: #0d1b3f; min-height: 340px; }
.video-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.video-hero>*:not(img.bg) { position: relative; z-index: 1; }
.video-hero .play-btn { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(10, 22, 51, .35); }

.gallery-grid.detail { gap: 10px; }
.gallery-grid.detail img { height: 200px; }

.social { text-align: left; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef1f6; color: var(--brand); margin: 0 6px 0 0; border: 1px solid #e3e7f0; text-decoration: none; }
.social a:hover { background: #e3e7f0; }
.aside-separator { border-top: 1px solid #e9edf5; margin-top: 12px; padding-top: 12px; }

.detail-brand { display: block; }
.detail-brand img { max-height: 125px; width: auto; display: block; }
@media (max-width: 575.98px) { .detail-brand img { max-height: 82px; } }

.readmore { position: relative; max-height: 140px; overflow: hidden; }
.readmore.expanded { max-height: none; }
.readmore:not(.expanded):after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%); }
.readmore-toggle { margin-top: 10px; background: transparent; border: none; color: var(--brand); font-weight: 700; padding: 0; }

.sticky-card { position: sticky; top: 16px; }
@media (max-width: 991.98px) { .sticky-card { position: static; } }

.swiper-gallery2 { --nav-bg: rgba(10, 22, 51, .85); }
.swiper-gallery2 .swiper-slide a, .swiper-gallery2 .swiper-slide img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 10px; overflow: hidden; }
.swiper-gallery2 .swiper-slide a { border: 1px solid #e9edf5; background: #eaeef7; }
.swiper-gallery2 .swiper-button-next, .swiper-gallery2 .swiper-button-prev { width: 34px; height: 34px; border-radius: 50%; background: var(--nav-bg); color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.swiper-gallery2 .swiper-button-next:after, .swiper-gallery2 .swiper-button-prev:after { font-size: 16px; font-weight: 700; }
.swiper-gallery2 .swiper-button-prev { left: 6px; }
.swiper-gallery2 .swiper-button-next { right: 6px; }
.swiper-gallery2 .swiper-pagination { bottom: 6px; text-align: right; padding-right: 10px; }
.swiper-gallery2 .swiper-pagination-bullet { width: 6px; height: 6px; background: rgba(255, 255, 255, .7); opacity: 1; margin: 0 3px !important; }
.swiper-gallery2 .swiper-pagination-bullet-active { background: #fff; }
