/* Add your custom styles here */
/* ===== EVENT LANDING PAGE: Events Calendar ===== */

/* =========================================================
   NEWS & EVENTS SECTION
   Article Landing Pages, Event Landing Page, Hero, Detail
   ========================================================= */


/* ===== HERO BANNERS ===== */

body.crx-articleindexpage .hero-bg,
body.crx-eventindexpage .hero-bg,
body.crx-webpage .hero-bg {
    min-height: 260px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

body.crx-articleindexpage .hero-bg h1,
body.crx-eventindexpage .hero-bg h1,
body.crx-webpage .hero-bg h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ===== RI object / catalogue hero ===== */

.ri-object-hero {
    min-height: 260px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.ri-object-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
}

.ri-object-hero-fg {
    width: 100%;
    padding: 70px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.ri-object-hero h1 {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* ===== ARTICLE LANDING PAGES: News / Calls / Announcements ===== */

body.crx-articleindexpage .crx-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

/* Apply grid only to rows that contain cards */
body.crx-articleindexpage .crx-grid > .row:has(.card) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Columns that contain cards */
body.crx-articleindexpage .crx-grid > .row:has(.card) > [class*="col-"]:has(.card) {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Columns without cards: intro text, headings, explanatory blocks */
body.crx-articleindexpage .crx-grid > .row:has(.card) > [class*="col-"]:not(:has(.card)) {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 900px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Cards */
body.crx-articleindexpage .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #fff;
}

body.crx-articleindexpage .card-img-top {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

body.crx-articleindexpage .card-body {
    flex: 1;
    padding: 1rem;
}

body.crx-articleindexpage .card-title,
body.crx-articleindexpage .card h2,
body.crx-articleindexpage .card h3,
body.crx-articleindexpage .card h4 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

body.crx-articleindexpage .card-text,
body.crx-articleindexpage .card-body p {
    line-height: 1.5;
}

body.crx-articleindexpage .card-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background: #f7f7f7;
}

body.crx-articleindexpage .card-footer .btn,
body.crx-articleindexpage .card .btn {
    border-radius: 0.3rem;
}


/* ===== EVENT LANDING PAGE: Events Calendar ===== */

body.crx-eventindexpage .crx-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

/* Apply grid only to rows that contain cards */
body.crx-eventindexpage .crx-grid > .row:has(.card) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Columns that contain event cards */
body.crx-eventindexpage .crx-grid > .row:has(.card) > [class*="col-"]:has(.card) {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Columns without cards: intro text, headings */
body.crx-eventindexpage .crx-grid > .row:has(.card) > [class*="col-"]:not(:has(.card)) {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 900px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.crx-eventindexpage .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #fff;
}

body.crx-eventindexpage .card-img-top {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

body.crx-eventindexpage .card-body {
    flex: 1;
    padding: 1rem;
}

body.crx-eventindexpage .card-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background: #f7f7f7;
}


/* ===== Hide dates in Article Landing lists ===== */

body.crx-articleindexpage time,
body.crx-articleindexpage .date,
body.crx-articleindexpage .article-date,
body.crx-articleindexpage .article-meta,
body.crx-articleindexpage .text-muted,
body.crx-articlelandingpage time,
body.crx-articlelandingpage .date,
body.crx-articlelandingpage .article-date,
body.crx-articlelandingpage .article-meta,
body.crx-articlelandingpage .text-muted {
    display: none !important;
}


/* ===== ARTICLE DETAIL PAGES ===== */

/* ===== ARTICLE DETAIL PAGES ===== */

body.crx-articlepage #content,
body.crx-articlepage .crx-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

body.crx-articlepage h1 {
    max-width: 1000px;
    margin-bottom: 2rem;
}

body.crx-articlepage p,
body.crx-articlepage li {
    font-size: 1.05rem;
    line-height: 1.7;
}

body.crx-articlepage .richtext-image,
body.crx-articlepage .block-image img,
body.crx-articlepage figure img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    object-fit: contain;
    margin: 2rem auto 0.75rem auto;
}

body.crx-articlepage figure {
    max-width: 760px;
    margin: 2rem auto;
}

body.crx-articlepage figcaption {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-top: 0.4rem;
}


/* ===== EVENT DETAIL PAGES ===== */

/* ===== EVENT DETAIL PAGES ===== */

body.crx-eventpage #content,
body.crx-eventpage .crx-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

body.crx-eventpage .hero-bg {
    min-height: 220px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

body.crx-eventpage .hero-bg h1 {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}




/* ===== Responsive card grids ===== */

@media (max-width: 992px) {
    body.crx-articleindexpage .crx-grid > .row:has(.card),
    body.crx-eventindexpage .crx-grid > .row:has(.card) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.crx-articleindexpage .crx-grid > .row:has(.card),
    body.crx-eventindexpage .crx-grid > .row:has(.card) {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   NEWS PAGE FIXES
   Fix hero title alignment and remove excessive blank card space
   ========================================================= */


/* Keep hero title aligned with the main content column */
/* ===== HERO TITLE ALIGNMENT ===== */

body.crx-webpage .hero-bg,
body.crx-articleindexpage .hero-bg,
body.crx-eventindexpage .hero-bg {
    box-sizing: border-box;
    padding-left: max(1.5rem, calc((100vw - 1120px) / 2 + 1.5rem));
    padding-right: 1.5rem;
}


/* Do not stretch article landing cards vertically */
body.crx-articleindexpage .crx-grid > .row:has(.card) {
    align-items: start;
}


/* Let cards keep natural height instead of filling the whole grid row */
body.crx-articleindexpage .card {
    height: auto;
    min-height: 0;
}


/* Let card body use natural height */
body.crx-articleindexpage .card-body {
    flex: 0 1 auto;
}


/* Do not push footer to the bottom if this creates a large blank area */
body.crx-articleindexpage .card-footer {
    margin-top: 0;
}
/* ===== DMRI footer ===== */

.dm-footer {
    margin-top: 3rem;
    padding: 1.5rem 0 !important;
    background: #0b1f3a;
    color: #ffffff;
    font-size: 0.95rem;
}

/* Reduce internal CRX spacing */
.dm-footer .container,
.dm-footer .container-fluid,
.dm-footer .crx-grid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dm-footer .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    row-gap: 0.75rem;
}

.dm-footer [class*="col"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer headings */
.dm-footer h1,
.dm-footer h2,
.dm-footer h3,
.dm-footer h4,
.dm-footer h5,
.dm-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 0 !important;
    margin-bottom: 0.45rem !important;
    line-height: 1.2;
}

/* Main footer title */
.dm-footer h2:first-child,
.dm-footer h3:first-child {
    margin-bottom: 1.2rem !important;
}

/* Footer text */
.dm-footer p {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 0.25rem !important;
    line-height: 1.45;
}

.dm-footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.dm-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
/* ===== Sticky footer layout ===== */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > nav.navbar {
    flex: 0 0 auto;
    width: 100%;
}

#content {
    flex: 0 0 auto;
    width: 100%;
}

#content-walls {
    flex: 1 0 auto;
    width: 100%;
}

footer,
.dm-footer {
    flex: 0 0 auto;
    width: 100%;
}

/* Header / navbar must keep normal layout */
body > nav.navbar {
    flex: 0 0 auto;
    width: 100%;
}

/* Empty CRX content wrapper should not take vertical space */
#content {
    flex: 0 0 auto;
    width: 100%;
}

/* Main rendered page content */
#content-walls {
    flex: 1 0 auto;
    width: 100%;
}

/* Footer */
footer,
.dm-footer {
    flex: 0 0 auto;
    width: 100%;
}
/* Hide dates in Related cards on article/service pages */

#carousel-1,
#carousel-1 .carousel-inner,
#carousel-1 .carousel-item {
    height: 480px;
}

#carousel-1 .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
/* ===== NORMAL PAGE TITLES FOR NEWS & EVENTS INDEX PAGES ===== */

body.crx-articleindexpage #content > h1,
body.crx-articleindexpage #content > .container > h1,
body.crx-articleindexpage #content > .container-fluid > h1,
body.crx-eventindexpage #content > h1,
body.crx-eventindexpage #content > .container > h1,
body.crx-eventindexpage #content > .container-fluid > h1 {
    max-width: 1120px;
    margin: 3rem auto 2rem auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ===== Navbar alignment ===== */

body > nav.navbar {
    flex: 0 0 auto;
    width: 100%;
}

/* Keep navbar content aligned with main page container */
body > nav.navbar .container,
body > nav.navbar .container-fluid {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
/* =========================================================
   ARTICLE INDEX CHILD PAGE CARDS
   Auto-generated cards from Layout -> Show Child Pages
   ========================================================= */

body.crx-articleindexpage #content > .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
}

/* CRX renders child articles inside one Bootstrap column.
   Make that inner column the card grid. */
body.crx-articleindexpage #content > .container > .row > [class*="col-"]:has(.card) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;

    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove Bootstrap row side offsets */
body.crx-articleindexpage #content > .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Card layout */
body.crx-articleindexpage #content > .container .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0 !important;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #fff;
}

