/* CSS Document */
/* =========================================================
   1. BLOG VARIABLES / BASE STYLES
   ========================================================= */

.team-blog {
    --blog-navy: #172a4f;
    --blog-blue: #005f97;
    --blog-blue-dark: #004b78;
    --blog-blue-light: #eef5f9;
    --blog-cream: #f8f4ed;
    --blog-text: #243b53;
    --blog-muted: #637387;
    --blog-border: #d8e1e8;
    --blog-white: #ffffff;
    --blog-radius: 18px;
    --blog-shadow: 0 14px 35px rgba(23, 42, 79, 0.12);

    color: var(--blog-text);
    font-size: 1rem;
    line-height: 1.7;
}

.team-blog p {
    margin-bottom: 1.25rem;
}

.team-blog ul,
.team-blog ol {
    margin-bottom: 1.5rem;
}

.team-blog li {
    margin-bottom: .55rem;
}

.team-blog a {
    color: var(--blog-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.team-blog .key-takeaways a {
    color: #EE6E22;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.team-blog .key-takeaways a:hover,
.team-blog .key-takeaways a:focus{
    color: white;
}

.team-blog a:hover,
.team-blog a:focus {
    color: var(--blog-blue-dark);
}

/* INDEX */

/* =========================================================
   TEAM CROWELL BLOG INDEX
   ========================================================= */

.team-blog-index {

 max-width: 1400px;
 margin: 0 auto;
 padding: 2rem 1rem 5rem;
 color: var(--blog-text);
}


/* =========================================
   INDEX HERO
   ========================================= */

.team-blog-index .blog-index-hero {
 max-width: 760px;
 margin: 0 auto 2.5rem;
 text-align: center;
}

.team-blog-index .blog-index-hero h1 {
 margin-bottom: .75rem;
 color: var(--blog-navy);
 font-size: clamp(2.4rem, 5vw, 4rem);
 line-height: 1.05;
 text-transform: none;
}

.team-blog-index .blog-index-hero-line {
 display: block;
 width: 55px;
 height: 4px;
 margin: 0 auto 1.25rem;
 background: var(--blog-blue);
 border-radius: 100px;
}

.team-blog-index .blog-index-hero p {
 margin-bottom: 0;
 color: var(--blog-muted);
 font-size: 1.05rem;
 line-height: 1.6;
}

.team-blog-index .blog-results-count {
 margin-bottom: 1.5rem;
 color: var(--blog-muted);
 font-size: .85rem;
}


/* =========================================
   GRID
   ========================================= */

.team-blog-index .blog-grid {
 margin-top: 0;
}


/* =========================================
   CARD
   ========================================= */

.team-blog-index .blog-card {
 overflow: hidden;
 background: var(--blog-white);
 border: 1px solid var(--blog-border);
 border-radius: 14px;
 box-shadow: 0 5px 18px rgba(23, 42, 79, .06);
 transition: transform .2s ease, box-shadow .2s ease;
}

.team-blog-index .blog-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 12px 30px rgba(23, 42, 79, .11);
}

.team-blog-index .blog-card-image-link {
 display: block;
 text-decoration: none;
}


/* =========================================
   UNIVERSAL 16:9 MEDIA AREA
   ========================================= */

.team-blog-index .blog-card-media {
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 aspect-ratio: 16 / 9;
 overflow: hidden;
 background: var(--blog-blue-light);
}


/* =========================================
   NORMAL FEATURED IMAGE
   ========================================= */

.team-blog-index .blog-card-standard-image {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform .35s ease;
}

.team-blog-index .blog-card:hover .blog-card-standard-image {
 transform: scale(1.025);
}


/* =========================================
   INSTAGRAM PORTRAIT IMAGE
   
   The image is contained rather than cropped.
   ========================================= */

.team-blog-index .blog-card-media-social {
 padding: 1rem;
 background:
  linear-gradient(135deg, #172a4f 0%, #244d74 55%, #2b7ab0 100%);
}

.team-blog-index .blog-card-social-image {
 display: block;
 width: auto;
 max-width: 48%;
 height: calc(100% - .5rem);
 max-height: 100%;
 object-fit: contain;
 border-radius: 6px;
 box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}


/* =========================================
   TEAM CROWELL BRANDED FALLBACK
   Cornerstone tonal four-pane treatment
   ========================================= */

.team-blog-index .blog-card-placeholder {
 position: relative;
 overflow: hidden;
 padding: 2rem 2.5rem;
 background: #2b678c;
}

/* Centered logo */

.team-blog-index .blog-card-placeholder-content {
 position: relative;
 z-index: 3;
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 height: 100%;
}

.team-blog-index .blog-card-placeholder-logo {
 display: block;
 width: min(80%, 370px);
 max-height: 88px;
 height: auto;
 margin: 0 auto;
 object-fit: contain;
}


/* =========================================
   SUBTLE CORNERSTONE FOUR-PANE MARK
   ========================================= */

.team-blog-index .blog-card-placeholder-mark {
 position: absolute;
 z-index: 1;
 top: -32%;
 right: -5%;
 display: grid;
 grid-template-columns: 1fr 1fr;
 grid-template-rows: 1fr 1fr;
 gap: 9px;
 width: 240px;
 height: 240px;
 transform: rotate(0deg);
 opacity: .16;
}

/* All four panes */

.team-blog-index .blog-card-placeholder-mark span {
 display: block;
 background: #123f62;
}

/* Top-left */

.team-blog-index .blog-card-placeholder-mark span:nth-child(1) {
 border-radius: 0 0 32px 0;
}

/* Top-right */

.team-blog-index .blog-card-placeholder-mark span:nth-child(2) {
 border-radius: 0 0 0 32px;
}

/* Bottom-left */

.team-blog-index .blog-card-placeholder-mark span:nth-child(3) {
 border-radius: 0 32px 0 0;
}

/* Bottom-right */

.team-blog-index .blog-card-placeholder-mark span:nth-child(4) {
 border-radius: 32px 0 0 0;
}


/* =========================================
   SECOND VERY SUBTLE MARK
   Gives the pattern more depth without
   overwhelming the logo
   ========================================= */

.team-blog-index .blog-card-placeholder::after {
 content: "";
 position: absolute;
 z-index: 0;
 left: -65px;
 bottom: -95px;
 width: 190px;
 height: 190px;
 border: 32px solid rgba(18, 63, 98, .08);
 border-radius: 42px;
 transform: rotate(12deg);
}

/* =========================================
   CARD TITLE
   ========================================= */

.team-blog-index .blog-card .card-title {
 margin-bottom: .9rem;
 font-size: 1.4rem;
 line-height: 1.22;
 text-transform: none;
 letter-spacing: 0;
}

.team-blog-index .blog-card .card-title a {
 color: var(--blog-navy);
 text-decoration: none;
}

.team-blog-index .blog-card .card-title a:hover,
.team-blog-index .blog-card .card-title a:focus {
 color: var(--blog-blue);
}


/* =========================================
   EXCERPT
   ========================================= */

.team-blog-index .blog-card .card-text {
 margin-bottom: 1.5rem;
 color: var(--blog-text);
 font-size: .95rem;
 line-height: 1.6;
}


/* =========================================
   READ ARTICLE
   ========================================= */

.team-blog-index .blog-card-read-more {
 display: inline-flex;
 align-items: center;
 gap: .4rem;
 color: var(--blog-blue-dark);
 font-size: .88rem;
 font-weight: 700;
 text-decoration: none;
}

.team-blog-index .blog-card-read-more span {
 transition: transform .2s ease;
}

.team-blog-index .blog-card-read-more:hover span,
.team-blog-index .blog-card-read-more:focus span {
 transform: translateX(4px);
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 991.98px) {

 .team-blog-index {
  padding-right: .75rem;
  padding-left: .75rem;
 }

}

@media (max-width: 767.98px) {

 .team-blog-index {
  padding-top: 1rem;
 }

 .team-blog-index .blog-index-hero {
  margin-bottom: 2rem;
 }

 .team-blog-index .blog-card .card-body {
  padding: 1.4rem;
 }

 .team-blog-index .blog-card-social-image {
  max-width: 44%;
 }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

 .team-blog-index .blog-card,
 .team-blog-index .blog-card-standard-image,
 .team-blog-index .blog-card-read-more span {
  transition: none;
 }

 .team-blog-index .blog-card:hover {
  transform: none;
 }

 .team-blog-index .blog-card:hover .blog-card-standard-image {
  transform: none;
 }

}

/* =========================================================
   2. ARTICLE WIDTH / LAYOUT
   ========================================================= */

.team-blog .blog-content {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}


/* =========================================
   ARTICLE HERO
   Cornerstone tonal four-pane treatment
   ========================================= */

.team-blog .blog-hero {
 position: relative;
 overflow: hidden;
 max-width: 1100px;
 margin: 0 auto 4rem;
 padding: 3.5rem 4rem 5rem;
 background: #285f82;
 color: #ffffff;
 border-radius: var(--blog-radius);
}

/* Keep hero content above decorative background */

.team-blog .blog-eyebrow,
.team-blog .blog-hero h1,
.team-blog .blog-meta {
 position: relative;
 z-index: 2;
}

.team-blog .blog-hero h1 {
 max-width: 850px;
 margin: 0 0 1.5rem;
 color: #ffffff;
 font-size: clamp(2rem, 4vw, 3.4rem);
 line-height: 1.08;
 letter-spacing: -.02em;
 text-transform: none;
}

.team-blog .blog-hero p {
 color: #ffffff;
}

.team-blog .blog-hero a {
 color: #ffffff;
}

.team-blog .blog-eyebrow {
 margin-bottom: .75rem;
 color: rgba(255, 255, 255, .82);
 font-size: .8rem;
 font-weight: 700;
 letter-spacing: .08em;
 text-transform: uppercase;
}

.team-blog .blog-meta {
 margin-bottom: 0;
 color: rgba(255, 255, 255, .92);
 font-size: .9rem;
 line-height: 1.55;
}


/* =========================================
   SUBTLE CORNERSTONE FOUR-PANE MARK
   ========================================= */

.team-blog .blog-hero-mark {
 position: absolute;
 z-index: 1;
 top: -10%;
 right: -3%;
 display: grid;
 grid-template-columns: 1fr 1fr;
 grid-template-rows: 1fr 1fr;
 gap: 12px;
 width: 330px;
 height: 330px;
 opacity: .14;
 pointer-events: none;
}

.team-blog .blog-hero-mark span {
 display: block;
 background: #123f62;
}

.team-blog .blog-hero-mark span:nth-child(1) {
 border-radius: 0 0 42px 0;
}

.team-blog .blog-hero-mark span:nth-child(2) {
 border-radius: 0 0 0 42px;
}

.team-blog .blog-hero-mark span:nth-child(3) {
 border-radius: 0 42px 0 0;
}

.team-blog .blog-hero-mark span:nth-child(4) {
 border-radius: 42px 0 0 0;
}


/* =========================================
   ARTICLE HERO - MOBILE
   ========================================= */

@media (max-width: 767.98px) {

 .team-blog .blog-hero {
  margin-bottom: 2.5rem;
  padding: 2.25rem 1.5rem 2.75rem;
  border-radius: 12px;
 }

 .team-blog .blog-hero h1 {
  max-width: 100%;
  font-size: 2rem;
  line-height: 1.12;
 }

 .team-blog .blog-hero-mark {
  top: auto;
  right: -70px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  gap: 9px;
  opacity: .10;
 }

}


/* =========================================================
   4. ARTICLE HEADINGS
   ========================================================= */

.team-blog h2,
.team-blog h3,
.team-blog h4 {
    color: var(--blog-blue);
    letter-spacing: 0;
    text-transform: none;
}

.team-blog h2 {
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.65rem, 3vw, 2rem);
    line-height: 1.2;
}

.team-blog h3,
.team-blog h4 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 2.5vw, 1.55rem);
    line-height: 1.3;
}


