/* ============================================================
   Grant Finder — Frontend Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
    --gf-font: 'Inter', system-ui, sans-serif;

    --gf-color-primary: #F7671E;
    --gf-color-primary-h: 220;
    --gf-color-primary-hover: #e94e00;
    --gf-color-accent: #e90e0e;
    --gf-color-urgent: #ef4444;
    --gf-color-urgent-bg: #fef2f2;

    --gf-text-primary: #000000;
    --gf-text-secondary: #6B6E7F;
    --gf-text-tertiary: #303D46;
    --gf-text-muted: #4C958E;

    --gf-primary-gradient: linear-gradient(90deg, #4C958E 0%, #303D46 100%);

    --gf-surface: rgba(255, 255, 255, 1);
    --gf-surface-hover: rgba(255, 255, 255, 0.92);
    --gf-border: rgba(148, 163, 184, 0.25);
    --gf-border-hover: rgba(37, 99, 235, 0.4);

    --gf-shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --gf-shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .05);
    --gf-shadow-lg: 0 20px 48px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);

    --gf-radius-sm: 6px;
    --gf-radius-md: 8px;
    --gf-radius-lg: 12px;
    --gf-radius-pill: 999px;

    --gf-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
.gf-app {
    font-family: var(--gf-font);
    color: var(--gf-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.gf-app button:focus,
.gf-app button:active,
.gf-app a:focus,
.gf-app a:active {
    outline: none !important;
}

/* ── Search Bar ── */
body .gf-search-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 32px;
    background-image: var(--gf-primary-gradient);
    padding: 12px;
    border-radius: var(--gf-radius-lg);
}

body .gf-search-input-wrap {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

body .gf-search-icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: var(--gf-transition);
}

body .gf-search-input::-webkit-search-decoration,
body .gf-search-input::-webkit-search-cancel-button,
body .gf-search-input::-webkit-search-results-button,
body .gf-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

body .gf-search-input {
    width: 100%;
    padding: 13px 21px 13px 44px;
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-md);
    background: var(--gf-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 15px;
    color: var(--gf-text-primary);
    box-shadow: var(--gf-shadow-sm);
    transition: var(--gf-transition);
    outline: none;
    appearance: none;
    margin: 0px;
}

body .gf-search-input:focus {
    background: var(--gf-surface);
    color: var(--gf-text-primary);
}

body .gf-search-input::placeholder {
    color: var(--gf-text-muted);
    font-weight: 800;
}



body .gf-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gf-color-primary);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    transition: var(--gf-transition);
}

body .gf-clear-btn[hidden] {
    display: none;
}

body .gf-sector-wrap {
    width: 100%;
}

body .gf-sector-select {
    width: 100%;
    height: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-md);
    background: var(--gf-surface);
    -webkit-backdrop-filter: blur(12px);
    font-size: 15px;
    color: var(--gf-text-tertiary);
    font-weight: 700;
    box-shadow: var(--gf-shadow-sm);
    cursor: pointer;
    transition: var(--gf-transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

body .gf-sector-select option {
    font-weight: 400;
    color: var(--gf-text-primary);
}

body .gf-sector-select option:checked {
    font-weight: 700;
    color: var(--gf-text-tertiary);
}

body .gf-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--gf-radius-md);
    border: none;
    background: var(--gf-color-primary);
    color: #fff;
    cursor: pointer;
    transition: var(--gf-transition);
    white-space: nowrap;
}

body .gf-search-btn:hover {
    background: var(--gf-color-primary-hover);
    box-shadow: var(--gf-shadow-sm);
}

/* ── Status / No Results ── */
body .gf-status {
    padding: 20px;
    text-align: center;
    color: var(--gf-text-secondary);
    font-size: 15px;
    border-radius: var(--gf-radius-md);
    border: 1.5px dashed var(--gf-border);
    margin-bottom: 20px;
}

/* ── Results Grid ── */
body .gf-results-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

/* ── Skeleton Loader ── */
body .gf-skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

body .gf-skeleton-card {
    background: var(--gf-surface);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body .gf-skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    flex-shrink: 0;
}

body .gf-skeleton-body {
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

body .gf-skeleton-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

body .gf-skeleton-line {
    border-radius: var(--gf-radius-sm);
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: gf-shimmer 1.5s infinite;
    height: 14px;
}

body .gf-skeleton-title {
    height: 20px;
    width: 75%;
}

body .gf-skeleton-meta {
    height: 13px;
    width: 90%;
}

body .gf-skeleton-short {
    width: 55%;
}

body .gf-skeleton-btn {
    height: 36px;
    width: 45%;
    margin-top: 8px;
    border-radius: var(--gf-radius-pill);
}

@keyframes gf-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Grant Card ── */
.gf-card {
    position: relative;
    background: var(--gf-surface);
    border-radius: var(--gf-radius-lg);
    box-shadow: var(--gf-shadow-md);
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.gf-card--closing-soon {
    border-color: rgba(239, 68, 68, 0.3);
}

.gf-card--closing-soon:hover {
    border-color: rgba(239, 68, 68, 0.55);
}

/* Thumbnail */
.gf-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    max-height: 200px;
}

.gf-card__image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.gf-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-card__image:hover img {
    transform: scale(1.05);
}

.gf-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
}

