body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.sample-container {
    max-width: 1200px;
    margin: 32px auto 48px;
    padding: 0 20px;
    background: #f6f6f8;
}

.language-switcher {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 40px;
    padding: 0 0.95rem;
    min-width: 170px;
    white-space: nowrap;
    background: #ffffff;
    color: #111318;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 40, 0.1);
    font-weight: 700;
    font-size: 0.95rem;
    transition: box-shadow 0.2s ease, transform 0.18s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 40, 0.16);
    transform: translateY(-1px);
    border-color: #dfe4eb;
}

.lang-toggle:focus-visible {
    outline: 2px solid #fce14f;
    outline-offset: 2px;
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-label-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.lang-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.lang-chevron {
    margin-left: auto;
    color: #5b6474;
    font-size: 1.1rem;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 100%;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    box-shadow: 0 22px 48px rgba(17, 19, 24, 0.16);
    padding: 0.35rem;
    display: grid;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 60;
}

.language-switcher.is-open .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #111318;
    font-weight: 700;
    text-align: left;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lang-option:hover {
    background: #f6f7fb;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 40, 0.08);
}

.lang-option.is-active {
    border-color: rgba(252, 225, 79, 0.7);
    background: #fffdf3;
    box-shadow: 0 14px 30px rgba(252, 225, 79, 0.28);
}

.lang-option-flag {
    font-size: 1.05rem;
}

.lang-option-label {
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .lang-toggle {
        padding: 0.55rem 0.8rem;
        font-size: 0.95rem;
    }

    .lang-label {
        font-size: 0.9rem;
    }

    .lang-menu {
        width: 240px;
    }
}

nav [data-i18n^="nav."] {
    font-size: 1.35rem;
    line-height: 1.2;
}

.nav-link {
    position: relative;
    color: #fce14f;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    height: 2px;
    background: #fce14f;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fce14f;
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-hidden,
.footer-hidden,
.legacy-header,
.legacy-footer {
    display: none !important;
}

.menu-toggle {
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
}

.menu-toggle .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.menu-toggle.is-active {
    background: rgba(252, 225, 79, 0.16);
    box-shadow: 0 0 0 2px rgba(252, 225, 79, 0.35);
}

.menu-toggle.is-active .material-symbols-outlined {
    transform: rotate(90deg);
}

.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.is-open {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

footer a.text-sm,
footer a.text-xs,
footer h4 {
    font-size: 1.35rem;
}

footer a.footer-legal {
    font-size: 0.75rem;
}

.info-section {
    width: 100%;
}

.info-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    align-items: flex-start;
}

.content-box {
    width: 320px;
    min-height: 160px;
    padding: 16px;
    border: 1px solid #cccccc;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.practice-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
}

.practice-extra.is-open {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
}

.hero-title,
.hero-body {
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hero-accent {
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.hero-bg--one {
    background-image: url("lawimg2.jpg");
    animation-name: heroFadeOne;
}

.hero-bg--two {
    background-image: url("lawimg3.jpg");
    animation-name: heroFadeTwo;
}

.hero-bg--three {
    background-image: url("lawimg4.jpg");
    animation-name: heroFadeThree;
}

.tabs-container {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(252, 225, 79, 0.08), transparent 35%),
        #0f1728;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #27334a;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-nav::-webkit-scrollbar {
    height: 6px;
}

.tab-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.search-container {
    margin-bottom: 0.75rem;
}

.search-input {
    width: 100%;
    background: #ffffff;
    color: #0f1728;
    border: 1px solid #30394a;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
    color: #7c8599;
}

.search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-results {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.search-results.is-visible {
    display: block;
}

.tab-nav.hidden,
.tab-content.hidden {
    display: none !important;
}

.tab-button {
    position: relative;
    background: transparent;
    color: #d9e2ff;
    border: none;
    padding: 0.9rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.tab-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.tab-button.is-active {
    color: #fce14f;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(252, 225, 79, 0.12), rgba(15, 23, 40, 0));
    border-bottom: 2px solid #d4af37;
}

.tab-content {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 260px;
}

.tab-panel {
    display: none;
    color: #e7ecf7;
}

.tab-panel.is-active {
    display: block;
}

.tab-panel ul,
.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-panel li,
.search-results li {
    padding: 12px 0;
    border-bottom: 1px solid #27334a;
    font-weight: 500;
}

.tab-panel li:last-child,
.search-results li:last-child {
    border-bottom: none;
}

.search-empty {
    color: #9ca3af;
    padding: 12px 0;
    font-weight: 500;
}

@keyframes heroFadeOne {
    0%,
    30% {
        opacity: 1;
    }
    33%,
    100% {
        opacity: 0;
    }
}

@keyframes heroFadeTwo {
    0%,
    33% {
        opacity: 0;
    }
    36%,
    63% {
        opacity: 1;
    }
    66%,
    100% {
        opacity: 0;
    }
}

@keyframes heroFadeThree {
    0%,
    66% {
        opacity: 0;
    }
    69%,
    96% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        animation: none;
    }

    .hero-bg--two,
    .hero-bg--three {
        opacity: 0;
    }

    .practice-extra {
        transition: none;
    }
}

    :root {
            --nav-height: 5.7rem;
            --bg: #ffffff;
            --surface: #ffffff;
            --panel: #f8fafc;
            --border: #e5e7eb;
            --text: #0f1728;
            --muted: #5b6474;
            --accent: #f0b400;
            --accent-strong: #7a5600;
            --shadow: 0 18px 40px rgba(15, 23, 40, 0.12);
        }

        * {
            box-sizing: border-box;
        }

body {
    margin: 0;
    padding-top: var(--nav-height);
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

        a {
            color: inherit;
            text-decoration: none;
        }

        /* Keep styling but remove sticky behavior so the section scrolls normally */
        header {
            position: static;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
        }

        .nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .nav-links {
            display: flex;
            gap: 18px;
            font-weight: 600;
            color: var(--muted);
        }

        .nav-links a[aria-current="page"],
        .nav-links a:hover {
            color: var(--accent);
        }

        main {
            padding: 40px 16px 64px;
        }

        .layout {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 28px;
            align-items: start;
        }

        .page-header {
            background: #f6f6f8;
            border-radius: 12px;
            padding: 16px 16px 8px;
        }

        .page-header h1 {
            margin: 10px 0 6px;
            font-size: 40px;
            line-height: 1.18;
            font-weight: 800;
            color: #0f1728;
        }

        .page-header p {
            margin: 0 0 16px;
            color: #5b6474;
            max-width: 760px;
            font-size: 16px;
            font-weight: 500;
        }

        .search-bar {
            position: relative;
            margin-bottom: 16px;
        }

.search-input {
    width: 100%;
    height: 46px;
    padding: 12px 14px 12px 48px;
    border-radius: 8px;
    border: 1px solid #d7dce5;
    background: var(--surface);
    font-size: 15px;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(15, 23, 40, 0.12);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 22px;
}

        .chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .chip {
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: var(--panel);
            color: var(--muted);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .chip.active {
            background: #fff2c7;
            color: var(--accent-strong);
            border-color: #f2d36a;
        }

        aside {
            position: sticky;
            top: 88px;
            align-self: start;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px;
            box-shadow: var(--shadow);
        }

        .filter-group {
            border-bottom: 1px solid var(--border);
            padding: 12px 0;
        }

        .filter-group:last-child {
            border-bottom: none;
        }

        .filter-title {
            font-weight: 700;
            font-size: 14px;
            margin: 0 0 8px;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 6px 0;
            color: var(--muted);
            font-weight: 600;
        }

        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 12px;
            align-items: center;
        }

        .select,
        .density {
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--surface);
            font-weight: 600;
            color: var(--muted);
            cursor: pointer;
        }

        .results-meta {
            font-weight: 600;
            color: var(--muted);
        }

        .cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
        }

        .card {
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px;
            background: var(--surface);
            box-shadow: var(--shadow);
            display: grid;
            gap: 8px;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .card:hover,
        .card:focus-within {
            transform: translateY(-2px);
            box-shadow: 0 20px 44px rgba(15, 23, 40, 0.16);
        }

        .card-title {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
        }

        .card-desc {
            margin: 0;
            color: var(--muted);
            line-height: 1.45;
        }

        .badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .badge {
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: var(--panel);
            color: var(--muted);
            font-weight: 600;
            font-size: 12px;
        }

        .meta-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            color: var(--muted);
            font-weight: 600;
            font-size: 13px;
        }

        .actions {
            display: flex;
            gap: 10px;
            margin-top: 6px;
        }

.btn-primary {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #fce14f;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

        .btn-secondary {
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--panel);
            color: var(--muted);
            font-weight: 700;
            cursor: pointer;
        }

        .tabpanel {
            display: none;
        }

        .tabpanel[aria-hidden="false"] {
            display: block;
        }

        @media (max-width: 960px) {
            .layout {
                grid-template-columns: 1fr;
            }

            aside {
                position: static;
            }
        }

/* Team page */
.team-page {
    background: #f9f9f9;
}

.team-page main {
    /* reduce top whitespace below fixed nav */
    padding: 8px 16px 28px;
}

.team-section {
    max-width: 1200px;
    margin: 0 auto;
    /* tighter spacing on section itself */
    padding: 12px 20px 20px;
}

.team-section h2 {
    color: #1e3a5f;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 1px;
}

.master-detail-container {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.master-column {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    max-height: 620px; /* show ~6 cards by default */
    overflow-y: auto;
}

@media (max-width: 768px) {
    .master-column {
        max-height: none; /* allow full list on small screens */
    }
}

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

.team-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.team-list-item:hover {
    background-color: #f1f3f5;
}

.team-list-item.active {
    background-color: #e9ecef;
    border-right: 3px solid #d4a24e;
}

.team-list-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-list-item h3 {
    margin: 0 0 4px;
    color: #1e3a5f;
    font-size: 1.05rem;
}

.team-list-item p {
    margin: 0;
    color: #d4a24e;
    font-weight: 700;
    font-size: 0.95rem;
}

.detail-column {
    background: #ffffff;
    width: 50.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 32px;
    display: grid;
    gap: 24px;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(240px, 286px) 1fr;
    gap: 24px;
    align-items: start;
}

.detail-meta {
    display: grid;
    gap: 8px;
}

.detail-column h4 {
    margin: 0 0 10px;
    color: #1e3a5f;
    font-size: 1.1rem;
    font-weight: 800;
}

#detail-img {
    width: 100%;
    max-width: 286px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    border: 6px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
}

#detail-name {
    margin: 0;
    font-size: 2.4rem;
    color: #1e3a5f;
    font-weight: 800;
}

#detail-title {
    margin: 0 0 6px;
    color: #d4a24e;
    font-weight: 700;
    font-size: 1.1rem;
}

#detail-bio {
    margin-top: 8px;
}