/* =========================================================
   5. QUICK ANSWER
   ========================================================= */

.team-blog .quick-answer {
    margin: 0 0 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--blog-blue-light);
    border-left: 5px solid var(--blog-blue);
    border-radius: 0 12px 12px 0;
}

.team-blog .quick-answer p:last-child {
    margin-bottom: 0;
}

.team-blog .quick-answer-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--blog-blue-dark);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}


/* =========================================================
   6. SOCIAL / INSTAGRAM FEATURE
   ========================================================= */

.team-blog .blog-social-feature {
    width: 100%;
    max-width: 340px;
    margin: 2.5rem auto 3.5rem;
    text-align: center;
}

.team-blog .blog-social-feature > a {
    display: block;
}

.team-blog .blog-social-feature img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(23, 42, 79, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.team-blog .blog-social-feature > a:hover img,
.team-blog .blog-social-feature > a:focus img {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(23, 42, 79, .18);
}

.team-blog .blog-social-feature figcaption {
    margin-top: .75rem;
    color: var(--blog-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.team-blog .blog-social-feature figcaption a {
    font-weight: 600;
}


/* =========================================================
   7. INSTAGRAM EMBED
   ========================================================= */

.team-blog .blog-instagram-embed {
    max-width: 540px;
    margin-right: auto;
    margin-left: auto;
}

.team-blog .blog-instagram-embed .instagram-media {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}


/* =========================================================
   8. MEDIA CARD
   ========================================================= */

.team-blog .blog-media-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background: var(--blog-white);
    border: 1px solid var(--blog-border);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(23, 42, 79, .07);
}

.team-blog .blog-media-card-image {
    flex: 0 0 180px;
}

.team-blog .blog-media-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.team-blog .blog-media-card-content {
    flex: 1;
}

.team-blog .blog-media-card-content p:last-child {
    margin-bottom: 0;
}

.team-blog .blog-media-card-title {
    margin-bottom: .35rem;
    color: var(--blog-navy);
    font-size: 1.05rem;
    font-weight: 700;
}


/* =========================================================
   9. BLOG TABLE
   ========================================================= */

.team-blog .table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.team-blog .blog-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--blog-white);
    border: 1px solid var(--blog-border);
}