.gf-card__body {
    padding: 32px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gf-card__title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.gf-card__title a {
    color: var(--gf-text-primary);
    text-decoration: none;
    transition: color 0.18s;
}

.gf-card__title a:hover {
    color: var(--gf-color-primary);
}

.gf-card__footer {
    margin-inline: auto;
    padding-bottom: 32px;
}

/* Excerpt */
.gf-card__excerpt {
    font-size: 16px;
    color: var(--gf-text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Meta Grid */
.gf-card__meta-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 16px;
}

.gf-card__meta-cell {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding-right: 12px;
}

.gf-card__meta-row {
    width: 100%;
    display: flex;
}

.gf-card__meta-cell dt {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gf-text-primary);
}

.gf-card__meta-cell dd {
    font-size: 16px;
    font-weight: 500;
    color: var(--gf-text-secondary);
    margin: 0;
}

.gf-meta--urgent {
    color: var(--gf-color-urgent) !important;
    font-weight: 600 !important;
}

/* Alternative Timing - Card */
.gf-card__meta-cell--full {
    grid-column: 1 / -1;
}

.gf-card__alt-timing {
    font-size: 11px;
    font-style: italic;
    color: var(--gf-text-secondary);
    margin: 0;
}

/* Desktop Styles (> 767px) */
@media (min-width: 768px) {

    body .gf-search-bar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    body .gf-search-input-wrap {
        flex: 1 1 100%;
    }

    body .gf-sector-wrap {
        flex: 1 1 0%;
        width: auto;
    }

    body .gf-search-btn {
        flex: 0 0 auto;
        width: auto;
    }

    body .gf-card,
    body .gf-skeleton-card {
        flex-direction: row;
    }

    body .gf-card__image-link,
    body .gf-skeleton-image {
        width: 35%;
        aspect-ratio: auto;
        max-height: unset;
    }

    body .gf-card__body,
    body .gf-skeleton-body {
        padding: 40px;
    }

    body .gf-card__body {
        gap: 24px;
    }

    .gf-card__title {
    font-size: 32px;
    }

    .gf-card__footer {
        padding-top: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1024px) {
    body .gf-search-bar {
        flex-wrap: nowrap;
    }

   body .gf-search-input-wrap {
        flex: 1 1 0%;
    }

    body .gf-sector-wrap {
        flex: 0 0 240px;
    }
}

/* ── Buttons ── */
.gf-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--gf-radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--gf-transition);
    white-space: nowrap;
}

.gf-btn--primary {
    background: var(--gf-color-primary);
    color: #fff;
    box-shadow: var(--gf-shadow-sm);
}

.gf-btn--primary:hover {
    color: #FFFFFF;
    background-color: #48B7B2;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: var(--gf-shadow-md);
    text-decoration: none;
}

.gf-btn--full {
    width: 100%;
    justify-content: center;
}

/* ── Load More ── */
.gf-load-more-wrap {
    margin-top: 40px;
    text-align: center;
}

.gf-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: var(--gf-radius-pill);
    border: 2px solid var(--gf-color-primary);
    background: transparent;
    color: var(--gf-color-primary);
    cursor: pointer;
    transition: var(--gf-transition);
    position: relative;
    overflow: hidden;
}

.gf-load-more-btn:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: var(--gf-shadow-sm);
    background: var(--gf-color-primary);
}

.gf-load-more-btn .gf-btn-text,
.gf-load-more-btn .gf-btn-spinner {
    position: relative;
    z-index: 1;
}

.gf-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gf-spin 0.7s linear infinite;
}

