﻿/* ── Creative Corner specific styles ─────────────────────────────────────────
   Base, Bootstrap, buttons, cards and grid all come from the shared
   CSS files referenced in _Layout.cshtml. Only add overrides here.       */

   body {
    font-family: Helvetica,Arial,sans-serif;
}

/* ── Page header ─────────────────────────────────────────────────────────── */
.cc-page-header {
    background-color: #f1f3f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 40px 0 30px;
}

@media screen and (max-width: 992px){
    .cc-page-header {
        padding: 40px 10px 30px;
    }
}

    .cc-page-header h1 {
        margin-bottom: 8px;
    }

    .cc-page-header p {
        color: #555;
        margin-bottom: 0;
    }

/* ── Sidebar layout ──────────────────────────────────────────────────────── */
.cc-layout--sidebar {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1200px) {
    .cc-layout--sidebar {
        grid-template-columns: 1fr;
    }
}

/* ── Filter sidebar ──────────────────────────────────────────────────────── */
.cc-filters {
    background-color: #f1f3f5;
/*    padding: 20px;*/
    top: 20px;
}

@media screen and (min-width: 1400px){
    .cc-filters {
        position: sticky;
    }
}

.cc-filters__label {
    display: flex;
    color: #353535;
    gap: 5px;
    /* margin-bottom: 8px; */
}

.cc-filters__group {
    margin-bottom: 20px;
}

.cc-filters__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cc-filters__option {
    display: block;
    padding: 6px 8px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: background .12s, color .12s;
}

    .cc-filters__option:hover {
        background-color: #e2eced;
        color: #212529;
    }

.cc-filters__option--active {
    background-color: #d9e3ec;
    color: #10218b;
    font-weight: 700;
}

.cc-filters__form,
.cc-filters__header {
    padding: 20px;
}

.cc-filters__reset-container{
    padding: 0 20px 20px;
}

.cc-filters__form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.cc-filters__header {
    background: black;
    color: #fff;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .cc-filters__header::-webkit-details-marker {
        display: none;
    }

    .cc-filters__header::marker {
        content: "";
    }

.cc-filters__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform .15s ease;
}

.cc-filters__details[open] .cc-filters__chevron {
    transform: rotate(180deg);
}

    .cc-filters__header h2{
    font-weight: bold;
        font-size: 1.1rem;
    }

    .cc-filters__header > * {
        margin: 0;
    }

.cc-filters__reset {
    color: #10218b;
    text-decoration: none;
    font-weight: bold;

}

.cc-filters__body {
    padding-block: 20px;
}

@media (min-width: 768px) {
    .cc-filters__header {
        cursor: default;
    }

    .cc-filters__body {
        flex-direction: column;
        display: flex !important;
        gap: 30px;
    }
}

/* ---- Mobile: real collapsible disclosure ---- */
@media (max-width: 767.98px) {
    .cc-filters__header {
        cursor: pointer;
    }

    .cc-filters__chevron {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid currentColor;
        transition: transform .15s ease;
    }

    .cc-filters__details[open] .cc-filters__chevron {
        transform: rotate(180deg);
    }
}
/* ── Template card grid ──────────────────────────────────────────────────── */
.cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    column-gap: 20px;
    row-gap: 10px;
}

.cc-grid--rail {
    grid-template-columns: repeat(5, 1fr);
}




@media (max-width: 1200px) {
    .cc-grid--rail {
        grid-template-columns: repeat(3, 1fr);
    }

        .cc-grid--rail > .cc-card:nth-child(n+4) {
            display: none;
        }

        .navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {
            
            justify-content: flex-start;
            gap: 30%;
        }
}

@media (max-width: 768px) {
    .cc-grid--rail {
        grid-template-columns: 1fr;
    }

        .cc-grid--rail > .cc-card:nth-child(n+4) {
            display: none;
        }
}

/* ── Template card ───────────────────────────────────────────────────────── */
.cc-card {
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    transition: border-color 0.15s;
    padding: 15px;
}

    .cc-card:hover {
        border-color: #aaa;
    }

.cc-card__image-link {
    display: block;
    overflow: hidden;
}

.cc-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .3s;
}

.cc-card:hover .cc-card__image {
    transform: scale(1.03);
}

.cc-card__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f1f3f5;
}