.team-blog .blog-table th,
.team-blog .blog-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--blog-border);
}

.team-blog .blog-table th {
    background: #f3f6f9;
    color: var(--blog-navy);
    font-weight: 700;
}

.team-blog .blog-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.team-blog .blog-table td:first-child {
    width: 65%;
}

.team-blog .blog-table td:last-child,
.team-blog .blog-table th:last-child {
    width: 35%;
}


/* =========================================================
   10. KEY TAKEAWAYS
   ========================================================= */

.team-blog .key-takeaways {
    margin: 3rem 0;
    padding: 1.75rem 2rem;
    background-color: #285f82;
    border-radius: 14px;
    color: var(--blog-white);
}

.team-blog .key-takeaways h2,
.team-blog .key-takeaways h3,
.team-blog .key-takeaways h4 {
    margin-top: 0;
    color: var(--blog-white);
}

.team-blog .key-takeaways ul {
    margin-bottom: 0;
}

.team-blog .key-takeaways li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   11. FAQ

   FAQs remain expanded because the site's existing
   .collapse rule overrides Bootstrap collapse behavior.
   ========================================================= */

.team-blog .blog-faq {
    margin-top: 3rem;
}

.team-blog .blog-faq-item {
    padding: 1.4rem 0;
    border-top: 1px solid var(--blog-border);
}