@keyframes gf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card entry animation */
.gf-card-enter {
    animation: gf-card-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gf-card-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Single Grant Hero ── */
.gf-single-elementor-wrapper-hero {
    height: 400px;
    background-image: url('../images/fibre-optic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.gf-single-hero-title {
    font-family: var(--gf-font);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .gf-single-elementor-wrapper-hero {
        height: 300px;
        padding: 24px;
    }

    .gf-single-hero-title {
        font-size: 28px;
    }
}

/* ── Single Grant Layout ── */
.gf-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .gf-single-layout {
        grid-template-columns: 1fr 380px;
        padding: 60px 40px;
    }
}

.gf-single-content {
    min-width: 0;
}

.gf-single-content a {
    color: #ff671e;
    text-decoration: underline;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-single-content a:hover {
    text-decoration: transparent;
    color: #ff671e;
}

@media (min-width: 992px) {
    .gf-single-content {
        grid-column: 1;
    }
}

/* ── Single Grant Sidebar ── */
.gf-single-sidebar {
    order: -1;
}

@media (min-width: 992px) {
    .gf-single-sidebar {
        order: 0;
        grid-column: 2;
    }
}

.gf-sidebar-box {
    background: #f5f5f5;
    border-radius: var(--gf-radius-lg);
    padding: 28px;
    position: sticky;
    top: 120px;
}

.gf-sidebar-title {
    font-family: var(--gf-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--gf-text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.gf-sidebar-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf-sidebar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gf-sidebar-row dt {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gf-text-secondary);
}

.gf-sidebar-row dd {
    font-size: 16px;
    font-weight: 500;
    color: var(--gf-text-primary);
    margin: 0;
}

.gf-sidebar-row--full {
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.gf-sidebar-row--full dd {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gf-text-secondary);
}

/* Alternative Timing - Sidebar */
.gf-sidebar-row--note {
    padding-top: 0;
    margin-top: -8px;
}

.gf-sidebar-alt-timing {
    font-size: 13px;
    font-style: italic;
    color: var(--gf-text-secondary);
    margin: 0;
}

.gf-sidebar-box .gf-btn {
    margin-bottom: 24px;
}

.gf-sidebar-box .gf-btn svg {
    flex-shrink: 0;
}

/* ── Sidebar Share Icons ── */
.gf-sidebar-share {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.gf-sidebar-share-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gf-text-secondary);
    margin-bottom: 12px;
}

.gf-sidebar-share-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.gf-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    text-decoration: none;
    transition: var(--gf-transition);
}

.gf-share-icon:hover {
    transform: translateY(-2px);
}

.gf-share-icon--facebook:hover {
    background: #1877f2;
    color: #fff;
}

.gf-share-icon--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.gf-share-icon--twitter:hover {
    background: #000;
    color: #fff;
}

.gf-share-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Single Grant Page - Theme Overrides ── */
.grants-template-default.single .qodef-page-title {
display: none;
}

.grants-template-default.single #qodef-page-inner {
    padding: 0px !important;
    width: 100%;
}

.gf-single-grant-page .gf-single-grant-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.gf-single-elementor-wrapper-hero {
    position: relative;
    color: white;
}

.gf-single-elementor-wrapper-hero::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(184deg,rgba(0, 0, 0, 0.59) 0%, rgba(0, 0, 0, 0.69) 79%);
}


/* Remove theme containers/wrappers */
.gf-single-grant-page .site-main > .container,
.gf-single-grant-page .site-main > .wrap,
.gf-single-grant-page .site-main > .wrapper,
.gf-single-grant-page .content-area > .container,
.gf-single-grant-page .entry-content > .container,
.gf-single-grant-page #content > .container {
    max-width: 100%;
    padding: 0;
}

/* Hide theme's default post title */
.gf-single-grant-page .entry-header,
.gf-single-grant-page .page-header,
.gf-single-grant-page .post-header,
.gf-single-grant-page header.entry-header,
.gf-single-grant-page .entry-title:not(.gf-single-hero-title),
.gf-single-grant-page .page-title:not(.gf-single-hero-title),
.gf-single-grant-page h1.entry-title,
.gf-single-grant-page h1.page-title {
    display: none !important;
}

/* Full width for the grant page */
.gf-single-grant-page .site-content,
.gf-single-grant-page #primary,
.gf-single-grant-page .content-area {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Remove sidebar space if theme has one */
.gf-single-grant-page #secondary,
.gf-single-grant-page .widget-area,
.gf-single-grant-page aside.sidebar {
    display: none;
}

/* ── Sector/Opportunity Type Tags ── */
.gf-sectors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.gf-sector-item {
    display: inline-block;
    background: #f0f4f8;
    color: var(--gf-text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--gf-radius-sm);
    white-space: nowrap;
}

.gf-sector-more {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--gf-color-primary);
    padding: 4px 8px;
    white-space: nowrap;
}

/* Mobile: Show first 3, hide rest */
@media (max-width: 767px) {
    .gf-sector--hide-mobile {
        display: none;
    }

    .gf-sector-more--mobile {
        display: inline-block;
    }

    .gf-sector-more--desktop {
        display: none;
    }
}

