/*------------------------------------*\
    CCS Captains — callout / section styling
    Used by the ccs-captains mu-plugin to render Captain Right Away,
    Captain Coupon, and Duo callouts on my-ccs.com.
\*------------------------------------*/

.ccs-captain {
    position: relative;
    margin: 40px auto;
    padding: 32px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #F6FBFF 0%, #EDF7FC 100%);
    color: var(--paragraph-color, #333);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(4, 36, 82, 0.06);
}

.ccs-captain--accent-orange {
    background: linear-gradient(135deg, #FFF7F2 0%, #FFE8D8 100%);
    border: 1px solid rgba(255, 95, 31, 0.18);
}

.ccs-captain--accent-blue {
    background: linear-gradient(135deg, #F0F8FD 0%, #D9ECF7 100%);
    border: 1px solid rgba(32, 154, 214, 0.18);
}

.ccs-captain-wrap--footer {
    background: linear-gradient(180deg, #011635 0%, #042452 100%);
    padding: 40px 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.ccs-captain-wrap--footer .container {
    padding-left: 24px;
    padding-right: 24px;
}

.ccs-captain--footer {
    background: transparent;
    color: #fff;
    margin: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.ccs-captain--footer .ccs-captain__copy,
.ccs-captain--footer .ccs-captain__copy p {
    color: #fff;
}

.ccs-captain__media {
    display: block;
    text-align: center;
    min-width: 280px;
}

.ccs-captain__media img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 18px rgba(4, 36, 82, 0.12));
}

.ccs-captain__copy {
    text-align: center;
}

.ccs-captain__eyebrow {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-color, #209AD6);
    margin-bottom: 10px;
}

.ccs-captain--accent-orange .ccs-captain__eyebrow {
    color: var(--primary-color, #FF5F1F);
}

.ccs-captain--footer .ccs-captain__eyebrow {
    color: #f6e27f;
}

.ccs-captain__headline {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.ccs-captain--footer .ccs-captain__headline {
    color: #fff;
}

.ccs-captain__message {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.ccs-captain__message:last-child {
    margin-bottom: 0;
}

.ccs-captain__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 50px;
    background: var(--primary-color, #FF5F1F);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.ccs-captain__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 95, 31, 0.25);
    background: #E84E10;
    color: #fff;
}

.ccs-captain__cta--secondary {
    background: var(--secondary-color, #209AD6);
}

.ccs-captain__cta--secondary:hover {
    background: #1880B8;
    box-shadow: 0 10px 24px rgba(32, 154, 214, 0.25);
}

/* Tablet / desktop: two columns */
@media (min-width: 768px) {
    .ccs-captain {
        grid-template-columns: minmax(220px, 320px) 1fr;
        gap: 32px;
        padding: 40px;
    }
    .ccs-captain--reverse {
        grid-template-columns: 1fr minmax(220px, 320px);
    }
    .ccs-captain--reverse .ccs-captain__media {
        order: 2;
    }
    .ccs-captain__copy {
        text-align: left;
    }
    .ccs-captain__headline {
        font-size: 28px;
    }
    .ccs-captain__message {
        font-size: 17px;
    }
    .ccs-captain--footer {
        grid-template-columns: minmax(240px, 300px) 1fr;
        padding: 40px;
    }
}

@media (min-width: 1200px) {
    .ccs-captain {
        padding: 56px;
        gap: 48px;
    }
    .ccs-captain__headline {
        font-size: 32px;
    }
    .ccs-captain__media img {
        max-width: 360px;
    }
}

/* If two Captain sections appear close to each other on a page, show ONE image on mobile */
@media (max-width: 767px) {
    .ccs-captain + .ccs-captain .ccs-captain__media {
        display: none;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ccs-captain__cta {
        transition: none;
    }
    .ccs-captain__cta:hover {
        transform: none;
    }
}

/* About-page Captains team section */
.ccs-captains-team {
    margin: 60px 0;
}
.ccs-captains-team__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}
.ccs-captains-team__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (min-width: 768px) {
    .ccs-captains-team__grid {
        grid-template-columns: 1fr 1fr;
    }
}
.ccs-captains-team__card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(4, 36, 82, 0.06);
    text-align: center;
}
.ccs-captains-team__card img {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 8px 18px rgba(4, 36, 82, 0.12));
}
.ccs-captains-team__name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 4px;
    color: var(--dark-blue, #042452);
}
.ccs-captains-team__role {
    color: var(--secondary-color, #209AD6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.ccs-captains-team__bio {
    font-size: 15px;
    line-height: 1.65;
    color: var(--paragraph-color, #333);
    margin: 0;
}