/* Cover image from Article Page */
body.crx-articleindexpage #content > .container .card-img-top {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Card body */
body.crx-articleindexpage #content > .container .card-body {
    padding: 1rem;
}

/* Title */
body.crx-articleindexpage #content > .container .card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

body.crx-articleindexpage #content > .container .card-title a {
    text-decoration: none;
}

body.crx-articleindexpage #content > .container .card-title a:hover {
    text-decoration: underline;
}

/* Date */
body.crx-articleindexpage #content > .container .card-body > p.card-text:first-of-type {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Excerpt */
body.crx-articleindexpage #content > .container .card-body > p.card-text:nth-of-type(2) {
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    body.crx-articleindexpage #content > .container > .row > [class*="col-"]:has(.card) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.crx-articleindexpage #content > .container > .row > [class*="col-"]:has(.card) {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   RI CONSORTIUM TEMPLATE — CUSTOM PAGE MODELS
   ============================================================ */

/* Main page container */
.ri-page {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* Page titles */
.ri-page h1 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Lead text */
.ri-page .lead {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* General spacing for headings inside RI pages */
.ri-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-size: 1.55rem;
}

.ri-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Cards in index/category pages */
.ri-page .card {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.ri-page .card-body {
    padding: 1.25rem;
}

.ri-page .card h2,
.ri-page .card .h5 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.ri-page .card a {
    text-decoration: none;
}

.ri-page .card a:hover {
    text-decoration: underline;
}

/* Partner logo / images in cards */
.ri-page .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 1rem;
}

/* Large logo on partner page */
.ri-partner-page img.img-fluid {
    max-height: 260px;
    object-fit: contain;
    display: block;
    margin: 0 auto 2rem auto;
}

/* Facts box: service category, hosting partner, facility status etc. */
.ri-facts {
    margin: 1.5rem 0 2rem 0;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
}

.ri-facts p {
    margin-bottom: 0.5rem;
}

.ri-facts p:last-child {
    margin-bottom: 0;
}

/* Lists on service/resource pages */
.ri-service-page ul,
.ri-resource-page ul,
.ri-facility-page ul,
.ri-partner-page ul {
    margin-bottom: 1.5rem;
}

.ri-service-page li,
.ri-resource-page li {
    margin-bottom: 0.35rem;
}

/* Long rich text areas */
.ri-service-page p,
.ri-resource-page p,
.ri-facility-page p,
.ri-partner-page p {
    line-height: 1.6;
}
/* ===== RI SERVICE PAGE COVER IMAGE ===== */

.ri-service-cover {
    max-width: 960px;
    margin: 1.5rem auto 2rem auto;
    text-align: center;
}

.ri-service-cover-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0.35rem;
}

/* Metadata text in cards */
.ri-meta {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.75rem;
}

