/* WPCode 71613 — CT - Hobby Landing Page Styling */
/* =========================================
   CLASSIC TRANSFERS – HOBBY & MODEL PAGE
   ========================================= */


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

@media (min-width: 1200px) {
    .ct-hobby-hero .wp-block-cover__inner-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 220px;
        padding-right: 220px;
        box-sizing: border-box;
    }

    .ct-hobby-hero .ct-hobby-hero-title,
    .ct-hobby-hero .ct-hobby-hero-description {
        max-width: 550px;
        width: 100%;
    }

    .ct-hobby-hero .ct-hobby-hero-description {
        font-size: 16px;
        line-height: 1.65;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .ct-hobby-hero .wp-block-cover__inner-container {
        width: 100%;
        max-width: none;
        padding-left: 30px;
        padding-right: 30px;
        box-sizing: border-box;
    }
}


/* Outlined secondary button */

.ct-hobby-outline-btn .wp-block-button__link {
    background: transparent !important;
    color: #007a50 !important;
    border: 2px solid #007a50 !important;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color .2s ease,
                color .2s ease;
}

.ct-hobby-outline-btn .wp-block-button__link:hover {
    background: #007a50 !important;
    color: #fff !important;
}


/* =========================================
   POPULAR HOBBY TRANSFERS
   ========================================= */

/* Outer section – full width with desktop padding */

.ct-hobby-categories {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 70px 220px;
}

/* Prevent Gutenberg content-width restrictions */

.ct-hobby-categories > .wp-block-columns,
.ct-hobby-categories > .ct-hobby-category-grid {
    width: 100%;
    max-width: none;
}

/* Four equal columns on desktop */

.ct-hobby-category-grid.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

/* Individual cards */

.ct-hobby-category-grid > .wp-block-column {
    flex: none;
    flex-basis: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

/* Images */

.ct-hobby-category-grid .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Text wrapping */

.ct-hobby-category-grid h3,
.ct-hobby-category-grid h4,
.ct-hobby-category-grid p {
    overflow-wrap: normal;
    word-break: normal;
}


/* =========================================
   FEATURED PRODUCT
   ========================================= */

.ct-hobby-featured {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 220px 70px;
    box-sizing: border-box;
}

.ct-hobby-featured .wp-block-columns {
    align-items: center;
    gap: 30px;
    margin-bottom: 0;
}

.ct-hobby-featured .wp-block-image {
    margin: 0;
}

.ct-hobby-featured .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ct-hobby-featured h6 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #69736f;
    margin-bottom: 12px;
}

.ct-hobby-featured h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #102421;
    margin-bottom: 18px;
}

.ct-hobby-featured p {
    font-size: 16px;
    line-height: 1.6;
    color: #424b48;
}

.ct-hobby-featured hr {
    border: 0;
    border-top: 1px solid #d9dedd;
    margin: 22px 0;
}


/* =========================================
   BENEFITS SECTION
   ========================================= */

.ct-hobby-benefits-section {
    background: #f5f6f6;
    padding: 65px 220px;
    box-sizing: border-box;
}

.ct-hobby-benefits {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.ct-hobby-benefits > .wp-block-group {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 22px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.ct-hobby-benefits .ct-hobby-benefit-icon {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 18px;
    color: #102923;
}

.ct-hobby-benefits h5 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #102923;
    margin: 0 0 10px;
}

.ct-hobby-benefits p {
    font-size: 13px;
    line-height: 1.6;
    color: #59645f;
    margin: 0;
}

/* Vertical dividers */

.ct-hobby-benefits > .wp-block-group:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: #d8ddda;
}


/* =========================================
   TABLET – 768PX TO 1199PX
   ========================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    .ct-hobby-categories {
        padding: 50px 30px;
    }

    .ct-hobby-category-grid.wp-block-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-hobby-featured {
        margin: 20px 30px 50px;
        padding: 20px;
    }

    .ct-hobby-benefits-section {
        padding: 45px 30px;
    }

    .ct-hobby-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-hobby-benefits > .wp-block-group:nth-child(2)::after {
        display: none;
    }
}


/* =========================================
   MOBILE – UP TO 767PX
   ========================================= */

@media (max-width: 767px) {

    /* HERO */

    .ct-hobby-hero.wp-block-cover {
        min-height: 0 !important;
        height: auto !important;
        padding: 35px 20px 260px !important;
        background-color: #edf0f3 !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .ct-hobby-hero .wp-block-cover__inner-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 2;
        box-sizing: border-box;
    }

    .ct-hobby-hero .ct-hobby-hero-title {
        font-size: 30px !important;
        line-height: 1.15;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .ct-hobby-hero .ct-hobby-hero-description {
        font-size: 14px !important;
        line-height: 1.65;
        max-width: 100%;
    }

   /* Hero artwork – mobile zoom */

/* Hero artwork – mobile */

.ct-hobby-hero.wp-block-cover
> .wp-block-cover__image-background {
    width: 180% !important;
    max-width: none !important;
    height: 250px !important;

    top: auto !important;
    bottom: 0 !important;
    left: -400px !important;

    object-fit: cover !important;
    object-position: center center !important;
}
    /* Buttons */

    .ct-hobby-hero .wp-block-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 24px;
    }

    .ct-hobby-hero .wp-block-button {
        width: 100%;
    }

    .ct-hobby-hero .wp-block-button__link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }


    /* CATEGORY SECTION */

    .ct-hobby-categories {
        width: 100%;
        max-width: none;
        padding: 40px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Remove inherited content width */

    .ct-hobby-categories > .wp-block-columns,
    .ct-hobby-categories > .ct-hobby-category-grid {
        width: 100%;
        max-width: none;
    }

    /* One full-width category card per row on mobile */

.ct-hobby-category-grid.wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

    .ct-hobby-category-grid > .wp-block-column {
        flex: none;
        flex-basis: auto;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .ct-hobby-category-grid h3,
    .ct-hobby-category-grid h4 {
        font-size: 15px;
        line-height: 1.35;
    }

    .ct-hobby-category-grid p {
        font-size: 12px;
        line-height: 1.5;
    }

    .ct-hobby-category-grid .wp-block-button__link {
        font-size: 11px;
        padding: 10px 8px;
        white-space: normal;
    }


    /* FEATURED PRODUCT */

    .ct-hobby-featured {
        margin: 20px 20px 45px;
        padding: 20px;
    }

    .ct-hobby-featured .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }

    .ct-hobby-featured .wp-block-column {
        flex-basis: 100%;
        width: 100%;
    }

    .ct-hobby-featured h2 {
        font-size: 25px;
    }


    /* BENEFITS */

    .ct-hobby-benefits-section {
        padding: 45px 20px;
    }

    .ct-hobby-benefits {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ct-hobby-benefits > .wp-block-group {
        padding: 0 15px;
    }

    .ct-hobby-benefits > .wp-block-group::after {
        display: none;
    }
}
