/* themes/bootswatch_minty/css/style.css — fresh, breezy mint UI.
   The Bootswatch Minty skin sets colors/typo via --bs-* vars; this layer
   adds a soft mint-gradient hero, rounded friendly cards, and airy rhythm. */

/* ---------- Hero : asymmetric organic mint blobs ---------- */
.bsw-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(4rem, 10vw, 7.5rem) 0;
    background:
        linear-gradient(150deg,
            rgba(var(--bs-primary-rgb), 0.07) 0%,
            var(--bs-body-bg) 60%);
}

/* off-center two-column grid: content sits left of centre */
.bsw-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
}

/* large soft organic blobs layered behind, overflowing to the right */
.bsw-hero__blobs {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.bsw-hero__blob {
    position: absolute;
    background: radial-gradient(circle at 35% 30%,
        rgba(var(--bs-primary-rgb), 0.5), rgba(var(--bs-primary-rgb), 0.12));
    filter: blur(2px);
    will-change: transform;
}
/* big blob overflowing top-right */
.bsw-hero__blob--a {
    width: clamp(20rem, 42vw, 36rem);
    aspect-ratio: 1;
    top: -22%;
    right: -12%;
    opacity: 0.85;
    border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
    animation: bsw-blob 18s ease-in-out infinite;
}
/* mid blob overflowing bottom-right */
.bsw-hero__blob--b {
    width: clamp(14rem, 30vw, 26rem);
    aspect-ratio: 1;
    bottom: -28%;
    right: 12%;
    opacity: 0.55;
    border-radius: 60% 40% 33% 67% / 55% 58% 42% 45%;
    animation: bsw-blob 22s ease-in-out infinite reverse;
}
/* small accent blob lower-left, behind text */
.bsw-hero__blob--c {
    width: clamp(8rem, 16vw, 13rem);
    aspect-ratio: 1;
    bottom: -8%;
    left: -5%;
    opacity: 0.4;
    border-radius: 50% 50% 47% 53% / 58% 44% 56% 42%;
    animation: bsw-blob 26s ease-in-out infinite;
}

.bsw-hero__inner {
    position: relative;
    z-index: 2;
    animation: bsw-rise 0.7s ease both;
}

.bsw-hero__badge {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
}

.bsw-hero__title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.bsw-hero__lead {
    max-width: 46ch;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--bs-secondary-color);
}

/* floating rounded feature bubbles on the right */
.bsw-hero__bubbles {
    position: relative;
    z-index: 2;
    min-height: 16rem;
}
.bsw-hero__bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.3rem;
    border-radius: 2.5rem;
    font-weight: 600;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.18);
    white-space: nowrap;
}
.bsw-hero__bubble i {
    color: var(--bs-primary);
    font-size: 1.2rem;
}
.bsw-hero__bubble--1 {
    top: 1rem;
    right: 4%;
    animation: bsw-float 6s ease-in-out infinite;
}
.bsw-hero__bubble--2 {
    bottom: 1rem;
    left: 0;
    animation: bsw-float 7.5s ease-in-out infinite reverse;
}

@keyframes bsw-blob {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%      { transform: translate(-2%, 3%) rotate(8deg) scale(1.05); }
}
@keyframes bsw-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* breezy pill buttons with a friendly lift */
.bsw-hero .btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), 0.18);
}
.bsw-hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(var(--bs-primary-rgb), 0.28);
}
.bsw-hero .btn-outline-primary { box-shadow: none; }

@keyframes bsw-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section rhythm : airy, generous spacing ---------- */
.bsw-section,
main > section {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    scroll-margin-top: 5rem;
}
main > section:nth-of-type(even) {
    background: rgba(var(--bs-primary-rgb), 0.04);
}

/* centered, friendly section headings */
.section-title h2,
main > section h2 {
    letter-spacing: -0.015em;
}
.section-title p {
    color: var(--bs-secondary-color);
    max-width: 48ch;
    margin-inline: auto;
}

/* ---------- Rounded friendly cards w/ hover ---------- */
main .card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 1.1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
main .card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--bs-primary-rgb), 0.32);
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}
main .card-body { padding: clamp(1.25rem, 3vw, 1.75rem); }

