/* ==========================================================================
   1. ROOT SCOPED CONTAINER & GRID LAYOUT
   ========================================================================== */
.ce-app-container {
    font-family: 'Figtree', sans-serif;
    color: #000000;
    background-color: #ffffff;
}


/* 1. Force cards side-by-side in a 2-column layout */
#ceConferenceList,
.ce-app-container .row:has(.ce-card-gradient-border),
.ce-conference-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    overflow-x: auto !important; /* Enables horizontal swiping */
    scroll-snap-type: x mandatory;
    padding-bottom: 15px !important;
    -webkit-overflow-scrolling: touch;
}

/* 2. Set each card to a fixed width so 2 cards fit side-by-side in view */
.ce-app-container .col-12:has(.ce-card-gradient-border),
.ce-app-container .col-md-6:has(.ce-card-gradient-border),
.ce-card-gradient-border {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
    min-width: 500px !important; /* Ensures readable card width while scrolling */
    scroll-snap-align: start;
}
/* Card Directory Grid Layout */
#ceConferenceList,
.ce-conference-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
    align-items: stretch !important;
}


/* Header Typography */
.ce-app-container h4.ce-text-navy-dark {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 36px !important;
    line-height: 100% !important;
    letter-spacing: 0%;
    color: #0F0445 !important;
}

.ce-app-container h2.display-5 {
    font-family: 'Polymath Display', sans-serif;
    font-weight: 700;
	padding-top:10px;
    font-size: 64px !important;
    line-height: 100% !important;
    letter-spacing: 0%;
    color: #0F0445 !important;
}

.ce-app-container .ce-text-heading-pink {
    font-family: 'Polymath Display', sans-serif;
    font-weight: 700;
    font-size: 64px !important;
    line-height: 100% !important;
    letter-spacing: 0%;
    background: linear-gradient(90deg, #B53C72 0%, #5641E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ce-app-container section.mb-4 p {
    font-family: 'Figtree', sans-serif;
	margin-top: 16px;
    font-weight: 400;
    font-size: 18px !important;
    color: #000000 !important;
}

/* ==========================================================================
   2. FILTER SECTION & CONTROLS
   ========================================================================== */
.ce-bg-filter-light {
    background-color: #f3f3f5 !important;
}

.ce-custom-input,
.ce-custom-input::placeholder {
    font-family: 'Figtree', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #00000080 !important;
}

.ce-app-container label.form-label {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 16px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #251B22 !important;
    vertical-align: middle;
}

.ce-custom-select {
    font-family: 'Figtree', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 130% !important;
    color: #251B22 !important;
}

#ceActiveTagsList .badge {
    font-family: 'Figtree', sans-serif;
    background: #FFFFFF !important;
    border: 1px solid rgba(17, 19, 24, 0.12) !important;
    padding: 10px 14px !important;
    border-radius: 999px;
    color: #251B22 !important;
}

/* ==========================================================================
   3. CARD OUTER BORDER & TOP HEADER AREA
   ========================================================================== */
