.composite-marketing-section {
    --text-color: #ffffff;
    --bg-color: #000000;
    --overlay-bg: rgba(0, 0, 0, 0.4);

    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    padding: 150px 0;
    padding-top: 0;
}

.composite-marketing-section.has-bg-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-pattern-url);
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

.composite-container {
    margin: 0 auto;
    padding: 0 8%;
    position: relative;
    z-index: 2;
}
.composite-container.cm-doghouse{
    padding: 0 0 0 8%;
}

/* Feature Layout Block (Top) */
.cm-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 150px;
}

.cm-feature.reverse {
    flex-direction: row-reverse;
}

.cm-feature-image {
    flex: 1;
}

.cm-feature-image img {
    width: 100%;
    height: auto;
}

.cm-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 16% 50px 10%;
}

.cm-feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.cm-feature-text {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 600;
}

.cm-feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.cm-bullet-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.4;
}

.cm-bullet-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cm-bullet-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay Banner Block (Middle) */
.cm-banner {
    margin-bottom: 150px;
    text-align: center;
}

.cm-banner-inner {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 8px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.cm-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 1;
}

.cm-banner-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.cm-banner h2 {
    font-size: 7rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cm-banner-subtitle {
    font-family: monospace;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Dog House Block (Bottom) */
.cm-doghouse {
    display: flex;
    gap: 140px;
    align-items: center;
}

.cm-doghouse-signup {
    flex: 0 0 40%;
    max-width: 600px;
}

.cm-doghouse h2 {
    font-size: 4.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.cm-doghouse h2 .title-prefix {
    font-size: 2.1rem;
    font-family: 'IBM Plex Mono', monospace;
}

.cm-doghouse-tagline {
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

.cm-doghouse-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.cm-doghouse-icon {
    text-align: center;
    width: 140px;
}

.cm-doghouse-icon:nth-child(1) {
    width: 119px;
}

.cm-doghouse-icon img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.cm-doghouse-icon span {
    font-size: 1.1rem;
    text-transform: uppercase;
}

.cm-doghouse-gallery {
    flex: 1;
    display: flex;
    gap: 20px;
}

.cm-gallery-item {
    flex: 1;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.cm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Common Components */
.cm-button {
    display: inline-block;
    padding: 15px 40px;
    width: fit-content;
    border: 1px solid #fff;
    border-radius: 50px;
    text-decoration: none;
    color: #fff !important;
    font-family: monospace;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cm-button:hover {
    background: #fff;
    color: #000 !important;
}

.cm-signup-form>div {
    background-color: white !important;
    border-radius: 50px;
    height: 50px;
}

.cm-signup-form>div input::placeholder {
    font-size: 18px;
}

@keyframes circleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.circle-word {
    position: absolute;
    bottom: 0;
    right: 12px;
    width: 110%;
}

/* Responsive Adjustments */

@media(max-width: 1469px){
    .circle-word {
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        z-index: -1;
    }
}
@media (max-width: 1024px) {
    .cm-feature-content h2 {
        font-size: 2.8rem;
    }

    .cm-banner h2 {
        font-size: 5rem;
    }

    .cm-doghouse h2 {
        font-size: 3.5rem;
    }

    .cm-doghouse-gallery {
        gap: 15px;
    }

    .cm-doghouse {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .composite-marketing-section {
        padding: 80px 0;
        padding-top: 0;
    }

    .cm-feature {
        grid-template-columns: 1fr;
        margin-bottom: 80px;
    }

    .cm-feature.reverse {
        display: flex;
        flex-direction: column;
    }

    .cm-feature-content {
        padding: 40px 7%;
        order: 1;
        align-items: center;
    }

    .cm-feature-image {
        order: 2;
    }

    .cm-feature-content h2 {
        font-size: 2.2rem;
    }

    .cm-feature-text {
        font-size: 1rem;
    }

    .cm-banner {
        margin-bottom: 80px;
    }

    .cm-banner-inner {
        min-height: 60vh;
        padding: 60px 20px;
        background-attachment: scroll;
    }

    .cm-banner h2 {
        font-size: 2.1rem;
    }

    .cm-banner-subtitle {
        font-size: 1.1rem;
    }

    .cm-doghouse {
        flex-direction: column;
        gap: 60px;
    }

    .cm-doghouse-signup {
        width: 100%;
    }

    .cm-doghouse h2 {
        font-size: 2.5rem;
    }

    .cm-doghouse h2 .title-prefix {
        font-size: 1.3rem;
    }

    .cm-doghouse-tagline {
        font-size: 0.9rem;
    }

    .cm-doghouse-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .cm-doghouse-icon {
        width: 120px;
    }

    .cm-doghouse-icon span {
        font-size: 0.9rem;
    }

    .cm-doghouse-gallery {
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }

    .cm-gallery-item {
        width: 100%;
        max-width: 320px;
        margin: 0 auto !important;
        transform: none !important;
    }

    .cm-button {
        text-align: center;
        font-size: 1rem;
    }

    .composite-container, .composite-container.cm-doghouse {
        padding: 0 7%;
    }
}

/* Fix for iOS background-attachment: fixed bug */
@supports (-webkit-touch-callout: none) {
    .cm-banner-inner {
        background-attachment: scroll;
    }
}