/* Better mobile spacing */
@media (max-width: 768px) {
    .ri-page {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .ri-page .card-img-top {
        height: 140px;
    }

    .ri-page h1 {
        font-size: 1.8rem;
    }
}

.page-display-date {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}
/* ===== RI PILOT CHAIN PAGES ===== */

.ri-pilot-chain-index-page,
.ri-pilot-chain-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

.ri-pilot-chain-page .ri-page-header,
.ri-pilot-chain-index-page .ri-page-header {
    margin-bottom: 2rem;
}

.ri-pilot-chain-page .ri-page-header h1,
.ri-pilot-chain-index-page .ri-page-header h1 {
    text-align: left;
    margin-bottom: 1rem;
}

.ri-page-summary,
.ri-page-intro {
    max-width: 900px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.ri-pilot-chain-page .ri-section {
    max-width: 920px;
    margin-bottom: 2.25rem;
}

.ri-pilot-chain-page .ri-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.55rem;
}

.ri-pilot-chain-page .ri-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.ri-pilot-chain-page .ri-section p,
.ri-pilot-chain-page .ri-section li {
    line-height: 1.6;
}

.ri-linked-objects {
    max-width: 920px;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.ri-linked-group {
    margin-bottom: 1.5rem;
}

.ri-linked-group ul {
    margin-top: 0.5rem;
}

/* ===== RI PILOT CHAIN INDEX CARDS ===== */

.ri-pilot-chain-index-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

.ri-pilot-chain-index-page .ri-page-header {
    max-width: 900px;
    margin-bottom: 2rem;
}

.ri-pilot-chain-index-page .ri-page-header h1 {
    margin-bottom: 1rem;
}

.ri-pilot-chain-index-page .ri-page-intro {
    max-width: 900px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Grid */
.ri-pilot-chain-index-page .ri-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* Card */
.ri-pilot-chain-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #fff;
}

/* Image area */
.ri-card-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.ri-card-image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
}


/* Card body */
.ri-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

/* Title */
.ri-pilot-chain-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

/* Summary text */
.ri-pilot-chain-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Limit long summaries on cards */
.ri-pilot-chain-card .ri-card-body > p {
    display: -webkit-box;

    /* standard */
    line-clamp: 6;

    /* browser support */
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* Bottom link */
.ri-card-link {
    margin-top: auto;
    padding-top: 1rem;
}
@media (max-width: 992px) {
    .ri-pilot-chain-index-page .ri-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ri-pilot-chain-index-page .ri-card-grid {
        grid-template-columns: 1fr;
    }

    .ri-pilot-chain-index-page {
        padding: 2rem 1rem 3rem 1rem;
    }
}
/* ===== RI REVERSE LINKS TO PILOT CHAINS ===== */

.ri-used-in-pilot-chains {
    max-width: 920px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.ri-used-in-pilot-chains h2 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

.ri-used-in-pilot-chains ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.ri-used-in-pilot-chains li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

/* ===== TRAINING CATALOGUE ===== */

.training-catalogue-page,
.training-item-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
}

.training-page-header {
    max-width: 900px;
    margin-bottom: 2rem;
}

.training-page-header h1,
.training-item-page h1 {
    margin-bottom: 1rem;
}

.training-page-intro,
.training-item-lead {
    max-width: 900px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.training-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.training-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.training-card-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

.training-card-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.training-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.training-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.training-card p {
    line-height: 1.5;
}

.training-card-meta {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.training-card-meta p {
    margin-bottom: 0.25rem;
}

.training-tags {
    margin-top: 0.75rem;
}

.training-tags span {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f1f3f5;
    font-size: 0.85rem;
}

.training-card-link {
    margin-top: auto;
    padding-top: 1rem;
}

.training-facts {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #0d6efd;
    background: #f8f9fa;
}

.training-facts p {
    margin-bottom: 0.4rem;
}

.training-item-cover {
    display: block;
    max-width: 900px;
    width: 100%;
    height: auto;
    margin: 1rem auto 2rem auto;
}

.training-body {
    margin-top: 2rem;
}

.training-section {
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .training-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .training-card-grid {
        grid-template-columns: 1fr;
    }

    .training-catalogue-page,
    .training-item-page {
        padding: 2rem 1rem 3rem 1rem;
    }
}

/* ===== TRAINING FILTERS ===== */

.training-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1.5rem 0 2rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.training-filter-input,
.training-filter-select {
    min-width: 180px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 0.35rem;
}

.training-filter-input {
    flex: 1 1 240px;
}

.training-filter-button {
    padding: 0.45rem 0.9rem;
    border: 1px solid #0d6efd;
    border-radius: 0.35rem;
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
}

.training-filter-reset {
    padding: 0.45rem 0.6rem;
}
/* ===== Home page: What we offer cards ===== */

.home-offer-card {
    height: 100%;
}

.home-offer-card.card,
.home-offer-card .card {
    height: 100%;
}

.home-offer-card .card-img-top,
.home-offer-card > img,
.home-offer-card img.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.home-offer-card .card-body {
    padding: 1rem;
    min-height: 80px;
}

.home-offer-card .card-footer {
    padding: 1rem;
}

/* базовий заголовок-посилання */
.home-offer-card .card-body a {
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
}

/* керування розміром заголовка з адмінки */
.offer-title-sm .card-body a {
    font-size: 0.95rem !important;
}

.offer-title-md .card-body a {
    font-size: 1.05rem !important;
}

.offer-title-lg .card-body a {
    font-size: 1.25rem !important;
}

.offer-title-xl .card-body a {
    font-size: 1.45rem !important;
}
/* ===== Pilot example cards ===== */

.pilot-example-card.card,
.pilot-example-card .card {
    height: auto !important;
    min-height: 0 !important;
}

.pilot-example-card .card-img-top,
.pilot-example-card img.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.pilot-example-card .card-body {
    padding: 1rem;
    min-height: 0 !important;
}

.pilot-example-card .card-footer {
    padding: 1rem;
}

/* Pilot example title sizes */
.pilot-title-md .card-body a,
.pilot-title-md .card-title a,
.pilot-title-md .card-title {
    font-size: 1.05rem !important;
    line-height: 1.3;
    font-weight: 700;
}

.pilot-title-lg .card-body a,
.pilot-title-lg .card-title a,
.pilot-title-lg .card-title {
    font-size: 1.2rem !important;
    line-height: 1.3;
    font-weight: 700;
}

.pilot-title-xl .card-body a,
.pilot-title-xl .card-title a,
.pilot-title-xl .card-title {
    font-size: 1.35rem !important;
    line-height: 1.3;
    font-weight: 700;
}
/* ===== Home carousel: base layout ===== */

#carousel-1,
#carousel-1 .carousel-inner,
#carousel-1 .carousel-item {
    height: 480px;
}

#carousel-1 .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ===== Home carousel: caption base ===== */

#carousel-1 .carousel-caption {
    top: 50% !important;
    bottom: auto !important;
    left: 15% !important;
    right: 15% !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
    z-index: 20 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

/* ===== Home carousel: left caption ===== */

#carousel-1 .carousel-item.hero-caption-left .carousel-caption {
    left: 8% !important;
    right: auto !important;
    width: min(720px, 45vw) !important;
    max-width: 720px !important;
    text-align: left !important;
}

/* ===== Home carousel: right caption ===== */

#carousel-1 .carousel-item.hero-caption-right .carousel-caption {
    left: auto !important;
    right: 8% !important;
    width: min(720px, 45vw) !important;
    max-width: 720px !important;
    text-align: right !important;
}

/* ===== Home carousel: button ===== */

#carousel-1 .carousel-caption .btn,
#carousel-1 .carousel-caption a.btn {
    position: relative !important;
    z-index: 30 !important;
    font-size: 1.15rem !important;
    padding: 0.75rem 1.4rem !important;
    font-weight: 600 !important;
    pointer-events: auto !important;
}

/* ===== Home carousel: keep arrow zones narrow ===== */

#carousel-1 .carousel-control-prev,
#carousel-1 .carousel-control-next {
    width: 5% !important;
    z-index: 10 !important;
}
/* ===== Carousel caption left positioning ===== */

#carousel-1 .carousel-caption.hero-caption-left,
#carousel-1 .carousel-item.hero-caption-left .carousel-caption,
#carousel-1 .hero-caption-left .carousel-caption {
    left: 10% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: left !important;
    max-width: 760px !important;
}

/* Якщо hero-caption-left потрапив не на caption, а на сам текст */
#carousel-1 .carousel-caption:has(.hero-caption-left) {
    left: 10% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: left !important;
    max-width: 760px !important;
}