.team-blog .blog-faq-item:last-child {
    border-bottom: 1px solid var(--blog-border);
}

.team-blog .blog-faq-question {
    margin-bottom: .45rem;
    color: var(--blog-navy);
    font-size: 1.05rem;
    font-weight: 700;
}

.team-blog .blog-faq-answer {
    margin-bottom: 0;
}


/* =========================================================
   12. SOURCES
   ========================================================= */

.team-blog .blog-sources {
    padding-top: 1rem;
}

.team-blog .blog-sources ul {
    padding-left: 1.15rem;
}

.team-blog .blog-sources li {
    margin-bottom: .5rem;
    color: var(--blog-muted);
    font-size: .9rem;
}


/* =========================================================
   13. AUTHOR / ABOUT TEAM CROWELL
   ========================================================= */

.team-blog .author-box {
    margin: 3.5rem 0;
    padding: 2rem;
    background: var(--blog-cream);
    border: 0;
    border-radius: 14px;
}

.team-blog .author-box h4 {
    margin-top: 0;
    color: var(--blog-navy);
}

.team-blog .author-box p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   14. TALK WITH TEAM CROWELL
   ========================================================= */

.team-blog .blog-contact {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--blog-blue-light);
    border-radius: 14px;
}

.team-blog .blog-contact h4 {
    margin-top: 0;
}