.ce-card-gradient-border {
    position: relative;
    background: #ffffff;
    border-radius: 15px !important;
    padding: 1px;
    background-image: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.ce-card-inner-wrapper {
    background-color: #ffffff;
    border-radius: 15px !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Header Section */
.ce-bg-navy-dark {
    background-color: #0F0445 !important;
    width: 100% !important;
    min-height: 186px;
    padding: 20px 30px 20px 32px !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Yellow Pill Badge inside Top Card Header */
.ce-bg-navy-dark .badge.ce-bg-yellow-bright {
    width: max-content !important;
    max-width: 100%;
    height: 28px !important;
    padding: 5px 10px !important;
    border-radius: 16px !important;
    background-color: #FFC800 !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 14px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #0F0445 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ce-bg-navy-dark h2.h3 {
    font-family: 'Polymath Display', sans-serif;
    font-weight: 700;
    font-size: 48px !important;
    line-height: 100% !important;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFFFFF !important;
    margin: 12px 0 8px 0 !important;
}

.ce-bg-navy-dark .d-flex.justify-content-between span {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 18px !important;
    line-height: 100% !important;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #CFE6D5 !important;
    opacity: 1 !important;
}

/* ==========================================================================
   4. CARD LOWER BODY CONTENT
   ========================================================================== */
.ce-card-inner-wrapper .p-4 {
    padding: 24px 30px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Dark Blue Pill Badge: "Upcoming edition" */
.ce-card-inner-wrapper .badge.ce-bg-navy-dark {
    width: max-content !important;
    height: auto !important;
    min-height: 43px;
    padding: 10px 20px !important;
    border-radius: 15px !important;
    background-color: #0F0445 !important;
    
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 16px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-bottom: 16px !important;
}

/* Card Body Title Gradient */
.ce-card-inner-wrapper h3.ce-text-title-purple {
    font-family: 'Polymath Display', sans-serif;
    font-weight: 700;
    font-size: 22px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    background: linear-gradient(90deg, #B53C72 0%, #5641E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
	min-height: 57px;
    margin-bottom: 12px !important;
}

/* Calendar Date Line & SVG Icon */
.ce-card-inner-wrapper .d-flex.align-items-center.text-dark.fw-bold.small {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 18px !important;
    vertical-align: middle;
    color: #0F0445 !important;
    margin-bottom: 12px !important;
}

.ce-card-inner-wrapper .d-flex.align-items-center.text-dark.fw-bold.small i.fa-calendar {
    display: none !important;
}

.ce-card-inner-wrapper .d-flex.align-items-center.text-dark.fw-bold.small::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url('https://www.paruluniversity.ac.in/wp-content/uploads/2026/09/Group-32870.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Description Text */
.ce-card-inner-wrapper p.text-secondary.small {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 18px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #686868 !important;
    margin-bottom: 20px !important;
	min-height:70px;
}

/* Organiser / Format Table Layout */
.ce-card-inner-wrapper .row.g-1 {
    margin-bottom: 16px !important;
}

.ce-card-inner-wrapper .row.g-1 .col-3.text-secondary {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #686868 !important;
}

.ce-card-inner-wrapper .row.g-1 .col-9.fw-bold.text-dark {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 16px !important;
    line-height: 130% !important;
    letter-spacing: 0%;
    color: #251B22 !important;
}

/* Bottom Tags / Filter Pills */
.ce-card-inner-wrapper span.border.rounded-pill {
    font-family: 'Figtree', sans-serif;
    background: #FFFFFF !important;
    border: 1px solid rgba(17, 19, 24, 0.12) !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    color: #251B22 !important;
    display: inline-block;
    margin-bottom: 6px;
}

/* ==========================================================================
   5. BUTTON STYLES (Single-Line Flex Rows)
   ========================================================================== */
.ce-card-inner-wrapper .mt-auto {
    margin-top: auto !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
}

.ce-btn-yellow-pill {
    width: 100% !important;
    height: 48px !important; /* Proper touch target height for single-line text */
    padding: 8px 20px !important;
    border-radius: 24px !important;
    background-color: #FFC800 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-sizing: border-box;
    
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 16px !important;
    line-height: 100% !important;
    letter-spacing: 0%;
    color: #000000 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ce-btn-yellow-pill:hover {
    background-color: #e5b700 !important;
    color: #000000 !important;
}
/* Hide scrollbar for a clean UI while keeping swipe functionality */
#ceConferenceList::-webkit-scrollbar,
.ce-app-container .row::-webkit-scrollbar {
    height: 6px;
}

#ceConferenceList::-webkit-scrollbar-thumb,
.ce-app-container .row::-webkit-scrollbar-thumb {
    background-color: rgba(15, 4, 69, 0.2);
    border-radius: 10px;
}

/* 1. Prevent non-expanded cards from stretching to match expanded card height */
.ce-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important; /* Forces top alignment; height expands naturally per card */
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* Ensure individual cards take natural content height */
.ce-slide-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 12px;
    box-sizing: border-box;
    align-self: flex-start !important;
}

.ce-card-gradient-border {
    height: auto !important; /* Allow independent card expansion */
}

.ce-card-inner-wrapper {
    height: auto !important;
    min-height: 100%;
}

/* 2. Responsive Card Widths according to Figma layout */
@media (min-width: 1200px) {
	.ce-app-container{
		max-width: 1360px !important;
	}
    .ce-slide-item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .ce-slide-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 8px;
    }
}

/* =========================================
   CONFERENCE CARDS - DESKTOP 2 CARDS
   ========================================= */

/* =========================================
   CONFERENCE CARD WIDTH
   ========================================= */

.ce-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.ce-slide-item {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.ce-card-gradient-border {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}


/* =========================================
   EQUAL INITIAL CARD HEIGHT
   ========================================= */

.ce-slider-track {
    align-items: flex-start !important;
}

.ce-card-inner-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

.ce-card-inner-wrapper > .p-4 {
    flex: 1 1 auto !important;
}

.position-relative .mt-4{
	margin-top: 2.25rem !important;
}

.ce-card-gradient-border {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 816px !important;
}

.ce-card-inner-wrapper {
    min-height: 816px !important;
    display: flex !important;
    flex-direction: column !important;
}


/* Top section of the card */
.ce-card-inner-wrapper > .ce-bg-navy-dark.text-white.p-4 {
    height: 222px !important;
    min-height: 222px !important;
    max-height: 222px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}


/* Remaining card content */
.ce-card-inner-wrapper > .p-4 {
    flex: 1 1 auto !important;
}
.ce-card-gradient-border .ce-card-inner-wrapper .p-4 .mb-4{
	min-height: 88px;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .ce-slide-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 8px !important;
    }

    .ce-card-gradient-border {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Container positioning */
.position-relative {
    position: relative !important;
}

/* Absolute positioning for the SVG search icon */
.ce-search-icon {
    left: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 5;
}

/* Search Input Padding Adjustment */
#ceSearchField.ce-custom-input {
    padding-left: 42px !important; /* Space for search icon */
    padding-right: 16px !important;
    height: 44px;
    border-radius: 8px !important;
    border: 1px solid #E0E0E0;
    background-color: #FFFFFF;
}

/* Placeholder alignment and typography */
#ceSearchField::placeholder {
    font-family: 'Figtree', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.5) !important;
    text-align: left !important; /* Ensures left-aligned placeholder matching the second image */
}



/* ==========================================================================
   CONFERENCE DIRECTORY - RESPONSIVE CSS
   PASTE AT THE VERY END of your existing css.txt (order matters).
   Everything is inside max-width media queries (<= 991px), so the desktop
   layout (>= 992px) is not touched at all.

   Tune card heights per breakpoint with ONE variable: --ce-card-min-h
   ========================================================================== */


/* ==========================================================================
   A. SHARED MOBILE + TABLET  (<= 991px)  - card typography, dots, swipe
   ========================================================================== */
@media screen and (max-width: 991px) {

    /* let vertical page scroll work while swiping the slider horizontally */
    #ceSliderTrack {
        touch-action: pan-y pinch-zoom;
    }

    /* ---------- Dots: always visible, wrap if there are many ---------- */
    #ceDotsContainer {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 0;
        min-height: 12px;
        margin-top: 20px !important;
        position: relative;
        z-index: 2;
    }

    #ceDotsContainer .ce-dot-indicator {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        margin: 0 4px;
        background-color: #C9C6D8;
    }

    #ceDotsContainer .ce-dot-indicator.ce-active {
        width: 24px;
        background-color: #0F0445;
    }

    /* ---------- Card height (same on every card) ---------- */
    .ce-app-container .ce-slide-item .ce-card-gradient-border {
        min-height: var(--ce-card-min-h, 672px) !important;
    }

    .ce-app-container .ce-slide-item .ce-card-inner-wrapper {
        min-height: calc(var(--ce-card-min-h, 672px) - 2px) !important;
    }

    /* ---------- Card top (navy header) ---------- */
    .ce-app-container .ce-card-inner-wrapper > .ce-bg-navy-dark.text-white.p-4 {
        height: auto !important;
        min-height: 120px !important;   /* was 200px */
        max-height: none !important;
        padding: 16px 18px !important;
    }

    /* image-banner variant */
    .ce-app-container .ce-card-banner {
        max-height: 120px !important;
    }
    .ce-app-container .ce-card-banner img {
        height: 120px !important;
    }

    /* "Parul University / Conferences" pill (colours unchanged) */
    .ce-app-container .ce-bg-navy-dark .badge.ce-bg-yellow-bright {
        height: 24px !important;
        padding: 4px 10px !important;
        font-size: 10px !important;
        line-height: 130% !important;
    }

    /* Short title e.g. IAPSMGC CON */
    .ce-app-container .ce-bg-navy-dark h2.h3 {
        font-size: 24px !important;
        line-height: 100% !important;
        margin: 10px 0 8px 0 !important;
    }

    /* "Public health & healthcare" + year */
    .ce-app-container .ce-bg-navy-dark .d-flex.justify-content-between span {
        font-size: 12px !important;
        line-height: 100% !important;
        color: #CFE6D5 !important;
    }

    /* ---------- Card body ---------- */
    .ce-app-container .ce-card-inner-wrapper .p-4 {
        padding: 20px 18px !important;
    }

    /* "Upcoming edition" pill */
    .ce-app-container .ce-card-inner-wrapper .badge.ce-bg-navy-dark {
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 16px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        line-height: 130% !important;
        flex-direction: row !important;
        margin-bottom: 14px !important;
    }

    /* Card title (gradient) */
    .ce-app-container .ce-card-inner-wrapper h3.ce-text-title-purple {
        font-size: 24px !important;
        line-height: 130% !important;
        margin-bottom: 10px !important;
        overflow-wrap: anywhere;
		min-height:125px !important;
    }

    /* Date */
    .ce-app-container .ce-card-inner-wrapper .d-flex.align-items-center.text-dark.fw-bold.small {
        font-size: 14px !important;
        line-height: 100% !important;
        margin-bottom: 10px !important;
    }

    .ce-app-container .ce-card-inner-wrapper .d-flex.align-items-center.text-dark.fw-bold.small::before {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    /* Description
       NOTE: Figma says line-height 100%, which makes multi-line text touch.
       130% is used here - change to 100% if you want the literal Figma value. */
    .ce-app-container .ce-card-inner-wrapper p.text-secondary.small {
        font-size: 14px !important;
        line-height: 130% !important;
        margin-bottom: 14px !important;
    }

    /* Organiser / Format block (was min-height: 94px inline) */
    .ce-app-container .ce-card-inner-wrapper .p-4 > .mb-3.small {
        min-height: 80px !important;
        margin-bottom: 14px !important;
        font-size: 14px !important;
    }

    .ce-app-container .ce-card-inner-wrapper .row.g-1 {
        margin-bottom: 6px !important;
    }

    .ce-app-container .ce-card-inner-wrapper .row.g-1 .col-3.text-secondary {
        font-size: 14px !important;
        line-height: 130% !important;
        color: #686868 !important;
    }

    .ce-app-container .ce-card-inner-wrapper .row.g-1 .col-9.fw-bold.text-dark {
        font-size: 14px !important;
        line-height: 130% !important;
        color: #251B22 !important;
        overflow-wrap: anywhere;
    }

    /* Tag pills container (was min-height: 88px) */
    .ce-app-container .ce-card-inner-wrapper .p-4 > .d-flex.flex-wrap {
        min-height: 64px !important;
        margin-bottom: 16px !important;
        gap: 8px 6px !important;
    }

    /* Tag pills */
    .ce-app-container .ce-card-inner-wrapper span.border.rounded-pill {
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 130% !important;
        color: #505762 !important;
        text-align: center;
        padding: 6px 12px !important;
        margin-bottom: 0 !important;
    }

    /* Gradient divider line above the buttons */
    .ce-app-container .ce-card-inner-wrapper .mt-auto {
        padding-top: 16px !important;
        gap: 10px;
/*         border-top: 1px solid;
        border-image: linear-gradient(90deg, #000000 0%, rgba(102, 102, 102, 0) 100%) 1; */
    }

    /* Buttons */
    .ce-app-container .ce-btn-yellow-pill {
        height: 36px !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 14px !important;
        line-height: 100% !important;
        gap: 10px;
    }

    .ce-app-container .ce-btn-yellow-pill > span:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Expanded "details & resources" content */
    .ce-app-container .ce-card-inner-wrapper .collapse,
    .ce-app-container .ce-card-inner-wrapper .collapsing {
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .ce-app-container .ce-card-inner-wrapper .collapse.show,
    .ce-app-container .ce-card-inner-wrapper .collapsing {
        padding-top: 12px;
    }

    .ce-app-container .ce-card-inner-wrapper .collapse .d-flex.justify-content-between {
        gap: 12px;
    }
}


/* ==========================================================================
   B. MOBILE  (<= 767px)  - Figma mobile: 354px card on a 390px screen
   ========================================================================== */
@media screen and (max-width: 767px) {

    .ce-app-container {
        --ce-card-min-h: 672px;   /* Figma card height (was 816px) */
    }

    /* container 12px + slide 6px = 18px side gutter (390 - 36 = 354px card) */
    .ce-app-container.container-xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ce-app-container > section {
        margin-left: 6px;
        margin-right: 6px;
    }

    /* ---------- Header ---------- */
    .ce-app-container h4.ce-text-navy-dark {
        font-size: 14px !important;
        line-height: 100% !important;
        color: #000000 !important;
        margin-bottom: 8px !important;
    }

    .ce-app-container h2.display-5 {
        font-size: 32px !important;
        line-height: 110% !important;
        font-weight: 700 !important;   /* overrides inline font-weight:800 */
    }

    .ce-app-container .ce-text-heading-pink {
        font-size: 32px !important;
        line-height: 110% !important;
    }

    .ce-app-container section.mb-4 p {
        font-size: 14px !important;
        line-height: 140% !important;
        color: #000000 !important;
    }

    /* ---------- Filters ---------- */
    .ce-app-container label.form-label {
        font-size: 12px !important;
        line-height: 100% !important;
        font-weight: 700 !important;
        color: #000000 !important;
        margin-bottom: 6px !important;
    }

    /* typed text stays 16px so iOS Safari does not zoom on focus;
       the placeholder is the 12px from Figma */
    .ce-app-container .ce-custom-input {
        font-size: 16px !important;
        color: #000000 !important;
    }

    .ce-app-container .ce-custom-input::placeholder {
        font-size: 12px !important;
        line-height: 100% !important;
        color: #00000080 !important;
    }

    .ce-app-container .ce-custom-select {
        font-size: 12px !important;
        line-height: 100% !important;
        color: #000000 !important;
    }

    /* default option ("All editions", "Every year"...) looks like a placeholder */
    .ce-app-container .ce-custom-select:has(option[value=""]:checked) {
        color: #00000080 !important;
    }

    #ceActiveTagsList .badge {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    /* ---------- Slides ---------- */
    .ce-app-container .ce-slide-item {
        padding: 0 6px !important;
    }
}


/* ==========================================================================
   C. TABLET  (768px - 991px)  - 2 cards per row, ~340-450px each
   (no Figma for tablet: scaled between mobile and desktop)
   ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 991px) {

    .ce-app-container {
        --ce-card-min-h: 700px;
    }

    .ce-app-container .ce-slide-item {
        padding: 0 10px !important;
    }

    /* Header */
    .ce-app-container h4.ce-text-navy-dark {
        font-size: 20px !important;
    }

    .ce-app-container h2.display-5,
    .ce-app-container .ce-text-heading-pink {
        font-size: 44px !important;
        line-height: 110% !important;
    }

    .ce-app-container section.mb-4 p {
        font-size: 16px !important;
        line-height: 140% !important;
    }

    /* Filters (4 columns in a row) */
    .ce-app-container label.form-label {
        font-size: 14px !important;
        line-height: 120% !important;
    }

    .ce-app-container .ce-custom-input,
    .ce-app-container .ce-custom-input::placeholder,
    .ce-app-container .ce-custom-select {
        font-size: 14px !important;
    }

    .ce-app-container .ce-custom-input {
        font-size: 16px !important;
    }
}