#carousel-1 .carousel-caption.hero-caption-left *,
#carousel-1 .carousel-caption:has(.hero-caption-left) *,
#carousel-1 .carousel-item.hero-caption-left .carousel-caption *,
#carousel-1 .hero-caption-left .carousel-caption * {
    text-align: left !important;
}
/* ===== Carousel caption positioning by slide class ===== */

.carousel-item.hero-caption-left .carousel-caption {
    left: 8% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: left !important;
    max-width: 760px !important;
}

.carousel-item.hero-caption-center .carousel-caption {
    left: 15% !important;
    right: 15% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
}

.carousel-item.hero-caption-right .carousel-caption {
    left: auto !important;
    right: 8% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: right !important;
    max-width: 760px !important;
}

.carousel-item.hero-caption-left .carousel-caption *,
.carousel-item.hero-caption-left .carousel-caption .rich-text,
.carousel-item.hero-caption-left .carousel-caption p,
.carousel-item.hero-caption-left .carousel-caption h1,
.carousel-item.hero-caption-left .carousel-caption h2,
.carousel-item.hero-caption-left .carousel-caption h3 {
    text-align: left !important;
}

.carousel-item.hero-caption-right .carousel-caption *,
.carousel-item.hero-caption-right .carousel-caption .rich-text,
.carousel-item.hero-caption-right .carousel-caption p,
.carousel-item.hero-caption-right .carousel-caption h1,
.carousel-item.hero-caption-right .carousel-caption h2,
.carousel-item.hero-caption-right .carousel-caption h3 {
    text-align: right !important;
}
/* ===== Ukrainian home carousel caption ===== */

.carousel-item.hero-caption-left-uk .carousel-caption {
    left: 8% !important;
    right: auto !important;
    top: 52% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: left !important;
    max-width: 980px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.carousel-item.hero-caption-left-uk .carousel-caption p,
.carousel-item.hero-caption-left-uk .carousel-caption h1,
.carousel-item.hero-caption-left-uk .carousel-caption h2,
.carousel-item.hero-caption-left-uk .carousel-caption h3 {
    font-size: clamp(2.1rem, 3.2vw, 3.6rem) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    text-align: left !important;
    margin-bottom: 1rem !important;
}

.carousel-item.hero-caption-left-uk .carousel-caption .btn {
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
}

/* Medium screens */
@media (max-width: 1100px) {
    .carousel-item.hero-caption-left-uk .carousel-caption {
        left: 7% !important;
        top: 53% !important;
        max-width: 760px !important;
    }

    .carousel-item.hero-caption-left-uk .carousel-caption p,
    .carousel-item.hero-caption-left-uk .carousel-caption h1,
    .carousel-item.hero-caption-left-uk .carousel-caption h2,
    .carousel-item.hero-caption-left-uk .carousel-caption h3 {
        font-size: clamp(2rem, 3.8vw, 3rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 0.85rem !important;
    }
}

/* Narrow preview / tablet */
@media (max-width: 900px) {
    .carousel-item.hero-caption-left-uk .carousel-caption {
        left: 6% !important;
        top: 54% !important;
        max-width: 650px !important;
    }

    .carousel-item.hero-caption-left-uk .carousel-caption p,
    .carousel-item.hero-caption-left-uk .carousel-caption h1,
    .carousel-item.hero-caption-left-uk .carousel-caption h2,
    .carousel-item.hero-caption-left-uk .carousel-caption h3 {
        font-size: 2rem !important;
        line-height: 1.08 !important;
    }

    .carousel-item.hero-caption-left-uk .carousel-caption .btn {
        font-size: 0.88rem !important;
        padding: 0.45rem 0.85rem !important;
    }
}
/* ===== Ukrainian centered carousel captions ===== */

.carousel-item.hero-caption-center-uk .carousel-caption {
    left: 12% !important;
    right: 12% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.carousel-item.hero-caption-center-uk .carousel-caption p,
.carousel-item.hero-caption-center-uk .carousel-caption h1,
.carousel-item.hero-caption-center-uk .carousel-caption h2,
.carousel-item.hero-caption-center-uk .carousel-caption h3 {
    font-size: clamp(2.2rem, 4.2vw, 4.4rem) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    text-align: center !important;
}
/* ===== Ukrainian carousel caption: right aligned ===== */

.carousel-item.hero-caption-right-uk .carousel-caption {
    left: auto !important;
    right: 8% !important;
    top: 52% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    text-align: right !important;
    max-width: 880px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.carousel-item.hero-caption-right-uk .carousel-caption p,
.carousel-item.hero-caption-right-uk .carousel-caption h1,
.carousel-item.hero-caption-right-uk .carousel-caption h2,
.carousel-item.hero-caption-right-uk .carousel-caption h3 {
    font-size: clamp(2.1rem, 3.2vw, 3.6rem) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    text-align: right !important;
    margin-bottom: 1rem !important;
}

.carousel-item.hero-caption-right-uk .carousel-caption .btn {
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
}

/* Medium screens */
@media (max-width: 1100px) {
    .carousel-item.hero-caption-right-uk .carousel-caption {
        right: 7% !important;
        top: 53% !important;
        max-width: 760px !important;
    }

    .carousel-item.hero-caption-right-uk .carousel-caption p,
    .carousel-item.hero-caption-right-uk .carousel-caption h1,
    .carousel-item.hero-caption-right-uk .carousel-caption h2,
    .carousel-item.hero-caption-right-uk .carousel-caption h3 {
        font-size: clamp(2rem, 3.8vw, 3rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 0.85rem !important;
    }
}

/* Narrow preview / tablet */
@media (max-width: 900px) {
    .carousel-item.hero-caption-right-uk .carousel-caption {
        right: 6% !important;
        top: 54% !important;
        max-width: 650px !important;
    }

    .carousel-item.hero-caption-right-uk .carousel-caption p,
    .carousel-item.hero-caption-right-uk .carousel-caption h1,
    .carousel-item.hero-caption-right-uk .carousel-caption h2,
    .carousel-item.hero-caption-right-uk .carousel-caption h3 {
        font-size: 2rem !important;
        line-height: 1.08 !important;
    }

    .carousel-item.hero-caption-right-uk .carousel-caption .btn {
        font-size: 0.88rem !important;
        padding: 0.45rem 0.85rem !important;
    }
}
/* ===== Carousel controls clickable area ===== */

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: 7% !important;
    min-width: 56px !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 40 !important;
    opacity: 0.85 !important;
    cursor: pointer !important;
}

.carousel .carousel-control-prev {
    left: 0 !important;
}

.carousel .carousel-control-next {
    right: 0 !important;
}

.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    pointer-events: none !important;
}

.carousel .carousel-caption {
    z-index: 10 !important;
}

.carousel .carousel-indicators {
    z-index: 30 !important;
}
/* ===== Language switcher ===== */

.navbar-tools {
    gap: 0;
}

.language-switcher {
    min-width: 2.4rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-tools {
        align-items: flex-start !important;
        flex-direction: column;
        margin-top: 0.5rem;
    }

    .language-switcher {
        margin-bottom: 0.5rem;
        width: fit-content;
    }
}
/* ===== Language switcher ===== */

.navbar-tools {
    gap: 0;
}

.language-switcher {
    min-width: 2.4rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-tools {
        align-items: flex-start !important;
        flex-direction: column;
        margin-top: 0.5rem;
    }

    .language-switcher {
        margin-bottom: 0.5rem;
        width: fit-content;
    }
}

/* =========================================================
   MOBILE HERO CAROUSEL
   ========================================================= */

@media (max-width: 767.98px) {

    /* Однакова висота hero для всіх EN та UK слайдів */
    .carousel-item.hero-mobile {
        position: relative;
        height: clamp(360px, 105vw, 460px);
        overflow: hidden;
    }

    /* Однакове заповнення області зображенням */
    .carousel-item.hero-mobile > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center;
    }

    /* Затемнення для читабельності напису */
    .carousel-item.hero-mobile::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.35) 58%,
            rgba(0, 0, 0, 0.10) 100%
        );
    }

    /*
     * CRX використовує d-none d-md-block.
     * На телефоні примусово повертаємо caption.
     */
    .carousel-item.hero-mobile
    .carousel-caption.d-none.d-md-block {
        display: block !important;
        z-index: 2;

        top: 50% !important;
        bottom: auto !important;

        left: 7% !important;
        right: 7% !important;

        transform: translateY(-50%) !important;

        padding: 0 !important;
        text-align: left !important;
    }

    /* Розмір головного напису */
    .carousel-item.hero-mobile .carousel-caption p,
    .carousel-item.hero-mobile .carousel-caption h1,
    .carousel-item.hero-mobile .carousel-caption h2,
    .carousel-item.hero-mobile .carousel-caption h3 {
        margin: 0 0 1rem 0 !important;

        font-size: clamp(1.7rem, 7vw, 2.5rem) !important;
        line-height: 1.08 !important;
        font-weight: 700 !important;

        color: #fff !important;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.75),
            0 4px 12px rgba(0, 0, 0, 0.45);
    }

    /* Кнопка */
    .carousel-item.hero-mobile .carousel-caption .btn {
        padding: 0.6rem 0.9rem !important;
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

    /* Стрілки мають бути вище затемнення */
    .carousel-control-prev,
    .carousel-control-next {
        z-index: 3;
        width: 13%;
    }

    .carousel-indicators {
        z-index: 3;
    }

    /* Зберігаємо різні варіанти вирівнювання */
    .carousel-item.hero-mobile.hero-caption-center
    .carousel-caption {
        text-align: center !important;
    }

    .carousel-item.hero-mobile.hero-caption-right
    .carousel-caption {
        text-align: right !important;
    }

    .carousel-item.hero-mobile.hero-caption-left
    .carousel-caption {
        text-align: left !important;
    }
}
@media (max-width: 767.98px) {

    .carousel-item.hero-mobile.hero-image-left > img {
        object-position: 25% center !important;
    }

    .carousel-item.hero-mobile.hero-image-center > img {
        object-position: 50% center !important;
    }

    .carousel-item.hero-mobile.hero-image-right > img {
        object-position: 75% center !important;
    }
}
/* FAIR Center custom text colors */

