/* 
the body.is-mainland-page [class*="-type--bp-simple"] is to match both of the following classes at once:
    .paragraph--type--bp-simple (used in front portal)
    .paragraph-type--bp-simple (used in cms portal)
*/

body.is-mainland-page [class*="-type--bp-simple"] {
    margin: 40px auto;
}

@media screen and (max-width: 767.98px) {
    body.is-mainland-page [class*="-type--bp-simple"] {
        margin: 20px auto;
    }
}

body.is-mainland-page [class*="-type--bp-simple"] .btn {
    text-decoration: none;
}

body.is-mainland-page [class*="-type--bp-simple"] .btn-big {
    display: inline-block;
    min-width: 220px;

    padding: 18px 20px;
    border-radius: 100px;
    margin-bottom: 10px;

    color: #DA562B !important;

    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

body.is-mainland-page [class*="-type--bp-simple"] .btn-small {
    display: inline-block;
    min-width: 150px;

    padding: 9px 20px;
    border-radius: 100px;
    margin-bottom: 10px;

    color: #DA562B !important;

    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

body.is-mainland-page [class*="-type--bp-simple"] .btn-filled {
    background: linear-gradient(90deg, #DF7433 0%, #DA562B 31.87%, #CC103C 73.65%, #9F0D43 100%);
    color: #fff !important;
}

body.is-mainland-page [class*="-type--bp-simple"] .btn-hollow {
    border: 1px solid transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(90deg, #DF7433 0%, #DA562B 31.87%, #CC103C 73.65%, #9F0D43 100%) border-box !important;
}

body.is-mainland-page [class*="-type--bp-simple"] .btn-icon::after {
    background: url(../image/icon/apply-btn-after-arrow.svg) center center no-repeat;
    content: '';
    display: inline-block;
    width: 8px;
    height: 12px;
    margin-left: 10px;
    margin-bottom: 0px;
}

body.is-mainland-page [class*="-type--bp-simple"] h2,
body.is-mainland-page [class*="-type--bp-simple"] h3 {
    margin-bottom: 20px;
}

body.is-mainland-page [class*="-type--bp-simple"] h4,
body.is-mainland-page [class*="-type--bp-simple"] h5,
body.is-mainland-page [class*="-type--bp-simple"] h6 {
    margin-bottom: 10px;
}

body.is-mainland-page [class*="-type--bp-simple"] p + h2,
body.is-mainland-page [class*="-type--bp-simple"] p + h3 {
    margin-bottom: 20px;
    margin-top: 80px;
}

body.is-mainland-page [class*="-type--bp-simple"] p + h4,
body.is-mainland-page [class*="-type--bp-simple"] p + h5,
body.is-mainland-page [class*="-type--bp-simple"] p + h6 {
    margin-bottom: 10px;
    margin-top: 40px;
}

body.is-mainland-page [class*="-type--bp-simple"] h2 {
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    background: linear-gradient(90deg, #DF7433 2.14%, #DA562B 58.13%, #CC103C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: max-content; /* this is to prevent the gradient from stretching across the entire line */
}

body.is-mainland-page [class*="-type--bp-simple"] h3 {
    color: #000;

    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

body.is-mainland-page [class*="-type--bp-simple"] h4 {
    color: #000;

    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

body.is-mainland-page [class*="-type--bp-simple"] h5 {
    color: #000;

    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

body.is-mainland-page [class*="-type--bp-simple"] p {
    color: #000;

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px; /* 200% */
}

body.is-mainland-page [class*="-type--bp-simple"] p a {
    color: #DA562B;

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;

    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

body.is-mainland-page [class*="-type--bp-simple"] blockquote {
    margin: auto;

    margin-top: 0px;
    margin-bottom: 0px;

    width: calc(100% - 150px); /* this is to make room for the quote icons */
}

body.is-mainland-page [class*="-type--bp-simple"] blockquote p {
    color: #000;

    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px; /* 180% */
}

/* for ckeditor */
body.is-mainland-page [class*="-type--bp-simple"] .ck blockquote {
    overflow: visible;
    border-left: none;
    padding: 0 70px;
}

body.is-mainland-page [class*="-type--bp-simple"] blockquote::before {
    background: url(../image/icon/icon-quote-open.svg) center center no-repeat;
    content: '';
    display: block;
    width: 40px;
    height: 36px;

    position: relative;
    left: -20px;
    transform: translate(-100%, 50%);
}

body.is-mainland-page [class*="-type--bp-simple"] blockquote::after {
    background: url(../image/icon/icon-quote-close.svg) center center no-repeat;
    content: '';
    display: block;
    width: 40px;
    height: 36px;

    position: relative;
    left: calc(100% + 20px);
    transform: translate(0%, -50%);
}

@media (max-width: 767.98px) {
    body.is-mainland-page [class*="-type--bp-simple"] blockquote {
        width: 100%;
    }

    body.is-mainland-page [class*="-type--bp-simple"] blockquote::before {
        left: 0;
        transform: translate(0%, -10px);
    }

    body.is-mainland-page [class*="-type--bp-simple"] blockquote::after {
        left: 100%;
        transform: translate(-100%, 10px);
    }
}

body.is-mainland-page [class*="-type--bp-simple"] blockquote p:last-child {
    margin-bottom: 0 !important;
}

body.is-mainland-page [class*="-type--bp-simple"] ul {
}

body.is-mainland-page [class*="-type--bp-simple"] ul li::marker {
    color: #DA562B;
}

body.is-mainland-page [class*="-type--bp-simple"] ul li a {
    color: #DA562B;
}

body.is-mainland-page [class*="-type--bp-simple"] img.align-left,
body.is-mainland-page [class*="-type--bp-simple"] .caption-img.align-left {
    margin-right: 36px;
    margin-bottom: 10px;
}

body.is-mainland-page [class*="-type--bp-simple"] img.align-right,
body.is-mainland-page [class*="-type--bp-simple"] .caption-img.align-right {
    margin-left: 36px;
    margin-bottom: 10px;
}

body.is-mainland-page [class*="-type--bp-simple"] .caption-img {
    border: 1px solid #EEE;
}

@media (max-width: 767.98px) {
    body.is-mainland-page [class*="-type--bp-simple"] img.align-left,
    body.is-mainland-page [class*="-type--bp-simple"] .caption-img.align-left {
        float: none;
        margin-right: 0;
    }

    body.is-mainland-page [class*="-type--bp-simple"] img.align-right,
    body.is-mainland-page [class*="-type--bp-simple"] .caption-img.align-right {
        float: none;
        margin-left: 0;
    }
}

body.is-mainland-page [class*="-type--bp-simple"] img.align-left,
body.is-mainland-page [class*="-type--bp-simple"] .caption-img.align-left img {
    clip-path: polygon(0 0, 100% 2%, 100% 98%, 0 100%);
}

body.is-mainland-page [class*="-type--bp-simple"] img.align-right,
body.is-mainland-page [class*="-type--bp-simple"] .caption-img.align-right img {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 98%);
}

body.is-mainland-page [class*="-type--bp-simple"] .caption-img figcaption {
    display: block;
    padding: 12px 20px 18px 20px;
    
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

body.is-mainland-page [class*="-type--bp-simple"] .caption-img figcaption a {
    color: #000;
}
body.is-mainland-page [class*="-type--bp-simple"] .caption-img::after {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #DF7433 32.07%, #DA562B 70.93%, #CC103C 100%);
}

/* fix the padding of nested container-xxl */
.container-xxl .container-xxl {
    padding: 0;
}


/* Cards */
.first-title-scction .swiper-section .contactSwiper a::after {
    background-image: linear-gradient(0deg, #DF7433 5.77%, #DA562B 35.8%, #CC103C 75.14%, #9F0D43 99.97%)
}

/* Cards Carousel */
.swiper-pagination .swiper-pagination-bullet {
    border-radius: 12px;
    border: solid 1px #DF7433;
    background-color: transparent;
}

.swiper-pagination .swiper-pagination-bullet-active {
    background-color: #D64130;
    border: solid 1px #D64130;
}



/* ==================================================
   Tables
   ================================================== */
body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    min-width: 600px; /* Ensures layout doesn't crush too small before stacking */
    caption-side: top;

    margin: 0; /* for ck editor */
}

body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header > :not(caption)>* {
    border-width: 0; /* Remove default borders, we'll add custom ones to td and th */
}

body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header th,
body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header td {
    padding: 15px 20px;
    text-align: left;
    line-height: 1.5;
}

body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header th {
    border: none; /* outer table border provides the frame */
}

body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header td {
    border-top: none;
    border-bottom: none;
    border-left: 1px solid #CACACA;
    border-right: 1px solid #CACACA;
}

/* Header Styles */
body.is-mainland-page [class*="-type--bp-simple"] .table-solid-header-orange {
    border: 2px solid #DA562B;
}

body.is-mainland-page [class*="-type--bp-simple"] .table-solid-header-orange th {
    background-color: #DA562B !important;
    color: white;
    font-weight: 500;
}

body.is-mainland-page [class*="-type--bp-simple"] .table-solid-header-blue {
    border: 2px solid #2E5DB3;
}

body.is-mainland-page [class*="-type--bp-simple"] .table-solid-header-blue th {
    background-color: #2E5DB3 !important;
    color: white;
    font-weight: 500;
}

/* Caption */
body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header caption {
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    color: #333;
}

/* Alternating Row Colors */
body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header tbody tr:nth-child(even) {
    background-color: #F5F5F5;
}

/* Responsive Design: Stacks on small screens */
@media screen and (max-width: 768px) {
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header,
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header caption,
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header thead,
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header tbody,
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header th,
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header td,
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header tr {
        display: block;
        min-width: unset;
    }

    /* Create space above the table for the extracted caption */
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header {
        position: relative;
        margin-top: 2.5em;
        overflow: visible;
    }

    /* Pull the caption out above the table border */
    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header caption {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        padding: 0 0 8px;
    }

    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    body.is-mainland-page [class*="-type--bp-simple"] table.table-solid-header td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
}




/* ==================================================
   Hero Banner — basic-page-mainland
   ================================================== */

/* The banner_wrapper field group contains the image field + h1 title */
body.is-mainland-page .banner_wrapper {
    position: relative;
}

/* Image field wrapper — fixed height, clips the oversized image */
body.is-mainland-page .banner_wrapper .field--name-field-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    line-height: 0;
}

/* Taller than container so parallax shift never reveals blank edges.
   top: -30% centres the 160%-tall image: (160-100)/2 = 30% → 150px buffer top & bottom */
body.is-mainland-page .banner_wrapper .field--name-field-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

/* Dark gradient overlay for title legibility */
body.is-mainland-page .banner_wrapper .field--name-field-banner::after {
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Page title overlaid on the banner, near the bottom */
body.is-mainland-page .banner_wrapper .node-title {
    position: absolute;
    bottom: 110px; /* sits above the orange wave */
    left: 0;
    right: 0;
    z-index: 2;
    will-change: transform;
}

body.is-mainland-page .banner_wrapper h1 {
    color: #fff;
    font-size: 44px;
    line-height: 1.2;
    margin: 0;
    padding-left: 30px;
    position: relative;
}

/* Left gradient border indicator on the title */
body.is-mainland-page .banner_wrapper h1::before {
    background: linear-gradient(to bottom, #DF7433, #DA562B, #CC103C);
    content: '';
    display: block;
    width: 6px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

/* Orange/red diagonal wave at the bottom of the hero section */
body.is-mainland-page .banner_wrapper::after {
    content: '';
    display: block;
    width: 100%;
    height: 65px;
    background: linear-gradient(90deg, #DF7433 0%, #DA562B 31.87%, #CC103C 73.65%, #9F0D43 100%);
    clip-path: polygon(0 0%, 80% 0%,  0 100%);
}

/* ==================================================
   Breadcrumb — basic-page-mainland
   ================================================== */

body.is-mainland-page .node--type-basic-page-mainland nav[aria-label="breadcrumb"] .container-xxl {
    padding-top: 16px;
    padding-bottom: 16px;
}

body.is-mainland-page .node--type-basic-page-mainland nav[aria-label="breadcrumb"] .breadcrumb {
    margin-bottom: 0;
    padding: 0;
}

/* All breadcrumb items: black regular */
body.is-mainland-page .node--type-basic-page-mainland nav[aria-label="breadcrumb"] .breadcrumb-item,
body.is-mainland-page .node--type-basic-page-mainland nav[aria-label="breadcrumb"] .breadcrumb-item a {
    color: #000;
    font-weight: 400;
}

/* Last breadcrumb item (current page): black bold */
body.is-mainland-page .node--type-basic-page-mainland nav[aria-label="breadcrumb"] .breadcrumb-item:last-child {
    color: #000;
    font-weight: 700;
}

/* Override the SVG arrow breadcrumb separator with "/" for mainland pages */
body.is-mainland-page .node--type-basic-page-mainland nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
    background-image: none;
    content: '/';
    width: auto;
    height: auto;
    padding-right: 8px;
}

/* ==================================================
   Responsive — hero banner
   ================================================== */

@media (max-width: 1199.98px) {
    body.is-mainland-page .banner_wrapper .field--name-field-banner {
        height: 400px;
    }

    body.is-mainland-page .banner_wrapper .node-title {
        bottom: 90px;
    }

    body.is-mainland-page .banner_wrapper h1 {
        font-size: 38px;
    }

    body.is-mainland-page .banner_wrapper::after {
        height: 50px;
    }
}

@media (max-width: 767.98px) {
    body.is-mainland-page .banner_wrapper .field--name-field-banner {
        height: 300px;
    }

    body.is-mainland-page .banner_wrapper .node-title {
        bottom: 70px;
    }

    body.is-mainland-page .banner_wrapper h1 {
        font-size: 32px;
    }

    body.is-mainland-page .banner_wrapper::after {
        height: 30px;
    }
}


/* ==================================================
   Accordion (bpm-accordion) — Mainland Page
   ================================================== */
body.is-mainland-page .paragraph--bpm-accordion-container [class*="-type--bp-simple"] {
    margin: 0 !important;
}

/* Header */
body.is-mainland-page .paragraph--bpm-accordion-container .field--name-bp-header {
    text-align: center;
    margin: 40px 0px;
}

/* Strip the outer card border/background so only items have borders */
body.is-mainland-page .paragraph--bpm-accordion-container .card.accordion.accordion-default {
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Each accordion header row */
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading {
    padding: 0;
    background-color: #F3F3F3;
    border: 1px solid #F3F3F3;
    border-radius: 0;
    margin-top: 10px;
}

/* First item: no top margin */
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading:first-child {
    margin-top: 0;
}

/* Toggle row: flex layout with title on the left, icon on the right */
body.is-mainland-page .paragraph--bpm-accordion-container .accordion-title .display,
body.is-mainland-page .paragraph--bpm-accordion-container .accordion-title .normal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    user-select: none;
}

/* + circle icon — collapsed state */
body.is-mainland-page .paragraph--bpm-accordion-container .accordion-title .display::after,
body.is-mainland-page .paragraph--bpm-accordion-container .accordion-title .normal::after {
    content: '+';
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    color: #DA562B;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin-left: 16px;
}

/* Expanded accordion header: brand orange background */
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading:has([aria-expanded="true"]) {
    background-color: #DA562B;
    border-color: #DA562B;
}

/* Expanded title: white text */
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading:has([aria-expanded="true"]) .display,
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading:has([aria-expanded="true"]) .normal {
    color: #fff;
}

/* − circle icon — expanded state */
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading:has([aria-expanded="true"]) .display::after,
body.is-mainland-page .paragraph--bpm-accordion-container .card-header.accordion-heading:has([aria-expanded="true"]) .normal::after {
    content: '\2212';
    background-color: #fff;
    border: none;
    color: #DA562B;
}

/* Expanded content panel */
body.is-mainland-page .paragraph--bpm-accordion-container .card-block.accordion-collapse {
    padding: 28px 30px;
    background-color: #fff;
    border: 1px solid #F3F3F3;
    border-top: none;
}

/* Override default padding of the last paragraph in the accordion content */
.paragraph--bpm-accordion-container>.paragraph--type--bpm-accordion>.paragraph__column>.card>.card-header {
    border-bottom: solid 1px #F3F3F3;
}
body.is-mainland-page .paragraph.paragraph--type--bpm-accordion .accordion-collapse .paragraph:last-of-type>.paragraph__column {
    padding: 20px 0px;
}


/* ============================== */
/* Admission Grid Section         */
/* ============================== */

body.is-mainland-page .paragraph--type--admission-grid-section {
    margin: 40px auto;
}

/* Header */
body.is-mainland-page .paragraph--type--admission-grid-section .field--name-bp-header {
    text-align: center;
    margin: 40px 0px;
}

/* Title above the grid */
body.is-mainland-page .paragraph--type--admission-grid-section > .paragraph__column > h2 {
    margin-bottom: 0;
    padding-bottom: 16px;
}

/* Hide the auto-generated field label inside the h2 */
body.is-mainland-page .paragraph--type--admission-grid-section > .paragraph__column > h2 .field__label {
    display: none;
}

/* Grid layout: 3-column grid with named areas, on the items-container wrapper */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 350px 180px 180px;
    grid-template-areas:
        "item1  item1  item2"
        "item3  item4  item5"
        "item3  item4  item6";
}

/* Assign each card wrapper div to its named grid area */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div:nth-child(1) { grid-area: item1; }
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div:nth-child(2) { grid-area: item2; }
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div:nth-child(3) { grid-area: item3; }
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div:nth-child(4) { grid-area: item4; }
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div:nth-child(5) { grid-area: item5; }
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div:nth-child(6) { grid-area: item6; }

/* Each card item fills its grid cell */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Fallback gradient for cards with no image (e.g. accent/colour card) */
    background: #888888;
}

/* Image stretches to fill the card */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div .field--name-bp-image-field {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div .field--name-bp-image-field img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Plain dark overlay */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div .field--name-bp-image-field::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Title overlaid at bottom-left */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div .field--name-field-title {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
}

/* Stretch the link anchor to cover the entire card */
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div .field--name-bp-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}
body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div .field--name-bp-link a {
    position: absolute;
    inset: 0;
    display: block;
    font-size: 0;
}

/* Mobile: collapse to single column stack */
@media screen and (max-width: 767.98px) {
    body.is-mainland-page .paragraph--type--admission-grid-section .items-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    body.is-mainland-page .paragraph--type--admission-grid-section .items-container > div {
        aspect-ratio: 16 / 9;
    }
}


/* ==================================================
   Admission Card Section — Mainland Page
   Mirrors the "Before Departure" cards on /preparing-arrival:
   image cards with dark overlay, title at bottom-left, and
   an animated gradient triangle accent.
   ================================================== */

body.is-mainland-page .paragraph--type--admission-card-section {
    margin: 40px auto;
}

body.is-mainland-page .paragraph--type--admission-card-section .paragraph__column > h3 {
    text-align: center;
}

/* Positioning context for nav buttons */
body.is-mainland-page .paragraph--type--admission-card-section .items-container {
    position: relative;
}

/* Individual card (Swiper slide) */
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSectionSwiper .swiper-slide {
    position: relative;
    overflow: hidden;
    background-color: #DA562B; /* fallback colour behind image */
}

/* Dark semi-transparent overlay on the image */
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSectionSwiper .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Gradient triangle at bottom-left — expands to full card on hover */
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSectionSwiper .swiper-slide::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 33.33%;
    height: 33.33%;
    background-image: linear-gradient(0deg, #DF7433 5.77%, #DA562B 35.8%, #CC103C 75.14%, #9F0D43 99.97%);
    clip-path: polygon(0% 0%, 11.11% 80%, 100% 100%, 0% 100%);
    z-index: 2;
    transition: width 0.5s ease, height 0.5s ease, clip-path 0.5s ease;
    pointer-events: none;
}

body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSectionSwiper .swiper-slide:hover::after {
    width: 110%;
    height: 110%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Image — 3:2 aspect ratio, covers the full card */
body.is-mainland-page .paragraph--type--admission-card-section .field--name-bp-image-field {
    display: block;
    line-height: 0;
}

body.is-mainland-page .paragraph--type--admission-card-section .field--name-bp-image-field img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* Title overlaid at bottom-left, above the overlays */
body.is-mainland-page .paragraph--type--admission-card-section .field--name-field-title {
    position: absolute;
    bottom: 36px;
    left: 26px;
    right: 26px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    z-index: 4;
    pointer-events: none;
}

/* Link stretches to cover the entire card, making it fully clickable */
body.is-mainland-page .paragraph--type--admission-card-section .field--name-bp-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

body.is-mainland-page .paragraph--type--admission-card-section .field--name-bp-link a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;       /* hide link text visually */
    color: transparent;
}

/* Navigation buttons */
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSection-button-prev,
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSection-button-next {
    color: #fff;
}

body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSection-button-prev::after,
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSection-button-next::after {
    font-size: 20px;
}

/* Pagination — positioned below the swiper */
body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSection-pagination {
    position: relative;
    bottom: auto;
    margin-top: 16px;
}

body.is-mainland-page .paragraph--type--admission-card-section .admissionCardSection-pagination .swiper-pagination-bullet-active {
    background-color: #DA562B;
}

/* Mobile: smaller title */
@media screen and (max-width: 767.98px) {
    body.is-mainland-page .paragraph--type--admission-card-section .field--name-field-title {
        font-size: 18px;
        bottom: 24px;
        left: 20px;
        right: 20px;
    }
}

/* ==================================================
   CKEditor Template: Text Card
   White card with red left border and corner accent.
   ================================================== */

.paragraph--type--text-cards > .paragraph__column > h3 {
    text-align: center;
    margin: 40px 0px 20px 0px;
}

/* Flex row on the .items-container wrapper */
.paragraph--type--text-cards .items-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

/* Each bare item wrapper <div> inside .items-container */
.paragraph--type--text-cards .items-container > div {
    display: flex;
    flex-direction: column;
    flex: 33%;
    max-width: 450px;
    min-height: 220px;
}

/* Propagate down through paragraph, its column, and the field item */
.paragraph--type--text-cards .paragraph--type--text-card,
.paragraph--type--text-cards .paragraph--type--text-card > .paragraph__column,
.paragraph--type--text-cards .paragraph--type--text-card .field__item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cke-text-card {
    position: relative;
    background: #F9F9F9;
    border-right: 5px solid;
    border-bottom: 5px solid;
    border-image: linear-gradient(to bottom, #DF7433, #DA562B, #CC103C) 1;
    padding: 20px 40px;
    overflow: hidden;
    box-sizing: border-box;
    flex: 1;
    margin: 20px;
    text-align: center;
}

.cke-text-card__title {
    color: #DA562B;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 10px;
    text-align: center;
}

.cke-text-card__corner {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.cke-text-card p {
    margin: 0 !important;
}

.cke-text-card__corner span {
    display: block;
    width: 28px;
    height: 10px;
    background: #DA562B;
    border-radius: 2px;
    opacity: 1;
}

.cke-text-card__corner span:nth-child(2) {
    opacity: 0.5;
}

@media screen and (max-width: 767.98px) {
    .paragraph--type--text-cards .items-container > div {
        flex-basis: 100%;
    }
    .cke-text-card {
        padding: 20px 20px 40px;
    }
    .cke-text-card__title {
        font-size: 22px;
    }
}