/* Desktop: Show first 5, hide rest */
@media (min-width: 768px) {
    .gf-sector--hide-mobile {
        display: inline-block;
    }

    .gf-sector--hide-desktop {
        display: none;
    }

    .gf-sector-more--mobile {
        display: none;
    }

    .gf-sector-more--desktop {
        display: inline-block;
    }
}

/* ── Results Counter ── */
.gf-results-counter {
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
    color: var(--gf-text-muted);
}

.gf-results-counter span {
    font-weight: 600;
    color: var(--gf-text-secondary);
}

/* ── Share Icons Hover Styles ── */
.gf-share-icon {
    transition: var(--gf-transition);
}

.gf-share-icon--linkedin:hover {
    background-color: #0077b5 !important;
    border-color: #0077b5 !important;
    color: #fff !important;
}

/* ============================================================
   Grants Ending Soon Carousel
   ============================================================ */

.gf-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    box-sizing: border-box;
}

.gf-carousel-wrapper * {
    box-sizing: border-box;
}

.gf-carousel {
    display: flex;
}

.gf-carousel-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.gf-carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--gf-surface);
    border-radius: var(--gf-radius-lg);
    border: 1.5px solid var(--gf-border);
    transition: var(--gf-transition);
    overflow: hidden;
}

.gf-carousel-card:hover {
    box-shadow: var(--gf-shadow-lg);
    border-color: var(--gf-border-hover);
}

.gf-carousel-card--closing-soon {
    border-color: rgba(239, 68, 68, 0.3);
}

.gf-carousel-card--closing-soon:hover {
    border-color: rgba(239, 68, 68, 0.55);
}

.gf-carousel-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.gf-carousel-card__image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.gf-carousel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-carousel-card__image:hover img {
    transform: scale(1.05);
}

.gf-carousel-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
}

.gf-carousel-card__body {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf-carousel-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--gf-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gf-carousel-card__title a {
    color: var(--gf-text-primary);
    text-decoration: none;
    transition: color 0.18s;
}

.gf-carousel-card__title a:hover {
    color: var(--gf-color-primary);
}

.gf-carousel-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.gf-carousel-card__meta-item {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.gf-carousel-card__meta-label {
    font-weight: 700;
    color: var(--gf-text-primary);
    margin-right: 6px;
}

.gf-carousel-card__meta-value {
    color: var(--gf-text-secondary);
}

.gf-carousel-card__footer {
    padding: 0 20px 24px 20px;
    text-align: center;
}

.gf-carousel-card__footer .gf-btn {
    width: 100%;
    justify-content: center;
}

/* tiny-slider custom controls & navigation styling */
.gf-carousel-wrapper .tns-outer {
    position: relative;
}

/* Custom Navigation Dots — one dot per card */
.gf-carousel-nav-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 0;
}

.gf-carousel-nav-dots > button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
    flex-shrink: 0;
}

.gf-carousel-nav-dots > button.tns-nav-active {
    background: var(--gf-color-primary);
    transform: scale(1.3);
}

/* Custom Arrows (prev/next controls) */
.gf-carousel-wrapper .tns-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.gf-carousel-wrapper .tns-controls > button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gf-surface);
    border: 1px solid var(--gf-border);
    box-shadow: var(--gf-shadow-sm);
    color: var(--gf-text-primary);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gf-transition);
}

.gf-carousel-wrapper .tns-controls > button:hover {
    background: var(--gf-color-primary);
    color: #fff;
    border-color: var(--gf-color-primary);
}

.gf-carousel-wrapper .tns-controls > button[data-controls="prev"] {
    margin-left: -54px;
}
.gf-carousel-wrapper .tns-controls > button[data-controls="next"] {
    margin-right: -54px;
}

.gf-carousel-wrapper .tns-controls > button {
    font-size: 0; /* hides default text */
}
.gf-carousel-wrapper .tns-controls > button::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url('../vectors/arrow.svg') no-repeat center / contain;
    mask: url('../vectors/arrow.svg') no-repeat center / contain;
    transition: transform 0.22s ease;
}
.gf-carousel-wrapper .tns-controls > button[data-controls="prev"]::before {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .gf-carousel-wrapper .tns-controls > button[data-controls="prev"] {
        margin-left: -20px;
    }
    .gf-carousel-wrapper .tns-controls > button[data-controls="next"] {
        margin-right: -20px;
    }
}

/* ── Carousel View All Button ── */
.gf-carousel-view-all {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.gf-carousel-view-all-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    color: #ffffff;
    background: #F7671E;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.22s ease;
    min-width: 120px;
    text-align: center; 
    transition: var(--gf-transition);
}

.gf-carousel-view-all-btn:hover {
    color: #FFFFFF;
    background-color: #48B7B2;
    text-decoration: none;
    transform: scale(1.1);
}