.text-navy-blue,
.text-navy-blue *,
.crx-grid .text-navy-blue,
.crx-grid .text-navy-blue * {
  color: #003366 !important;
}

.text-navy,
.text-navy *,
.crx-grid .text-navy,
.crx-grid .text-navy * {
  color: #001f3f !important;
}


/* JSON example block */

.json-example-block {
  background: #0b1220 !important;
  color: #e6f1ff !important;
  border-radius: 0.75rem !important;
  box-shadow:
    0 0.85rem 2rem rgba(0, 31, 63, 0.22),
    0 0.25rem 0.75rem rgba(0, 80, 160, 0.14) !important;
  margin: 1.5rem 0 2rem 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 123, 255, 0.35) !important;
}

.json-example-title {
  background: #003366 !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.json-example-block pre {
  background: #0b1220 !important;
  color: #e6f1ff !important;
  margin: 0 !important;
  padding: 1.25rem !important;
  overflow-x: auto !important;
  white-space: pre !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  max-height: 600px !important;
}

.json-example-block code {
  background: transparent !important;
  color: #e6f1ff !important;
  font-family: Consolas, "Courier New", monospace !important;
  font-size: inherit !important;
  white-space: pre !important;
}
/* ===== DATA CAFE SERVICE PAGE ===== */

.dc-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem 1.25rem;
}

.dc-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: #3867a3;
}

.dc-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #f4f9ff 0%, #eaf5ff 100%);
    border: 1px solid #d7e7f7;
    border-radius: 1rem;
    padding: 3rem 3.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 55, 120, 0.08);
}

.dc-hero h1 {
    color: #003366;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.dc-hero p {
    color: #1b2f4a;
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 620px;
}

.dc-hero-visual {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-hero-visual-inner {
    width: 100%;
    max-width: 340px;
    min-height: 210px;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 123, 255, 0.18), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(0, 51, 102, 0.14), transparent 35%),
        #ffffff;
    border: 1px solid #d5e7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003366;
    font-size: 5rem;
    box-shadow: inset 0 0 0 8px rgba(245, 250, 255, 0.9);
}

.dc-button {
    display: inline-block;
    background: #005fd1;
    color: #ffffff !important;
    padding: 0.85rem 1.35rem;
    border-radius: 0.45rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0.35rem 0.9rem rgba(0, 95, 209, 0.22);
}

.dc-button:hover {
    background: #004da8;
    color: #ffffff !important;
}

.dc-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem 0;
}

.dc-card {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 0.85rem;
    padding: 1.6rem;
    box-shadow: 0 0.45rem 1.4rem rgba(0, 55, 120, 0.06);
}

.dc-card-horizontal {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.2rem;
    align-items: start;
}

.dc-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #eaf5ff;
    color: #005fd1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.dc-card h2,
.dc-card h3 {
    color: #003366;
    font-weight: 750;
    margin-bottom: 0.65rem;
}

.dc-card p,
.dc-card li {
    color: #22334d;
    line-height: 1.55;
}

.dc-process {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.dc-step {
    text-align: center;
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 0.85rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 0.35rem 1.1rem rgba(0, 55, 120, 0.05);
}

.dc-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #005fd1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.dc-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1.3rem;
    margin-top: 1rem;
}

.dc-check {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.55rem;
    align-items: start;
    color: #22334d;
}

.dc-check::before {
    content: "✓";
    color: #005fd1;
    font-weight: 800;
}

.dc-wide-card {
    background: #f7fbff;
    border: 1px solid #dbe6f2;
    border-radius: 0.85rem;
    padding: 1.6rem;
    margin: 1.25rem 0;
}

