.hero-section {
    overflow: visible;
    position: relative;
    padding-bottom: 0;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(197, 168, 128, .04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(197, 168, 128, .04) 1px, transparent 1px);
        background-size: 60px 60px;
    }

    & .container {
        position: relative;
    }

    & .section-title [data-lang="en"] {
        display: inline-block;
        max-width: 23ch;
    }
}

.hero-orb-1 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(197, 168, 128, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-svg {
    transform: rotate(-1deg);
    margin-inline-end: -160%;
}

.hero-content {
    position: relative;
    z-index: 10;

    >img {
        position: absolute;
        top: -7%;
        left: -7%;
        width: 75%;
        height: 120%;
        z-index: -1;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
}

#heroMainSubsection {
    margin-block: var(--margin-top, 0) var(--margin-bottom, calc(var(--section-padding-block) / 3));
}

.expertise-section .section-subtitle {
    color: var(--text-secondary);
}

.expertise-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expertise-nav {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.expertise-nav::-webkit-scrollbar {
    display: none;
}

.expertise-nav-btn {
    padding: 0 0 4px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
    text-transform: uppercase;
}

.expertise-nav-btn:hover {
    color: var(--primary-color);
}

.expertise-nav-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-gold);
}

.expertise-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    /* Firefox */
}

.expertise-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.expertise-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
}

.expertise-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    text-align: left;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.expertise-card-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-card-image-wrapper {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    position: relative;
}

.expertise-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Make card content non-selectable and pass pointer events to the container for smooth dragging */
.expertise-card {
    user-select: none;
    -webkit-user-select: none;
}

.expertise-card * {
    pointer-events: none;
}

/* Allow interaction with the CTA button */
.expertise-card .expertise-card-btn,
.expertise-card .expertise-card-btn * {
    pointer-events: auto;
}

.expertise-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.expertise-card-approach {
    margin-bottom: 2rem;
}

.expertise-card-approach h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expertise-card-approach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expertise-card-approach-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.expertise-card-approach-list li i {
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 992px) {
    .expertise-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .expertise-nav-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .expertise-card {
        grid-template-columns: 1fr;
    }

    .expertise-card-image-wrapper {
        height: 250px;
    }

    .expertise-card-content {
        padding: 2rem;
    }
}

/* Dynamic View Logic for Expertise Page */
.hero-section [data-target]:not(.active),
.expertise-section [data-target]:not(.active) {
    display: none !important;
}