#detail-bio p {
    margin: 0 0 10px;
    color: #333333;
    line-height: 1.7;
}

.detail-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.detail-block {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 16px;
}

#detail-expertise {
    margin: 0;
    padding-left: 20px;
    color: #333333;
    line-height: 1.6;
}

#detail-social {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    margin: 10px 0 0;
}

#detail-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#detail-social a:hover {
    background: #d4a24e;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 58, 95, 0.25);
}

@media (max-width: 992px) {
    .master-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .master-column {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .detail-top {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .detail-meta {
        text-align: center;
    }

    #detail-name {
        font-size: 2.1rem;
    }
}

@media (max-width: 480px) {
    .team-section h2 {
        font-size: 2.1rem;
        margin-bottom: 36px;
    }

    .detail-column {
        padding: 24px;
    }

    #detail-name {
        font-size: 2rem;
    }
}

/* Team member profile page */
.profile-page {
    background: #f9f9f9;
}

.profile-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.profile-back {
    display: inline-block;
    margin-bottom: 30px;
    color: #1e3a5f;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-back:hover {
    color: #d4a24e;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.profile-header h1 {
    color: #1e3a5f;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.profile-header .title {
    color: #d4a24e;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.details h2 {
    color: #1e3a5f;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a24e;
}

.details p,
.details li {
    color: #333333;
    line-height: 1.6;
    font-size: 1rem;
}