.dc-cafe-note {
    background: linear-gradient(135deg, #fff9ec 0%, #fff4d9 100%);
    border: 1px solid #f1d796;
}

.dc-outcomes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.dc-outcome {
    border-left: 4px solid #005fd1;
    padding-left: 0.8rem;
    color: #22334d;
}

.dc-cta {
    text-align: center;
    background: linear-gradient(135deg, #edf7ff 0%, #f8fcff 100%);
    border: 1px solid #dbe6f2;
    border-radius: 0.85rem;
    padding: 2rem;
    margin: 1.25rem 0;
}

.dc-related {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dc-related-card {
    text-align: center;
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 0.85rem;
    padding: 1.25rem 1rem;
    text-decoration: none !important;
    color: #003366 !important;
    box-shadow: 0 0.35rem 1.1rem rgba(0, 55, 120, 0.05);
}

.dc-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 55, 120, 0.12);
}

@media (max-width: 991.98px) {
    .dc-hero,
    .dc-section-grid,
    .dc-checklist {
        grid-template-columns: 1fr;
    }

    .dc-process,
    .dc-outcomes,
    .dc-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-hero {
        padding: 2rem;
    }

    .dc-hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 575.98px) {
    .dc-process,
    .dc-outcomes,
    .dc-related {
        grid-template-columns: 1fr;
    }

    .dc-card-horizontal {
        grid-template-columns: 1fr;
    }
}

/* ===== FAIR CENTER COLUMN COLORS ===== */

.fc-col-padding {
    padding: 1.5rem !important;
}

.fc-col-rounded {
    border-radius: 0.85rem !important;
}

.fc-col-soft-blue {
    background: #eef6ff !important;
}

.fc-col-soft-cyan {
    background: #eafaff !important;
}

.fc-col-soft-green {
    background: #effaf3 !important;
}

.fc-col-soft-yellow {
    background: #fff8e6 !important;
}

.fc-col-soft-purple {
    background: #f5f1ff !important;
}

.fc-col-navy {
    background: #003366 !important;
    color: #ffffff !important;
}

.fc-col-navy h1,
.fc-col-navy h2,
.fc-col-navy h3,
.fc-col-navy h4,
.fc-col-navy p,
.fc-col-navy li {
    color: #ffffff !important;
}

/* ===== FAIR CENTER CARD COLORS ===== */

.fc-card-white,
.fc-card-white .card {
    background: #ffffff !important;
    border-radius: 0.85rem !important;
}

.fc-card-blue,
.fc-card-blue .card {
    background: #eef6ff !important;
    border: 1px solid #cfe3fa !important;
    border-radius: 0.85rem !important;
}

.fc-card-cyan,
.fc-card-cyan .card {
    background: #eafaff !important;
    border: 1px solid #c9edf5 !important;
    border-radius: 0.85rem !important;
}

.fc-card-green,
.fc-card-green .card {
    background: #effaf3 !important;
    border: 1px solid #cfead8 !important;
    border-radius: 0.85rem !important;
}

.fc-card-yellow,
.fc-card-yellow .card {
    background: #fff8e6 !important;
    border: 1px solid #f1dd9e !important;
    border-radius: 0.85rem !important;
}

.fc-card-purple,
.fc-card-purple .card {
    background: #f5f1ff !important;
    border: 1px solid #ddd2ff !important;
    border-radius: 0.85rem !important;
}

.fc-card-navy,
.fc-card-navy .card {
    background: #003366 !important;
    color: #ffffff !important;
    border: 1px solid #003366 !important;
    border-radius: 0.85rem !important;
}

.fc-card-navy h1,
.fc-card-navy h2,
.fc-card-navy h3,
.fc-card-navy h4,
.fc-card-navy p,
.fc-card-navy li,
.fc-card-navy .card-title,
.fc-card-navy .card-text {
    color: #ffffff !important;
}

.fc-card-border-blue,
.fc-card-border-blue .card {
    border: 1px solid #b7d4f4 !important;
}

.fc-card-shadow,
.fc-card-shadow .card {
    box-shadow: 0 0.65rem 1.6rem rgba(0, 51, 102, 0.12) !important;
}

.fc-card-hover,
.fc-card-hover .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-card-hover:hover,
.fc-card-hover:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.2rem rgba(0, 51, 102, 0.18) !important;
}

/* ===== FAIR CENTER CARD HEIGHTS ===== */

.fc-card-h-180,
.fc-card-h-180 .card {
    min-height: 180px !important;
}

.fc-card-h-220,
.fc-card-h-220 .card {
    min-height: 220px !important;
}

.fc-card-h-260,
.fc-card-h-260 .card {
    min-height: 260px !important;
}

.fc-card-h-300,
.fc-card-h-300 .card {
    min-height: 300px !important;
}

.fc-card-h-360,
.fc-card-h-360 .card {
    min-height: 360px !important;
}

/* Розтягує картку на всю висоту колонки */
.fc-card-full-height,
.fc-card-full-height .card {
    height: 100% !important;
}

/* Щоб вміст картки нормально розподілявся всередині */
.fc-card-flex,
.fc-card-flex .card,
.fc-card-flex .card-body {
    display: flex !important;
    flex-direction: column !important;
}

/* Кнопку або посилання можна притиснути донизу картки */
.fc-card-link-bottom .card-body a:last-child,
.fc-card-link-bottom .card-body .btn:last-child {
    margin-top: auto !important;
}

/* ===== COMPACT SERVICE CARDS ===== */

.fc-card-h-110,
.fc-card-h-110 .card {
    min-height: 110px !important;
}

.fc-card-h-130,
.fc-card-h-130 .card {
    min-height: 130px !important;
}

.fc-card-h-150,
.fc-card-h-150 .card {
    min-height: 150px !important;
}

/* Робить тіло картки flex-контейнером */
.fc-card-center .card,
.fc-card-center .card,
.fc-card-center .card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Прибирає зайві відступи всередині компактної картки */
.fc-card-compact,
.fc-card-compact .card,
.fc-card-compact .card-body {
    padding: 1rem !important;
}

/* Обмежує заголовок і вирівнює його */
.fc-card-compact h1,
.fc-card-compact h2,
.fc-card-compact h3,
.fc-card-compact h4,
.fc-card-compact p,
.fc-card-compact .card-title,
.fc-card-compact .card-text {
    margin-bottom: 0 !important;
    line-height: 1.35 !important;
}
.fc-card-fixed-150,
.fc-card-fixed-150 .card {
    height: 150px !important;
    min-height: 150px !important;
}
/* ===== FAIR CENTER TEXT COLORS ===== */



.fc-text-white,
.fc-text-white *,
.fc-text-white .card,
.fc-text-white .card-body,
.fc-text-white .card-title,
.fc-text-white .card-text,
.fc-text-white h1,
.fc-text-white h2,
.fc-text-white h3,
.fc-text-white h4,
.fc-text-white h5,
.fc-text-white h6,
.fc-text-white p,
.fc-text-white li,
.fc-text-white span {
    color: #ffffff !important;
}
/* ===== FAIR CENTER LINK COLORS ===== */