.cc-card__body {
    padding: 14px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cc-card__category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #185FA5;
}

.cc-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

    .cc-card__title a {
        color: #212529;
        text-decoration: none;
    }

        .cc-card__title a:hover {
            color: #10218b;
        }

.cc-card__summary {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cc-card__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 99px;
}

.cc-badge--age {
    background: #E6F1FB;
    color: #0C447C;
}

.cc-badge--difficulty {
    background: #FAEEDA;
    color: #633806;
}

.cc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    background-color: #f1f3f5;
    border: 0.5px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

    .cc-tag:hover {
        border-color: #10218b;
        color: #10218b;
    }

/* ── Card footer with actions ────────────────────────────────────────────── */
.cc-card__footer {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    margin-top: auto;
    border-top: 0.5px solid #e0e0e0;
}

    .cc-card__footer .btn-primary {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 7px 12px;
    }

    .cc-card__footer .btn-download {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        padding: 7px 12px;
        background: #f1f3f5;
        border: 0.5px solid #ddd;
        border-radius: 6px;
        color: #212529;
        text-decoration: none;
        white-space: nowrap;
        transition: border-color .15s;
    }

        .cc-card__footer .btn-download:hover {
            border-color: #10218b;
            color: #10218b;
        }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.cc-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    background-color: #f1f3f5;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

    .cc-tag:hover {
        border-color: #10218b;
        color: #10218b;
    }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.cc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 0;
}

.cc-badge--age {
    background: #e0f2fe;
    color: #0369a1;
}

.cc-badge--difficulty {
    background: #fef9c3;
    color: #854d0e;
}

/* ── Results summary ─────────────────────────────────────────────────────── */
.cc-results__summary {
    font-size: 14px;
    color: #888;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.cc-sort__label{
    min-width: 24%;
}

@media screen and (min-width: 1400px) {
    .cc-results__summary {
        flex-direction: row;
        align-items: center;
    }
}

    .cc-results__summary *{
        margin: 0;
    }
    /* ── Empty state ─────────────────────────────────────────────────────────── */
    .cc-empty {
        text-align: center;
        padding: 60px 20px;
        color: #888;
    }

    .cc-empty p {
        margin-bottom: 20px;
    }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.cc-breadcrumb {
    background-color: #353535;
    padding: 0 20px;
}

.cc-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.cc-breadcrumb__list li {
    padding: 14px 0;
    color: #fff;
}

.cc-breadcrumb__list li + li::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.cc-breadcrumb__list a {
    color: #9ddfff;
    text-decoration: underline;
}

/* ── Detail hero ─────────────────────────────────────────────────────────── */
.cc-detail-hero {
    padding: 50px 0;
}

@media screen and (max-width: 992px){
    .mobile-padding {
        padding-inline: 10px!important;
    }
}

.cc-detail-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 991px) {
    .cc-detail-hero__inner {
        grid-template-columns: 1fr;
    }
}

.cc-detail-hero__image {
    width: 100%;
}

.cc-detail-hero__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cc-detail-hero__summary {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.cc-detail-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ── Detail metadata ─────────────────────────────────────────────────────── */
.cc-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 20px 0;
}

.cc-detail-meta__item dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}


.cc-cards__card {
    background-color: #fff;
    padding: 25px;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 10px;
    text-align: center;
}

.cc-cards__card > * {
    margin-bottom: 0;
    font-size: 14px
}

.cc-cards__card-heading {
    font-weight: 700
}

.cc-cards__card-image {
    width: 110px;
    margin: auto
}

.cc-cards {
    padding-block: 40px;
    display: none
}

.cc-slider {
    margin-bottom: 50px
}

.cc-slider .cc-cards__card {
    width: 60%;
    margin-inline: auto
}

.cc-detail-meta__tags .heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media screen and (min-width: 992px) {
    .cc-cards {
        display: grid !important;
        grid-template-columns: repeat(3,1fr);
        gap: 20px;
        margin: auto !important
    }

    .cc-slider {
        display: none
    }

    .cc-cards__card:not(:last-of-type) {
        border-right: 1px solid #d1d1d1;
    }
}

@media screen and (min-width: 1024px) {
    section p.intro {
        width: 60%;
        margin: auto
    }

    .search-box__input-control {
        padding-left: 46px;
        border: 1px solid #90949c;
        padding-block: 6px
    }
}

