.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible {
    color: rgba(15, 23, 42, 0.92);
}

#expertise .btn-outline-primary {
    border: 0;
    background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #ffffff;
    box-shadow: 0 18px 55px rgba(2, 103, 188, 0.22);
}

#expertise .btn-outline-primary:hover {
    filter: brightness(0.97);
    color: #ffffff;
}

#expertise .btn-outline-primary:active {
    filter: brightness(0.95);
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-card > .btn,
.feature-card > a.btn {
    margin-top: auto;
    align-self: flex-start;
}

.footer-disclaimer {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-disclaimer__title {
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-disclaimer p {
    margin: 0;
}

.footer-disclaimer p + p {
    margin-top: 6px;
}

.envelope__paper {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.95)) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 18px 44px rgba(2, 20, 50, 0.24) !important;
}

.envelope__paper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 49.6%, rgba(2, 20, 50, 0.14) 50%, transparent 50.4%),
    linear-gradient(225deg, transparent 49.6%, rgba(2, 20, 50, 0.14) 50%, transparent 50.4%);
    opacity: 0.55;
    pointer-events: none;
}

.envelope__paper::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    height: 62%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18));
    clip-path: polygon(0 0, 100% 0, 50% 72%);
    box-shadow: inset 0 -12px 18px rgba(2, 20, 50, 0.10);
    opacity: 0.95;
    pointer-events: none;
}

.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 2000;
}

#expertise .expertise-section__cta {
    border: 0;
    background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #ffffff;
    box-shadow: 0 18px 55px rgba(2, 103, 188, 0.22);
}

#expertise .expertise-section__cta:hover,
#expertise .expertise-section__cta:focus,
#expertise .expertise-section__cta:focus-visible {
    color: #ffffff;
    filter: brightness(0.97);
}

#expertise .expertise-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.94));
    border: 1px solid rgba(2, 103, 188, 0.08);
    box-shadow: 0 18px 48px rgba(2, 20, 50, 0.10);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

#expertise .expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(2, 20, 50, 0.14);
    border-color: rgba(2, 103, 188, 0.14);
}

#expertise .feature-card__icon.expertise-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(83, 214, 247, 0.22), rgba(2, 103, 188, 0.12));
    color: var(--brand-deep);
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

#expertise .expertise-card__title {
    margin-bottom: 14px;
    font-weight: 900;
    font-size: 1.28rem;
    line-height: 1.2;
    color: #0b2340;
}

#expertise .expertise-card__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    margin-bottom: 20px;
}

#expertise .expertise-card__content p {
    margin: 0;
    color: rgba(15, 23, 42, 0.78);
    font-size: 0.98rem;
    line-height: 1.72;
}

#expertise .expertise-card__footer {
    margin-top: auto;
    padding-top: 4px;
}

#expertise .expertise-card .btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1;
}

#expertise .expertise-card .btn-outline-primary {
    border: 0;
    background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(2, 103, 188, 0.18);
}

#expertise .expertise-card .btn-outline-primary:hover,
#expertise .expertise-card .btn-outline-primary:focus,
#expertise .expertise-card .btn-outline-primary:focus-visible {
    color: #ffffff;
    filter: brightness(0.97);
}

#expertise .expertise-card .btn-primary {
    box-shadow: 0 14px 32px rgba(2, 103, 188, 0.18);
}

#expertise .text-muted {
    color: rgba(15, 23, 42, 0.78) !important;
}

@media (max-width: 1199.98px) {
    #expertise .expertise-card {
        padding: 22px;
    }

    #expertise .expertise-card__title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    #expertise .expertise-card {
        padding: 20px;
        border-radius: 22px;
    }

    #expertise .expertise-card__title {
        font-size: 1.14rem;
    }

    #expertise .expertise-card__content p {
        font-size: 0.96rem;
        line-height: 1.66;
    }
}

/* ------------------------------
   Academic & publications
------------------------------- */

.academic-block__intro {
    max-width: 64ch;
    margin-bottom: 22px;
    line-height: 1.72;
    color: rgba(15, 23, 42, 0.76) !important;
}

.academic-publications {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(2, 103, 188, 0.10);
}

.academic-publication {
    padding: 16px 0;
    border-bottom: 1px solid rgba(2, 103, 188, 0.10);
}

.academic-publication__author {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 900;
    color: #0b2340;
}

.academic-publication__text {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.68;
    color: rgba(15, 23, 42, 0.74);
}

.academic-publication--highlight {
    background: linear-gradient(180deg, rgba(2, 103, 188, 0.03), rgba(83, 214, 247, 0.04));
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(2, 103, 188, 0.10);
    margin-top: 10px;
}

.academic-sidepanel {
    position: sticky;
    top: 96px;
}

.academic-info-panel {
    padding: 20px;
    border: 1px solid rgba(2, 103, 188, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.92));
}

.academic-info-panel__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.academic-info-panel__heading i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(83, 214, 247, 0.22), rgba(2, 103, 188, 0.12));
    color: var(--brand-deep);
    flex: 0 0 auto;
}

.academic-list {
    padding-left: 1.1rem;
}

.academic-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.78);
}

.academic-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .academic-sidepanel {
        position: static;
    }
}