.fc-link-blue a,
.fc-link-blue .card a {
    color: #005fd1 !important;
}

.fc-link-blue a:hover,
.fc-link-blue .card a:hover {
    color: #003366 !important;
}

.fc-link-green a,
.fc-link-green .card a {
    color: #198754 !important;
}

.fc-link-green a:hover,
.fc-link-green .card a:hover {
    color: #0f5132 !important;
}

/* ===== TEXT COLOR UTILITIES — STRONG VERSION ===== */

.fc-text-blue,
.fc-text-blue *,
.fc-text-blue .card,
.fc-text-blue .card *,
.fc-text-blue .card-body,
.fc-text-blue .card-body *,
.fc-text-blue .card-title,
.fc-text-blue .card-title *,
.fc-text-blue .card-text,
.fc-text-blue .card-text *,
.fc-text-blue a:not(.btn),
.fc-text-blue a:not(.btn):visited,
.fc-text-blue a:not(.btn):hover {
    color: #003366 !important;
}

.fc-text-green,
.fc-text-green *,
.fc-text-green .card,
.fc-text-green .card *,
.fc-text-green .card-body,
.fc-text-green .card-body *,
.fc-text-green .card-title,
.fc-text-green .card-title *,
.fc-text-green .card-text,
.fc-text-green .card-text *,
.fc-text-green a:not(.btn),
.fc-text-green a:not(.btn):visited,
.fc-text-green a:not(.btn):hover {
    color: #198754 !important;
}

.fc-text-cyan,
.fc-text-cyan *,
.fc-text-cyan .card,
.fc-text-cyan .card *,
.fc-text-cyan .card-body,
.fc-text-cyan .card-body *,
.fc-text-cyan .card-title,
.fc-text-cyan .card-title *,
.fc-text-cyan .card-text,
.fc-text-cyan .card-text *,
.fc-text-cyan a:not(.btn),
.fc-text-cyan a:not(.btn):visited,
.fc-text-cyan a:not(.btn):hover {
    color: #0097a7 !important;
}
.fc-text-green .btn,
.fc-text-green .btn *,
.fc-text-green a.btn,
.fc-text-green a.btn:hover,
.fc-text-green a.btn:visited {
    color: #ffffff !important;
}

.fc-text-green .btn,
.fc-text-green .btn *,
.fc-text-green a.btn,
.fc-text-green a.btn:hover,
.fc-text-green a.btn:visited {
    color: #ffffff !important;
}
.fc-text-blue .btn,
.fc-text-blue .btn *,
.fc-text-blue a.btn,
.fc-text-blue a.btn:hover,
.fc-text-blue a.btn:visited {
    color: #ffffff !important;
}

/* ===== COMPACT RELATED LINKS BLOCK ===== */

.fc-related-wrap {
    display: block;
    width: 100%;
    max-width: 1140px;
    margin: 48px auto 0;
    padding: 0 12px;
    box-sizing: border-box;
}

/* =========================================================
   Related resources, glossary topics and services
========================================================= */

.fc-related-section ul {
    margin: 0;
    padding-left: 1.4rem;
}

.fc-related-section ul li {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin-bottom: 8px;
}

/* Посилання та вкладені елементи успадковують розмір li */
.fc-related-section ul li a,
.fc-related-section ul li p,
.fc-related-section ul li span,
.fc-related-section ul li strong {
    font-size: inherit !important;
    line-height: inherit !important;
}

.fc-related-section ul li p {
    display: inline;
    margin: 0;
}

.fc-related-section ul li a {
    font-weight: 500;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.fc-related-link {
    display: block;
    min-width: 0;
    padding: 22px 24px;

    background: #ffffff;
    border: 1px solid #b9d8ff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(9, 58, 120, 0.08);

    color: #082f6b;
    line-height: 1.45;
    text-decoration: none;

    overflow-wrap: break-word;
    word-break: normal;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-related-link:hover {
    color: #082f6b;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(9, 58, 120, 0.15);
}

.fc-related-link strong {
    display: block;
    margin-bottom: 8px;
    color: #003b7a;
    font-size: 1.15rem;
    line-height: 1.3;
}

.fc-related-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.45rem;
    background: #eaf5ff;
    color: #005fd1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.fc-related-title {
    color: #003366 !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.fc-related-arrow {
    color: #005fd1;
    font-weight: 800;
    font-size: 1rem;
}

@media (max-width: 1199.98px) {
    .fc-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    

    .fc-related-grid {
        grid-template-columns: 1fr;
    }
    .fc-related-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* ===== CARD GRID LAYOUTS ===== */

.fc-card-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

.fc-card-grid-5 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

@media (max-width: 991.98px) {
    .fc-card-grid-4,
    .fc-card-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575.98px) {
    .fc-card-grid-4,
    .fc-card-grid-5 {
        grid-template-columns: 1fr !important;
    }
}
/* ===== BUTTON WIDTH CONTROL ===== */

.fc-btn-inline .btn,
.fc-btn-inline a.btn,
.fc-btn-inline button,
.fc-btn-inline .btn-primary {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    justify-content: center !important;
}

.fc-btn-center .btn,
.fc-btn-center a.btn,
.fc-btn-center button,
.fc-btn-center .btn-primary {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    justify-content: center !important;
}

.fc-btn-full .btn,
.fc-btn-full a.btn,
.fc-btn-full button,
.fc-btn-full .btn-primary {
    width: 100% !important;
    max-width: 100% !important;
}
/* Ширина відповідає стандартному контейнеру верхньої частини сторінки */
.fc-content-container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 12px;
    box-sizing: border-box;
}

/* Чотири рівні колонки */
.fc-card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* Планшет */
@media (max-width: 992px) {
    .fc-card-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Мобільний екран */
@media (max-width: 576px) {
    .fc-content-container {
        padding-inline: 16px;
    }

    .fc-card-grid-4 {
        grid-template-columns: 1fr;
    }
}

.fc-download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.fc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    border: 1px solid #0d6efd;
    border-radius: 7px;

    background: #0d6efd;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fc-download-btn:hover {
    background: #084298;
    border-color: #084298;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.2);
}

.fc-download-btn-secondary {
    background: #ffffff;
    color: #0d6efd !important;
}

.fc-download-btn-secondary:hover {
    background: #eef5ff;
    color: #084298 !important;
}

.fc-code-block {
    width: 100%;
    margin: 16px 0 32px;
    padding: 20px 22px;

    overflow-x: auto;
    box-sizing: border-box;

    background: #f7f9fc;
    border: 1px solid #d6e4f5;
    border-radius: 10px;

    color: #17324d;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre;
}
/* Two-column card grid */
.fc-card-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

/* Direct children of the two-column grid */
.fc-card-grid-2 > div,
.fc-card-grid-2 > a {
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Cards used in the compatibility block */
.fc-compatibility-card {
    min-height: 210px;
    padding: 24px;
}

.fc-compatibility-card h3 {
    margin: 0 0 14px;
    line-height: 1.25;
}

.fc-compatibility-card p {
    margin: 0;
    line-height: 1.6;
}

/* Mobile layout */
@media (max-width: 767.98px) {
    .fc-card-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .fc-compatibility-card {
        min-height: auto;
    }
}

/* Glossary alphabetical navigation */

.fc-glossary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto 36px;
}

.fc-glossary-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #b9d8ff;
    border-radius: 10px;
    background: #ffffff;
    color: #003b7a;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(9, 58, 120, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.fc-glossary-nav a:hover,
.fc-glossary-nav a:focus {
    background: #eef7ff;
    color: #003b7a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(9, 58, 120, 0.13);
}


/* Glossary groups */

.fc-glossary-group {
    width: 100%;
    margin: 0 0 44px;
    scroll-margin-top: 100px;
}

.fc-glossary-letter {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b9d8ff;
    color: #003b7a;
    font-size: 2rem;
    line-height: 1.2;
}


/* Individual glossary entry */

.fc-glossary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.fc-glossary-entry {
    padding: 22px 24px;
    border: 1px solid #c8dfff;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(9, 58, 120, 0.07);
    scroll-margin-top: 100px;
}

.fc-glossary-entry h3 {
    margin: 0 0 8px;
    color: #003b7a;
    font-size: 1.35rem;
    line-height: 1.3;
}

.fc-glossary-equivalent {
    margin: 0 0 12px;
    color: #31577f;
    font-size: 0.96rem;
}

.fc-glossary-entry p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.fc-glossary-entry p:last-child {
    margin-bottom: 0;
}

.fc-glossary-related {
    padding-top: 10px;
    border-top: 1px solid #e2edf9;
    color: #31577f;
    font-size: 0.95rem;
}

.fc-back-to-top {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.92rem;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .fc-glossary-entry {
        padding: 18px;
    }

    .fc-glossary-letter {
        font-size: 1.65rem;
    }
}

/* External resource cards */

.fc-resource-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 24px;
    text-align: left;
    box-sizing: border-box;
}

