@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Newsroom 2025
   Standalone template — does not affect blog-hub styles
   Integrated with blog-hub 2025 design updates
   ============================================================ */

/* ---- Container ---- */
.newsroom__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 568px) {
    .newsroom__container {
        padding: 0 25px;
    }
}

@media (min-width: 1260px) {
    .newsroom__container {
        padding: 0;
    }
}


/* ============================================================
   Hero
   ============================================================ */
.newsroom__hero {
    padding: 48px 0 56px;
    background: #000;
}

.newsroom__hero-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .newsroom__hero-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 48px;
        padding: 90px 0 100px 0;
    }
}

.newsroom__hero-left {
    flex: 1 1 60%;
}

.newsroom__hero-title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .newsroom__hero-title {
        font-size: 55px;
        line-height: 60px;
        max-width: 763px;
    }
}

.newsroom__hero-subtitle {
    font-family: Manrope, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

@media (min-width: 768px) {
    .newsroom__hero-subtitle {
        font-size: 20px;
        line-height: 30px;
    }
}

.newsroom__hero-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

@media (min-width: 768px) {
    .newsroom__hero-right {
        align-items: flex-end;
        text-align: right;
        padding-top: 4px;
    }
}

.newsroom__hero-contact-link {
    font-family: Manrope, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color .2s;
}

@media (min-width: 768px) {
    .newsroom__hero-contact-link {
        font-size: 20px;
        line-height: 30px;
    }
}

.newsroom__hero-contact-link:hover {
    color: #fff;
}

.newsroom__hero-contact-link--plain {
    color: rgba(255, 255, 255, 0.9);
    cursor: default;
}

.newsroom__btn--hero-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.newsroom__btn--hero-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}


/* ============================================================
   Buttons
   ============================================================ */
.newsroom__btn {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    border-radius: 99px;
    padding: 10px 24px;
    cursor: pointer;
    background: white;
    color: black;
    transition: background-color .2s, color .2s, border-color .2s;
}

.newsroom__btn--primary {
    background: #101323;
    color: #fff;
    border: 1px solid #101323;
}

/* Keep the same colors on hover, slight bounce instead of recolor. */
@keyframes nylas-btn-bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-4px); }
    55%  { transform: translateY(0); }
    75%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.newsroom__btn--primary:hover {
    background: #101323;
    border-color: #101323;
    color: #fff;
    animation: nylas-btn-bounce .45s ease;
}

.newsroom__btn--outline {
    background: transparent;
    color: #101323;
    border: 1px solid #B8B8B8;
    border-radius: 100px;
}

.newsroom__btn--outline:hover {
    background: #101323;
    color: #fff;
    border-color: #101323;
}


/* ============================================================
   Content Section (Press Releases / In the News)
   ============================================================ */
.newsroom__section {
    padding: 48px 0;
    background: #fff;
}

.newsroom__section:first-of-type {
    padding-top: 64px;
}

.newsroom__section + .newsroom__section {
    border-top: 1px solid #B8B8B8;
}

@media (min-width: 768px) {
    .newsroom__section {
        padding: 0!important;
    }
}

.newsroom__section-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: #101323;
    margin: 0 0 24px;
}

@media (min-width: 768px) {
    .newsroom__section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}


/* ============================================================
   Featured Post
   ============================================================ */
.newsroom__featured {
    border: 1px solid #b8b8b8;
    padding: 20px;
    border-bottom: 0;
    border-top: 0;
}

.newsroom__featured .newsroom__section-title {
    padding: 24px 24px 0;
    margin: 0 0 24px;
}

@media (min-width: 768px) {
    .newsroom__featured .newsroom__section-title {
        padding: 32px 20px 0;
        margin-bottom: 32px;
    }
}

.newsroom__featured-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .newsroom__featured-inner {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        gap: 32px;
    }
}

.newsroom__featured-image-wrap {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    flex: 1 1 58%;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .newsroom__featured-image-wrap {
        flex: 1 1 58%;
        min-width: 0;
    }
}

@media (max-width: 479px) {
    .newsroom__featured-inner {
        flex-direction: column-reverse;
    }
    .newsroom__featured-image-wrap {
        width: 100%;
    }
}

.newsroom__featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsroom__featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 24px 24px;
    background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsroom__featured-overlay-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

@media (min-width: 768px) {
    .newsroom__featured-overlay-title {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .newsroom__featured-overlay-title {
        font-size: 28px;
        line-height: 1.25;
    }
}

.newsroom__featured-overlay-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,.85);
}

.newsroom__featured-overlay-tag {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 13px;
}

/* Content column */
.newsroom__featured-content {
    flex: 1 1 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

.newsroom__featured-tag {
    display: inline-block;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    color: #4169E1;
    background: #EEF2FF;
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.newsroom__featured-content-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: #101323;
    margin: 0 0 16px;
}

.newsroom__featured-content-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.newsroom__featured-content-title a:hover {
    color: #4169E1;
}

@media (min-width: 1024px) {
    .newsroom__featured-content-title {
        font-size: 24px;
    }
}

.newsroom__featured-content-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 24px;
    flex-grow: 1;
}

.newsroom__featured-content-excerpt p {
    margin: 0;
}

.newsroom__featured-content-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: Manrope, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #667085;
}

.newsroom__featured-content-dot {
    margin: 0 6px;
}


/* ============================================================
   Post Grid
   ============================================================ */