/* cheerful icon chips inside cards */
main .card .fs-2.text-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
}

main .card-title a { color: var(--bs-body-color); transition: color 0.15s ease; }
main .card-title a:hover { color: var(--bs-primary); }

/* ---------- Contact + footer touches ---------- */
#contact a[href^="mailto:"] {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}
#contact a[href^="mailto:"]:hover { text-decoration: underline; }

.bsw-footer a { text-decoration: none; }
.bsw-footer a:hover { color: var(--bs-primary) !important; }

/* ---------- Responsive nudges : stack grid, shrink blobs ---------- */
@media (max-width: 991.98px) {
    .bsw-hero__grid { grid-template-columns: 1fr; }
    .bsw-hero__lead { max-width: 52ch; }
    .bsw-hero__bubbles { min-height: 0; margin-top: 1.5rem; }
    .bsw-hero__bubble { position: static; display: inline-flex; margin: 0 0.5rem 0.6rem 0; }
    .bsw-hero__blob--a { right: -25%; opacity: 0.45; }
    .bsw-hero__blob--b { opacity: 0.3; }
}

@media (max-width: 575.98px) {
    .bsw-hero .btn { width: 100%; }
    .bsw-hero__lead { max-width: none; }
    .bsw-hero__blob--c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bsw-hero__inner,
    .bsw-hero__blob,
    .bsw-hero__bubble { animation: none; }
    main .card,
    .bsw-hero .btn { transition: none; }
    main .card:hover,
    .bsw-hero .btn:hover { transform: none; }
}

/* ========================================================================
   Phase 3 — bespoke home sections (fresh mint, breezy & rounded)
   projects / team / testimonials / faq
   ===================================================================== */

/* shared little eyebrow chip above section headings */
.bsw-eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

/* generic friendly link button used in cards */
.bsw-link-btn { transition: transform 0.15s ease; }
.bsw-link-btn:hover { transform: translateX(2px); }

/* ---------- Projects : rounded media cards with mint overlay ---------- */
.bsw-project-card { overflow: hidden; }
.bsw-project-card__media {
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.bsw-project-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bsw-project-card:hover .bsw-project-card__media img { transform: scale(1.06); }
.bsw-project-card__cat {
    color: var(--bs-primary);
    font-weight: 600;
}

/* ---------- Team : soft round portraits + mint social chips ---------- */
.bsw-team-card { overflow: hidden; }
.bsw-team-card__media {
    overflow: hidden;
    height: 240px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.bsw-team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bsw-team-card:hover .bsw-team-card__media img { transform: scale(1.05); }
.bsw-team-card__placeholder {
    background: linear-gradient(160deg,
        rgba(var(--bs-primary-rgb), 0.18),
        rgba(var(--bs-primary-rgb), 0.06));
}
.bsw-team-card__role { color: var(--bs-primary); font-weight: 600; }
.bsw-team-card__social { display: flex; justify-content: center; gap: 0.5rem; }
.bsw-team-card__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.bsw-team-card__social a:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Testimonials : airy mint quote cards ---------- */
.bsw-quote-card {
    background:
        linear-gradient(165deg, rgba(var(--bs-primary-rgb), 0.06), var(--bs-body-bg) 60%);
}
.bsw-quote-card__mark {
    font-size: 2.6rem;
    color: rgba(var(--bs-primary-rgb), 0.55);
}
.bsw-quote-card__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bs-body-color);
}
.bsw-quote-card__author { margin-top: auto; }
.bsw-quote-card__avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.3);
}

/* ---------- FAQ : rounded breezy accordion ---------- */
.bsw-faq-item {
    background: var(--bs-body-bg);
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.07);
    transition: box-shadow 0.2s ease;
}
.bsw-faq-item:hover { box-shadow: 0 10px 26px rgba(var(--bs-primary-rgb), 0.13); }
.bsw-accordion .accordion-button {
    font-weight: 600;
    border-radius: 1rem !important;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}
.bsw-accordion .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
    box-shadow: none;
}
.bsw-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}
.bsw-accordion .accordion-body { line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
    .bsw-project-card__media img,
    .bsw-team-card__media img,
    .bsw-link-btn,
    .bsw-team-card__social a,
    .bsw-faq-item { transition: none; }
    .bsw-project-card:hover .bsw-project-card__media img,
    .bsw-team-card:hover .bsw-team-card__media img { transform: none; }
}