@media screen and (min-width: 1200px) {

    .cc-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        justify-content: center;
        max-width: calc(5 * 300px); /* 5 columns max */
        margin: 0 auto;
        column-gap: 20px;
    }
}

.left-caption-right-image .right-image {
    max-height: 500px;
    min-height: 410px;
    object-position: right
}

@media screen and (max-width: 1199px) {
    .two-col-section__text--mobile, .why-buy-genuine {
        padding: 30px
    }

    .left-caption {
        padding-bottom: 30px
    }
}


.cc-cards a{
    text-decoration: none;
    color: #10218b;
}

.cc-cards a:hover{
    text-decoration: underline;
}

.intro {
    background-color: rgba(111,44,135);
}


@media screen and (min-width: 1600px) {
    .section__content {
        width: 650px
    }
}


.card-grid .splide__slide, .splide--desktop .splide__slide {
    padding-bottom: 0;
}



/* Make each card a flex column so elements stack and align */
.card-block {
    display: flex;
    flex-direction: column;
    align-items: start;
    height: 100%;
    text-align: center;
}

/* Fixed height + object-fit so all images are the same size */
.card-block__image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
}

/* Push the button to the bottom so all buttons align across cards */
.card-block .section__link {
    margin-top: auto;
}

/* Also make the splide slide itself full height */
.splide__slide {
    height: auto;
}

.splide__list {
    align-items: stretch;
}


.splide__pagination__page.is-active {
    background: #10218b;
    opacity: 1;
    /* outline: 1px solid #ffffff; */
    transform: scale(1.2);
}
@media screen and (min-width: 992px) {
    .splide__pagination__page.is-active {
        background: #10218b;
        opacity: 1;
        outline: 1px solid #fff
    }

}



/* ── Pagination ── */
.pagination {
    justify-content: center;
}

.pagination .page-link {
    color: #10218b;
    border-color: #dee2e6;
    font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
    background-color: #10218b;
    border-color: #10218b;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #f0f3ff;
    color: #10218b;
}

.cc-sort{
    display: flex;
    gap: 10px;
}


.cc-results-bar {
    margin-bottom: 1rem;
    gap: .75rem;
}

.cc-active-filter {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
}

.cc-active-filter__label {
    color: #6c757d;
}

.cc-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .6rem;
    background: #000;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.4;
    transition: background-color .15s ease;
}

    .cc-tag-pill:hover {
        background: #c8102e; /* or your brand accent */
        color: #fff;
    }

.cc-tag-pill__x {
    font-size: 1.05em;
    line-height: 1;
}


@media screen and (min-width: 1200px){
    .banner-slider .splide__slide > img,
    .banner-slider .splide__slide > picture {
        display: block;
        max-height: 600px;
        height: 600px;
    }
}

.banner-slider:not(.is-initialized) .splide__list > .splide__slide:not(:first-child) {
    display: none;
}

.banner-slider:not(.is-initialized) .splide__arrows,
.banner-slider:not(.is-initialized) .splide__controls {
    visibility: hidden;
}


.home-page.for-home:before {
    background-image: url("/images/creative-corner/Sections/pink-plane.png") !important;
    top: 2.5rem;
    left: 0;
    display: block;
    content: "";
    position: absolute;
    height: 10rem;
    width: 10rem;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px){
    .home-page.for-home:before {
        left: -43px;
    }
    .home-page.for-home:after {
        bottom: -0.5rem;
    }
}


.home-page.for-home:after {
    background-image: url("/images/creative-corner/Sections/yellow-plane.png") !important;
    bottom: 2.5rem;
    right: 0;
    display: block;
    content: "";
    position: absolute;
    height: 10rem;
    width: 10rem;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
}

.home-page .splide__pagination__page:not(.is-active) {
    background-color: #9d9d9d;
}

.home-page .splide__pagination {
    bottom: 3.5em;
}

.section-pagination .splide__pagination {
    position: static;
    justify-content: center;
    padding: 0;
}

.section-pagination,
.button-container{
    padding-top: 50px;
}

.btn-primary.cc-filters__search-button:after{
    display: none;
}

.btn-primary.cc-filters__search-button {
    padding: 7px 25px 7px 25px;
}

.section-description-container p{
    max-width: 60%;
    margin: auto;
}