.newsroom__grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid #B8B8B8;
    border-bottom: none;
    overflow: hidden;
}

@media (min-width: 568px) {
    .newsroom__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .newsroom__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Post Card - 1-col: each card is last in row, no right border */
.newsroom__card {
    overflow: hidden;
    padding: 16px;
    padding-top: 38px;
    border-right: none;
    border-bottom: 1px solid #B8B8B8;
}

@media (min-width: 568px) {
    /* 2-col: right border between cards, none on last in row */
    .newsroom__card {
        border-right: 1px solid #B8B8B8;
    }
    .newsroom__card:nth-child(2n) {
        border-right: none;
    }
}

@media (min-width: 1024px) {
    /* 4-col: right border between cards, none on last in row */
    .newsroom__card:nth-child(2n) {
        border-right: 1px solid #B8B8B8;
    }
    .newsroom__card:nth-child(4n) {
        border-right: none;
    }
}

.newsroom__card:hover .newsroom__card-image img,
.newsroom__card:hover .newsroom__card-image .newsroom__card-image-placeholder {
    border-color: #000;
}

.newsroom__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.newsroom__card-image {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #F2F4F7;
}

.newsroom__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid transparent;
    border-radius: 4px;
}

.newsroom__card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #E4E7EC;
    border: 1px solid transparent;
}

.newsroom__card-body {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.newsroom__card-title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #101323;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .newsroom__card-title {
        font-size: 20px;
    }
}

.newsroom__card-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #667085;
    margin-top: 12px;
    flex-wrap: wrap;
    font-family: Inter;
}

.newsroom__card-meta-dot {
    margin: 0 6px;
}


/* ============================================================
   Pagination
   ============================================================ */
.newsroom__pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 32px 0 0;
    border-left: 1px solid #B8B8B8;
    border-right: 1px solid #B8B8B8;
}

@media (min-width: 768px) {
    .newsroom__pagination {
        padding: 18px 40px;
        border-top: 1px solid #B8B8B8;
        margin-top: -1px;
    }
}

.newsroom__pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #293056;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.newsroom__pagination-num:hover {
    background: #F2F4F7;
    color: #404040;
}

.newsroom__pagination-num--current {
    background: #101323;
    color: #fff;
}

.newsroom__pagination-num--current:hover {
    background: #101323;
}

.newsroom__pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #B8B8B8;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.newsroom__pagination-arrow:hover {
    background: #101323;
    border-color: #101323;
}

.newsroom__pagination-arrow:hover svg path {
    fill: #fff;
}

.newsroom__pagination-arrow--prev {
    margin-right: 8px;
}

.newsroom__pagination-arrow--next {
    margin-left: 8px;
}

.newsroom__pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: #667085;
    pointer-events: none;
}

.newsroom__no-posts {
    text-align: center;
    padding: 60px 0;
    color: #667085;
    font-size: 16px;
}


/* ============================================================
   Promo Cards
   ============================================================ */
.newsroom__promos {
    padding: 0!important;
    margin-bottom: 60px;
    border-top: 1px solid #B8B8B8;
    border-bottom: 1px solid #B8B8B8;
}

.newsroom__promos .newsroom__container {
    padding: 0;
    margin-top: -1px;
}

.newsroom__promos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #b8b8b8;
    overflow: hidden;
    border-bottom: 0;
}

@media (min-width: 768px) {
    .newsroom__promos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.newsroom__promo-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #fff;
    border-bottom: 1px solid #b8b8b8;
}

.newsroom__promo-card:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .newsroom__promo-card {
        border-bottom: none;
        border-right: 1px solid #b8b8b8;
    }

    .newsroom__promo-card:nth-child(3n) {
        border-right: none;
    }
}

.newsroom__promo-card-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.newsroom__promo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsroom__promo-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.newsroom__promo-card-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #101323;
    margin: 0 0 8px;
}

.newsroom__promo-card-desc {
    font-weight: 400;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #3E4784;
    margin: 0 0 20px;
    flex-grow: 1;
}

.newsroom__promo-card .newsroom__btn--outline {
    align-self: flex-end;
    background: #101323;
    color: #fff;
    border-color: #101323;
}

.newsroom__promo-card .newsroom__btn--outline:hover {
    background: #293056;
    border-color: #293056;
}


/* ============================================================
   CTA Section
   ============================================================ */
.newsroom__cta {
    position: relative;
    padding: 80px 0;
    background: #0d1117;
    overflow: hidden;
}

.newsroom__cta-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 200, 180, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.newsroom__cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsroom__cta-title {
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .newsroom__cta-title {
        font-size: 48px;
    }
}

.newsroom__cta-subtitle {
    font-family: Manrope, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .newsroom__cta-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
}

.newsroom__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.newsroom__btn--cta-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.newsroom__btn--cta-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    animation: nylas-btn-bounce .45s ease;
}

.newsroom__btn--cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.newsroom__btn--cta-secondary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}


/* ============================================================
   Content area (for Gutenberg blocks like CTA banner)
   ============================================================ */
.newsroom > .entry-content,
.newsroom > .wp-block-group,
.newsroom > section:last-of-type {
    margin-top: 0;
}

.newsroom .cta-banner-section {
    margin-top: 64px;
}

@media (min-width: 768px) {
    .newsroom .cta-banner-section {
        margin-top: 80px;
    }
}