/* ========================================================================
   Phase 5 — bespoke home sections (fresh mint, breezy & rounded)
   about / skills / stats / resume / services
   ===================================================================== */

/* ---------- About : rounded media + mint fact chips ---------- */
.bsw-about__media {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}
.bsw-about__media img { display: block; width: 100%; height: auto; }
.bsw-about__desc { color: var(--bs-secondary-color); }
.bsw-about__facts { display: grid; gap: 0.85rem; }
.bsw-about__facts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bsw-about__facts a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}
.bsw-about__facts a:hover { text-decoration: underline; }
.bsw-about__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.85rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.05rem;
}

/* ---------- Skills : breezy rounded cards w/ mint progress ---------- */
.bsw-skill-card {
    padding: 1.25rem 1.35rem;
    border-radius: 1.1rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bsw-skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bs-primary-rgb), 0.32);
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}
.bsw-skill-card__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-right: 0.85rem;
    border-radius: 0.85rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.2rem;
}
.bsw-skill-card__pct { color: var(--bs-primary); font-weight: 700; }
.bsw-skill-card__bar {
    height: 8px;
    border-radius: 2rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
}
.bsw-skill-card__bar .progress-bar { border-radius: 2rem; }

/* ---------- Stats : friendly mint chip cards ---------- */
.bsw-stat-card {
    padding: 1.75rem 1rem;
    border-radius: 1.25rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bsw-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}
.bsw-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.85rem;
    border-radius: 1rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.5rem;
}
.bsw-stat-card__value {
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    font-weight: 800;
    color: var(--bs-primary);
    letter-spacing: -0.02em;
}
.bsw-stat-card__unit { font-size: 0.55em; margin-left: 0.1em; }
.bsw-stat-card__label { color: var(--bs-secondary-color); }

/* ---------- Resume : soft mint timeline ---------- */
.bsw-resume__heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}
.bsw-resume__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.15rem;
}
.bsw-timeline {
    position: relative;
    padding-left: 1.6rem;
}
.bsw-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 3px;
    border-radius: 2rem;
    background: rgba(var(--bs-primary-rgb), 0.25);
}
.bsw-timeline__item {
    position: relative;
    padding-bottom: 1.5rem;
}
.bsw-timeline__item:last-child { padding-bottom: 0; }
.bsw-timeline__item::before {
    content: "";
    position: absolute;
    left: calc(-1.6rem - 1px);
    top: 0.35rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid var(--bs-body-bg);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.18);
}
.bsw-timeline__meta { color: var(--bs-secondary-color); }

/* ---------- Services : rounded cards reusing project hover ---------- */
.bsw-service-card .card-title a {
    color: var(--bs-body-color);
    transition: color 0.15s ease;
}
.bsw-service-card .card-title a:hover { color: var(--bs-primary); }

@media (prefers-reduced-motion: reduce) {
    .bsw-skill-card,
    .bsw-stat-card { transition: none; }
    .bsw-skill-card:hover,
    .bsw-stat-card:hover { transform: none; }
}

/* ========================================================================
   Phase 5 — bespoke list sections (fresh mint, breezy & rounded)
   publications / events / resources / blog
   ===================================================================== */

/* ---------- Publications : airy academic citation list ---------- */
.bsw-pub-list { display: grid; gap: 0.85rem; }
.bsw-pub-item {
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bsw-pub-item:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--bs-primary-rgb), 0.32);
    box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.14);
}
.bsw-pub-item__title a {
    color: var(--bs-body-color);
    transition: color 0.15s ease;
}
.bsw-pub-item__title a:hover { color: var(--bs-primary); }
.bsw-pub-item__meta { color: var(--bs-secondary-color); }
.bsw-pub-item__cat { color: var(--bs-primary); font-weight: 600; }
.bsw-pub-item__abstract { color: var(--bs-secondary-color); line-height: 1.6; }
.bsw-pub-badge {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.14);
    font-weight: 600;
}