/* ==========================================================================
   D. PER-SCREEN FINE TUNING
   ========================================================================== */

/* ---- <= 360px : small phones (320 - 360) ---- */
@media screen and (max-width: 360px) {

    .ce-app-container {
        --ce-card-min-h: 700px;   /* narrower card = more text wrapping */
    }

    .ce-app-container.container-xl {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .ce-app-container > section {
        margin-left: 4px;
        margin-right: 4px;
    }

    .ce-app-container .ce-slide-item {
        padding: 0 4px !important;
    }

    .ce-app-container h2.display-5,
    .ce-app-container .ce-text-heading-pink {
        font-size: 28px !important;
    }

    .ce-app-container .ce-card-inner-wrapper .p-4,
    .ce-app-container .ce-card-inner-wrapper > .ce-bg-navy-dark.text-white.p-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ce-app-container .ce-bg-navy-dark h2.h3,
    .ce-app-container .ce-card-inner-wrapper h3.ce-text-title-purple {
        font-size: 22px !important;
    }

    .ce-app-container .ce-btn-yellow-pill {
        font-size: 13px !important;
        padding: 8px 14px !important;
    }
}

/* ---- 361px - 479px : standard phones (Figma 390 base) ---- */
@media screen and (min-width: 361px) and (max-width: 479px) {

    .ce-app-container {
        --ce-card-min-h: 672px;
    }
}

/* ---- 480px - 575px : large phones / small landscape ---- */
@media screen and (min-width: 480px) and (max-width: 575px) {

    .ce-app-container {
        --ce-card-min-h: 640px;
    }

    .ce-app-container h2.display-5,
    .ce-app-container .ce-text-heading-pink {
        font-size: 36px !important;
    }

    /* keep the card at a readable width, centred in its slide */
    .ce-app-container .ce-slide-item .ce-card-gradient-border {
        max-width: 480px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- 576px - 767px : phablets / small tablets ---- */
@media screen and (min-width: 576px) and (max-width: 767px) {

    .ce-app-container {
        --ce-card-min-h: 620px;
    }

    .ce-app-container h4.ce-text-navy-dark {
        font-size: 16px !important;
    }

    .ce-app-container h2.display-5,
    .ce-app-container .ce-text-heading-pink {
        font-size: 40px !important;
    }

    .ce-app-container section.mb-4 p {
        font-size: 16px !important;
    }

    .ce-app-container .ce-slide-item .ce-card-gradient-border {
        max-width: 520px !important;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Core CSS fixes for slider alignment and layout */
#ceSliderViewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 1. Prevent non-expanded cards from stretching to match expanded card height */
.ce-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important; /* Prevents cards from forcing matching heights */
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.ce-slide-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 12px;
    box-sizing: border-box;
    align-self: flex-start !important; /* Keeps card top-aligned on expand */
}

/* 2. Allow independent content height growth */
.ce-card-gradient-border {
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.ce-card-inner-wrapper {
    height: auto !important;
    display: flex;
    flex-direction: column;
}

/* 3. Responsive Card Widths matching Figma specs */
@media (min-width: 1200px) {
    .ce-app-container {
        max-width: 1240px;
    }
    .ce-slide-item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .ce-slide-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 8px;
    }
}

.ce-dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 4px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.ce-dot-indicator.ce-active {
    background-color: #0F0445;
    width: 24px;
    border-radius: 10px;
}

.mt-auto .collapse .border-top .list-unstyled .mb-1 .ce-text-wine-detail{
	color: #006B88 !important;
	font-weight: 500 !important;
}
.mt-auto .collapse .mb-3 .fw-bold .ce-text-wine-detail{
	color: #006B88 !important;
	font-weight: 500 !important;
}

.mt-auto .collapse .mb-3 .fw-bold .ce-text-wine-detail {
  /* Layout & Spacing */
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none !important;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;

  /* Button Colors */
  background-color: #FFC800 !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important; /* #FFFFFF66 */

  /* Typography */
  font-family: 'Figtree', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #000000 !important;
  vertical-align: middle;
}

/* Hover State - Slightly darker yellow */
.mt-auto .collapse .mb-3 .fw-bold .ce-text-wine-detail:hover {
  background-color: #E6B400 !important;
  color: #000000 !important;
}

/* Active State */
.mt-auto .collapse .mb-3 .fw-bold .ce-text-wine-detail:active {
  background-color: #CC9F00 !important;
}