/**
 * Cambium Blog Block — Frontend Styles
 *
 * Brand: Cambium Networks
 * Colors: #003A70 (Dark Blue), #D9027D (Magenta), #65A4EF (Cornflower), #008A96 (Teal)
 * Fonts: Aptos, Calibri, Arial, sans-serif
 */

/* =========================================
   Base
   ========================================= */

.cbb-blog-post {
    font-family: Aptos, Calibri, Arial, sans-serif;
    color: #1a1f36;
    line-height: 1.7;
    max-width: 100%;
}

.cbb-blog-post *,
.cbb-blog-post *::before,
.cbb-blog-post *::after {
    box-sizing: border-box;
}

/* =========================================
   Hero Section
   ========================================= */

.cbb-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 3rem;
}

.cbb-hero__overlay {
    position: absolute;
    inset: 0;
    opacity: 0.75;
}

.cbb-hero__content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    width: 100%;
}

.cbb-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.cbb-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================
   Body Content
   ========================================= */

.cbb-body {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.cbb-body__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2d2d2d;
}

.cbb-body__content h2 {
    font-size: 1.625rem;
    font-weight: 600;
    color: #003A70;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cbb-body__content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003A70;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.cbb-body__content p {
    margin-bottom: 1.5rem;
}

.cbb-body__content a {
    color: #008A96;
    text-decoration: underline;
    text-decoration-color: rgba(0, 138, 150, 0.3);
    text-underline-offset: 2px;
}

.cbb-body__content a:hover {
    text-decoration-color: #008A96;
}

.cbb-body__content blockquote,
.wp-block-quote {
    border-left: 3px solid #D9027D;
    padding: 8px 16px;
    margin: 24px 0;
    color: #555;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}

.cbb-body__content ul,
.cbb-body__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.cbb-body__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.cbb-body__content img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0 0;
}

.cbb-body__content figure.wp-block-image,
figure.wp-block-image {
    margin-bottom: 20px;
}

.cbb-body__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.cbb-body__content th {
    background: #003A70;
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.cbb-body__content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cbb-body__content tr:nth-child(even) td {
    background: #f7f8fa;
}

/* =========================================
   Call to Action
   ========================================= */

.cbb-cta {
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cbb-cta--primary {
    background: linear-gradient(135deg, #D9027D 0%, #a30260 100%);
    color: #ffffff;
}

.cbb-cta--secondary {
    background: linear-gradient(135deg, #008A96 0%, #006670 100%);
    color: #ffffff;
}

.cbb-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.cbb-cta .cbb-cta__heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #ffffff;
}

.cbb-cta__description {
    font-size: 1.0625rem;
    margin: 0 0 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cbb-cta__button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #ffffff;
    color: #003A70;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cbb-cta__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Author Section
   ========================================= */

.cbb-author {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.cbb-author__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
}

.cbb-author__photo-wrap {
    flex-shrink: 0;
}

.cbb-author__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.cbb-author__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #003A70;
    margin: 0 0 0.25rem;
}

.cbb-author__title {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.cbb-author__bio {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   Related Resources
   ========================================= */

.cbb-resources {
    max-width: 760px;
    margin: 0 auto 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.cbb-resources__heading {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.cbb-resources__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbb-resources__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cbb-resources__item:last-child {
    border-bottom: none;
}

.cbb-resources__link {
    color: #008A96;
    text-decoration: none;
    font-weight: 500;
}

.cbb-resources__link:hover {
    text-decoration: underline;
}

.cbb-resources__badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
}

.cbb-resources__badge--blog_post {
    background: #eef4ff;
    color: #003A70;
}

.cbb-resources__badge--data_sheet {
    background: #e6f7f8;
    color: #006670;
}

.cbb-resources__badge--webinar {
    background: #fce7f3;
    color: #a30260;
}

.cbb-resources__badge--product_page {
    background: #ecfdf5;
    color: #065f46;
}

/* =========================================
   Product Callout
   ========================================= */

.cbb-product {
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.cbb-product__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.cbb-product__image-wrap {
    flex-shrink: 0;
    width: 200px;
}

.cbb-product__image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cbb-product__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003A70;
    margin: 0 0 0.5rem;
}

.cbb-product__description {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.cbb-product__link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #003A70;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.cbb-product__link:hover {
    background: #002a54;
}

/* =========================================
   Editor Placeholder
   ========================================= */

.cbb-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 4px;
}

.cbb-placeholder__icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #003A70;
    opacity: 0.5;
}

.cbb-placeholder__text {
    margin: 1rem 0 0;
    color: #6b7280;
    font-size: 0.9375rem;
}

/* =========================================
   Callout Block
   ========================================= */

.cbb-callout {
    border-left: 4px solid #008A96;
    background: #f0f9fa;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-family: Aptos, Calibri, Arial, sans-serif;
}

.cbb-callout__content {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d2d2d;
    margin: 0;
}

.cbb-callout__content p {
    margin: 0 0 0.75rem;
}

.cbb-callout__content p:last-child {
    margin-bottom: 0;
}

.cbb-callout__content strong {
    color: #003A70;
}

.cbb-callout__content a {
    color: #008A96;
    text-decoration: underline;
}

/* =========================================
   Summary Block
   ========================================= */

.cbb-summary {
    background: linear-gradient(135deg, #003A70 0%, #008A96 100%);
    color: #ffffff;
    padding: 28px 32px;
    border-radius: 12px;
    margin: 32px 0;
    font-family: Aptos, Calibri, Arial, sans-serif;
}

.cbb-summary__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1.25rem;
    opacity: 0.85;
}

.cbb-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbb-summary__item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cbb-summary__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cbb-summary__item::before {
    content: "→";
    flex-shrink: 0;
    opacity: 0.7;
    font-size: 0.875rem;
}

.cbb-summary__label {
    font-weight: 700;
    color: #ffffff;
}

.cbb-summary__desc {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
    .cbb-hero {
        min-height: 280px;
    }

    .cbb-hero__content {
        padding: 2rem;
    }

    .cbb-hero__title {
        font-size: 1.75rem;
    }

    .cbb-cta {
        padding: 2rem;
    }

    .cbb-author__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cbb-product__inner {
        flex-direction: column;
        text-align: center;
    }

    .cbb-product__image-wrap {
        width: 160px;
    }
}