/* =========================================================
   15. DISCLOSURE
   ========================================================= */

.team-blog .blog-disclosure {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blog-border);
    color: var(--blog-muted);
    font-size: .8rem;
    line-height: 1.55;
}


/* =========================================================
   16. ARTICLE BUTTON

   Intentionally named .blog-link-btn so it does not
   conflict with the existing global .blog-btn used
   on blog cards.
   ========================================================= */

.team-blog .blog-link-btn {
    display: inline-block;
    padding: .65rem 1.1rem;
    background: var(--blog-blue);
    border: 2px solid var(--blog-blue);
    border-radius: 6px;
    color: var(--blog-white);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.team-blog .blog-link-btn:hover,
.team-blog .blog-link-btn:focus {
    background: var(--blog-blue-dark);
    border-color: var(--blog-blue-dark);
    color: var(--blog-white);
}


/* =========================================================
   TEAM CROWELL BLOG INDEX
   Scoped to .team-blog-index
   ========================================================= */


/* =========================================================
   17. BLOG INDEX LAYOUT
   ========================================================= */

.team-blog-index {
    padding-bottom: 4rem;
}


/* =========================================================
   18. BLOG INDEX HERO
   ========================================================= */

.team-blog-index .blog-index-hero {
    margin: 0 0 3rem;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(115deg, #153754 0%, #28678f 100%);
    border-radius: 0 0 55px 0;
}

.team-blog-index .blog-index-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: none;
}

.team-blog-index .blog-index-hero-line {
    display: block;
    width: 64px;
    height: 3px;
    margin: 1.25rem auto;
    background: rgba(255, 255, 255, .6);
}

.team-blog-index .blog-index-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* =========================================================
   19. MOBILE / RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .team-blog {
        font-size: .975rem;
    }

    .team-blog .blog-hero {
        margin-bottom: 3rem;
        padding: 2.5rem 1.5rem 3rem;
    }

    .team-blog .blog-hero h1 {
        font-size: 2rem;
    }

    .team-blog .blog-featured-image {
        margin-top: -4rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .team-blog .blog-social-feature {
        width: calc(100% - 3rem);
        max-width: 300px;
        margin: 2rem auto 3rem;
    }

    .team-blog .quick-answer {
        padding: 1.25rem;
    }

    .team-blog .blog-media-card {
        display: block;
    }

    .team-blog .blog-media-card-image {
        margin-bottom: 1.25rem;
    }

    .team-blog .blog-media-card-image img {
        width: 100%;
    }

    .team-blog .blog-table th,
    .team-blog .blog-table td {
        padding: 10px 12px;
    }

    .team-blog .key-takeaways,
    .team-blog .author-box,
    .team-blog .blog-contact {
        padding: 1.5rem;
    }

}


/* =========================================================
   20. ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .team-blog .blog-social-feature img,
    .team-blog .blog-link-btn {
        transition: none;
    }

    .team-blog .blog-social-feature > a:hover img,
    .team-blog .blog-social-feature > a:focus img {
        transform: none;
    }

}