/* ---------- Events : rounded media cards w/ mint date pill ---------- */
.bsw-event-card { overflow: hidden; }
.bsw-event-card__media {
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.bsw-event-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bsw-event-card:hover .bsw-event-card__media img { transform: scale(1.06); }
.bsw-event-card__date {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
}
.bsw-event-card__loc { color: var(--bs-secondary-color); }

/* ---------- Resources : friendly chip cards w/ download icon ---------- */
.bsw-resource-card { overflow: hidden; }
.bsw-resource-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.4rem;
}
.bsw-resource-card__size { color: var(--bs-secondary-color); }
.bsw-resource-badge {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.14);
    font-weight: 600;
}

/* ---------- Blog : rounded media cards with mint zoom ---------- */
.bsw-blog-card { overflow: hidden; }
.bsw-blog-card__media {
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.bsw-blog-card__media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bsw-blog-card:hover .bsw-blog-card__media img { transform: scale(1.06); }
.bsw-blog-card__date { color: var(--bs-secondary-color); }
.bsw-blog-card__cat { color: var(--bs-primary); font-weight: 600; }
.bsw-blog-badge {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.14);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .bsw-pub-item,
    .bsw-event-card__media img,
    .bsw-blog-card__media img { transition: none; }
    .bsw-pub-item:hover { transform: none; }
    .bsw-event-card:hover .bsw-event-card__media img,
    .bsw-blog-card:hover .bsw-blog-card__media img { transform: none; }
}

/* ========================================================================
   Phase 6 — bespoke list/detail PAGES (fresh mint, breezy & rounded)
   blog_list / blog_detail / project_list / project_detail
   Builds on existing bsw- tokens; cards/media/badges already styled above.
   ===================================================================== */

/* ---------- Breadcrumb : soft mint pill trail ---------- */
.bsw-breadcrumb {
    --bs-breadcrumb-divider-color: var(--bs-secondary-color);
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    background: rgba(var(--bs-primary-rgb), 0.07);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
}
.bsw-breadcrumb a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}
.bsw-breadcrumb a:hover { text-decoration: underline; }
.bsw-breadcrumb .breadcrumb-item.active { color: var(--bs-secondary-color); }

/* ---------- Pagination : rounded breezy mint pills ---------- */
.bsw-pagination {
    --bs-pagination-color: var(--bs-primary);
    --bs-pagination-hover-color: var(--bs-primary);
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    gap: 0.4rem;
    flex-wrap: wrap;
}
.bsw-pagination .page-link {
    min-width: 2.6rem;
    text-align: center;
    border-radius: 0.85rem !important;
    border-color: rgba(var(--bs-primary-rgb), 0.18);
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bsw-pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.16);
    background: rgba(var(--bs-primary-rgb), 0.08);
}
.bsw-pagination .page-item.active .page-link {
    box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), 0.28);
}

/* ---------- Article (blog detail) : airy readable column ---------- */
.bsw-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    color: var(--bs-secondary-color);
}
.bsw-article__meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.bsw-article__meta-item i { color: var(--bs-primary); }
.bsw-article__cover {
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}
.bsw-article__lead {
    color: var(--bs-body-color);
    font-weight: 500;
    padding-left: 1rem;
    border-left: 4px solid rgba(var(--bs-primary-rgb), 0.4);
}
.bsw-article__content { line-height: 1.75; }
.bsw-article__content img { border-radius: 1rem; max-width: 100%; height: auto; }
.bsw-article__content a { color: var(--bs-primary); }
.bsw-article__content h2,
.bsw-article__content h3,
.bsw-article__content h4 { letter-spacing: -0.015em; }
.bsw-article__content blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid rgba(var(--bs-primary-rgb), 0.45);
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-radius: 0 0.85rem 0.85rem 0;
    color: var(--bs-secondary-color);
}

/* ---------- Detail headings : friendly section labels ---------- */
.bsw-section-heading {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------- Aside cards : reuse soft mint card shell ---------- */
.bsw-aside-card {
    border-radius: 1.1rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.06);
}
.bsw-aside-card__title { font-weight: 700; letter-spacing: -0.01em; }
.bsw-aside-card__list li { display: flex; align-items: baseline; }
.bsw-aside-card__list li i { flex: 0 0 auto; }