.fc-resource-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin-bottom: 14px;
}

.fc-resource-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #b9d8ff;
    border-radius: 999px;
    background: #eef7ff;
    color: #31577f;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.fc-resource-card h4 {
    width: 100%;
    margin: 0 0 14px;
}

.fc-resource-card > p {
    width: 100%;
    margin: 0 0 16px;
}

.fc-resource-meta {
    width: 100%;
    margin-bottom: 20px;
}

.fc-resource-meta p {
    margin: 0 0 8px;
    color: #31577f;
    font-size: 0.94rem;
    line-height: 1.5;
}

.fc-resource-meta p:last-child {
    margin-bottom: 0;
}

.fc-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 16px;
    border: 1px solid #005ea8;
    border-radius: 9px;
    background: #005ea8;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.fc-resource-button:hover,
.fc-resource-button:focus {
    border-color: #003b7a;
    background: #003b7a;
    color: #ffffff;
    text-decoration: none;
}
/* =========================================================
   Web Page hero
   ========================================================= */

.hero-bg {
    position: relative;
    width: 100%;
    min-height: 230px;
    overflow: hidden;
    background: #062b55;
}

.hero-bg-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero-fg {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    min-height: 230px;
}

.hero-fg .container {
    position: relative;
    z-index: 2;
}

.hero-fg h1 {
    margin: 0;

    color: #ffffff;

    font-weight: 700;
    line-height: 1.2;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Analytical materials / Resource Detail Page cards
   ========================================================= */

.fc-analytical-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    overflow: hidden;

    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: #ffffff;

    box-shadow: 0 5px 18px rgba(15, 49, 82, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fc-analytical-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(15, 49, 82, 0.14);
}


/* Image */

.fc-analytical-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef4f8;
}

.fc-analytical-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.25s ease;
}

.fc-analytical-card:hover .fc-analytical-image {
    transform: scale(1.025);
}


/* Content */

.fc-analytical-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}


/* Date */

.fc-analytical-date {
    margin: 0 0 9px;

    color: #64798d;

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.045em;
    text-transform: uppercase;
}


/* Title */

.fc-analytical-body h4 {
    margin: 0 0 12px;
    color: #003b73;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.35;
}

.fc-analytical-body h4 a {
    color: inherit;
    text-decoration: none;
}

.fc-analytical-body h4 a:hover,
.fc-analytical-body h4 a:focus {
    color: #0069b4;
    text-decoration: none;
}


/* Preview */


.fc-analytical-summary {
    margin: 0 0 20px;
    color: #425b70;
    font-size: 0.95rem;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

/* Read more */

.fc-analytical-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;

    color: #005ea8;

    font-weight: 600;
    text-decoration: none;
}

.fc-analytical-more:hover,
.fc-analytical-more:focus {
    color: #003b73;
    text-decoration: underline;
}
.fc-documents-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.fc-documents-table th,
.fc-documents-table td {
    border: 1px solid #d5dee8;
    padding: 12px 14px;
    vertical-align: top;
}

.fc-documents-table thead th {
    background-color: #f4f8fc;
    color: #0b2f5b;
    font-weight: 600;
    text-align: left;
}

.fc-documents-table tbody tr:hover {
    background-color: #f8fbff;
}

.fc-documents-table td:last-child,
.fc-documents-table th:last-child {
    white-space: nowrap;
}
/* Consultation Request form */

.fc-consultation-form {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 28px 32px;

    background: #ffffff;
    border: 1px solid #b9d7ff;
    border-radius: 12px;

    box-shadow:
        0 10px 24px rgba(11, 47, 91, 0.08);
}


/* Inputs */

.fc-consultation-form input,
.fc-consultation-form select,
.fc-consultation-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
}


/* Focus */

.fc-consultation-form input:focus,
.fc-consultation-form select:focus,
.fc-consultation-form textarea:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
}


/* Labels */

.fc-consultation-form label {
    font-weight: 600;
    color: #0b2f5b;
}

.fc-consultation-form .form-group,
.fc-consultation-form .mb-3 {
    margin-bottom: 16px;
}
/* Submit button */

.fc-consultation-submit {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-weight: 600;
    text-align: center;
}
.navbar-brand img {
    height: 65px;
    width: auto;
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 55px;
    }
}

.navbar .nav-link:hover {
    color: #000000;
}

/* =========================================================
   EVENT CARDS
   ========================================================= */

.fc-event-card {
    overflow: hidden;
}

.fc-event-card-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.fc-event-card-body {
    padding: 1rem;
}

.fc-event-card-title {
    margin-bottom: 0.5rem;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fc-event-card-date {
    margin-bottom: 0.75rem;
}

.fc-event-card-description {
    margin-bottom: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}