.bio-column p + p {
    margin-top: 14px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.info-list li {
    margin-bottom: 10px;
}

.info-list strong {
    display: inline-block;
    min-width: 110px;
    font-weight: 800;
    color: #1e3a5f;
}

.social-links {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1e3a5f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 95, 0.25);
    background: #d4a24e;
}

@media (max-width: 992px) {
    .details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-header h1 {
        font-size: 2.25rem;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
    }
}

/* Team modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal-overlay.visible {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #1e3a5f;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-button:hover {
    color: #d4a24e;
    transform: scale(1.05);
}

.modal-top {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.modal-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.modal-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4a24e;
    margin: 0;
}

.modal-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.modal-columns h2 {
    color: #1e3a5f;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4a24e;
}

.modal-columns p,
.modal-columns li {
    color: #333333;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-columns p + p {
    margin-top: 12px;
}

.modal-details {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.modal-details li {
    margin-bottom: 10px;
}

.modal-details strong {
    display: inline-block;
    min-width: 110px;
    color: #1e3a5f;
    font-weight: 800;
}

.modal-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.modal-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modal-social a:hover {
    background: #d4a24e;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 58, 95, 0.25);
}

@media (max-width: 768px) {
    .modal-columns {
        grid-template-columns: 1fr;
    }

    .modal-name {
        font-size: 2rem;
    }
}

@media (max-width: 560px) {
    .modal-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-avatar {
        width: 120px;
        height: 120px;
    }
}