/* ---------- Gallery : rounded figures with mint zoom ---------- */
.bsw-gallery-fig { margin-bottom: 0; }
.bsw-gallery-fig__img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bsw-gallery-fig__img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.16);
}
.bsw-gallery-fig .figure-caption { color: var(--bs-secondary-color); }

@media (prefers-reduced-motion: reduce) {
    .bsw-pagination .page-link,
    .bsw-gallery-fig__img { transition: none; }
    .bsw-pagination .page-link:hover,
    .bsw-gallery-fig__img:hover { transform: none; }
}

/* ========================================================================
   Phase 7 — content pages (fresh mint, breezy & rounded)
   events / faq / jobs / publications / resources / services / team
   Reuses existing bsw- tokens (card, badge, breadcrumb, aside-card, eyebrow,
   event/pub/resource cards, section-heading); only the gaps below are new.
   ===================================================================== */

/* ---------- Jobs : friendly rounded listing cards ---------- */
.bsw-job-card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 1.1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bsw-job-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--bs-primary-rgb), 0.32);
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}
.bsw-job-card__facts li { display: flex; align-items: center; }
/* warm urgent pill that still feels breezy */
.bsw-job-badge--urgent {
    color: #fff;
    background: var(--bs-danger);
    font-weight: 600;
}

/* ---------- Publications : tidy definition list on detail ---------- */
.bsw-pub-meta dt { font-weight: 600; }
.bsw-pub-meta dd { color: var(--bs-body-color); }

/* ---------- Services : "what's included" mint chip list + form ---------- */
.bsw-service-includes { display: grid; gap: 0.85rem; }
.bsw-service-includes__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}
.bsw-service-includes__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.85rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.14);
    font-size: 1.05rem;
}
.bsw-service-form .form-control:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

/* ---------- Team detail : soft rounded portrait ---------- */
.bsw-member__photo {
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: 0 14px 34px rgba(var(--bs-primary-rgb), 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .bsw-job-card { transition: none; }
    .bsw-job-card:hover { transform: none; }
}

/* =========================================
   AUDIT CONTRASTE — WCAG AA (texte 4.5)
   L'accent menthe (#78c2ad) et le muté (#a6a6a6) du skin sont trop clairs pour
   du texte/icône sur blanc. Variantes accessibles en mode JOUR (l'accent sombre
   sert aussi de fond -> texte blanc forcé sur les fonds pleins accent).
   ========================================= */
:root:not([data-bs-theme="dark"]) {
    --bs-primary: #367764;
    --bs-primary-rgb: 54, 119, 100;
    --bs-secondary-color: #747474;
    --bs-secondary-color-rgb: 116, 116, 116;
}
:root:not([data-bs-theme="dark"]) .btn-primary,
:root:not([data-bs-theme="dark"]) .bg-primary,
:root:not([data-bs-theme="dark"]) .text-bg-primary { color: #fff !important; }

/* Boutons : le skin fige l'accent menthe clair dans --bs-btn-*. En jour, accent
   sombre (texte/bordure outline + fond plein). */
:root:not([data-bs-theme="dark"]) .btn-outline-primary {
    --bs-btn-color: #367764; --bs-btn-border-color: #367764;
    --bs-btn-hover-bg: #367764; --bs-btn-hover-border-color: #367764;
    /* le skin pose aussi un color/border direct (non-var) -> !important */
    color: #367764 !important; border-color: #367764 !important;
}
:root:not([data-bs-theme="dark"]) .btn-outline-primary:hover { color: #fff !important; }
:root:not([data-bs-theme="dark"]) .btn-primary {
    --bs-btn-bg: #367764; --bs-btn-border-color: #367764;
    --bs-btn-hover-bg: #2b6151; --bs-btn-hover-border-color: #2b6151;
}
/* Nuit : l'accent menthe reste clair -> fond plein accent avec texte SOMBRE. */
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .badge.bg-primary,
[data-bs-theme="dark"] .bg-primary,
[data-bs-theme="dark"] .btn-primary .bi { color: #10201a !important; }
/* Fond danger corail clair (#ff7851) : texte blanc illisible -> texte sombre
   sur les badges (les 2 modes). */
.badge.bg-danger, .badge.text-bg-danger { color: #2a0a00 !important; }
