/**
 * Blog Extended Template Stylesheet
 * Extends the blog template with additional sections for tables and icon grids
 * Inherits base styles from blog-template.css
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --white: #fff;
  --almostwhite: #F0F0F0;
  --grey: #d9d9d9;
  --paragraph: #3d3d3d;
  --gunmetal: #323232;
  --cite: #c1c1c1;
  --black: #000;
  --gold: #e1b753;
  --purple: #313144;
}

footer {
  background-color: var(--black);
  margin-top: 90px;
}

.grey {
  background-color: var(--grey);
}

.dark-grey {
  background-color: var(--paragraph);
}

.text-white {
  color: var(--white);
}

h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h4.table,
.blog-table-wrapper h4.table {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #c00000;
  margin: 30px 0;
  padding-bottom: 0;
}

/* Tooltip trigger styling */
span[data-toggle="tooltip"] {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

span[data-toggle="tooltip"]:hover {
  cursor: help;
}

/* Tooltip popup styling */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
}

.tooltip.show {
  opacity: 0.95;
}

.tooltip .tooltip-arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}

.tooltip .tooltip-arrow::before {
  position: absolute;
  content: "";
  border-color: transparent;
  border-style: solid;
}

.tooltip-inner {
  max-width: 300px;
  padding: 8px 12px;
  color: var(--white);
  text-align: left;
  background-color: var(--gunmetal);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip arrow positioning */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  top: 0;
  border-width: 0.4rem 0.4rem 0;
  border-top-color: var(--gunmetal);
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  right: 0;
  border-width: 0.4rem 0.4rem 0.4rem 0;
  border-right-color: var(--gunmetal);
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  bottom: 0;
  border-width: 0 0.4rem 0.4rem;
  border-bottom-color: var(--gunmetal);
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  left: 0;
  border-width: 0.4rem 0 0.4rem 0.4rem;
  border-left-color: var(--gunmetal);
}

/* ==========================================================================
   Blog Extended Template Wrapper
   ========================================================================== */
body.armor-resource-template-resource-blog-extended {
  background: url( '/wp-content/themes/Armor-BW/assets/images/2026-background-webinar.jpg') 0 0 no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.blog-extended-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.blog-extended-wrapper .blog-main {
  padding: 0;
  margin: 0;
}

.blog-extended-wrapper .entry-content {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Blog Hero Section
   ========================================================================== */
.blog-hero {
  background: linear-gradient(#05050500 0%,#05050533 0%,#0003 65%,#050505 98%);
  position: relative;
}

.blog-hero-intro {
  background-color: var(--almostwhite);
  padding: 60px 0;
}

.blog-hero .container,
.blog-hero-intro .container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 25px;
}

@media(max-width: 1299px) {
  .blog-hero .container {
    padding:0;
  }
}

.blog-label {
  font-family: 'Geist Mono', 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.blog-title {
  font-family: 'Lora', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.blog-meta {
  font-size: 16px;
  color: var(--almostwhite);
  margin-bottom: 0;
}

.blog-meta .separator {
  margin: 0 8px;
}

.blog-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--paragraph);
  margin-bottom: 0;
}

.blog-intro p {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 16px;
}

.blog-intro a {
  color: var(--paragraph);
  text-decoration: underline;
}

.blog-intro a:hover {
  color: var(--black);
}

/* ==========================================================================
   Main Content Section
   ========================================================================== */
.blog-main-content {
  background-color: var(--almostwhite);
  padding: 60px 0;
}

.blog-main-content .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
}

.blog-content h2 {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--black);
  margin: 40px 0 24px;
}

.blog-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  margin: 32px 0 16px;
}

.blog-content p {
  margin-bottom: 16px;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.blog-content-section {
  background-color: var(--almostwhite);
  padding: 60px 0;
}

.blog-content-section .container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 25px;
}

.blog-content-section__title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 12px;
}

.blog-content-section__body {
  font-size: 16px;
  line-height: 24px;
  color: var(--paragraph);
}

.blog-content-section__body p {
  margin-bottom: 16px;
}

.blog-content-section__body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  margin: 32px 0 16px;
}

.blog-content-section__body li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Table Section
   ========================================================================== */
.blog-table-section {
  background-color: var(--almostwhite);
  padding: 32px 0 60px;
}

.blog-table-section .container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 25px;
}

.blog-table__title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 24px;
}

.blog-table__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
  margin-bottom: 32px;
  max-width: 900px;
}

.blog-table__intro p {
  margin-bottom: 16px;
}

.blog-table-wrapper {
  border: 1px solid var(--grey);
  overflow-x: auto;
  margin-bottom: 0;
}

.blog-table-wrapper h4 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--paragraph);
  text-transform: uppercase;
}

.blog-content-section__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 1.25rem;
}

.blog-content-section__list li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paragraph);
  display: list-item;
  list-style-type: square;
}

.blog-table-wrapper .blog-content-section__list li {
  margin-bottom: 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.blog-table thead {
  background-color: var(--gunmetal);
}

.blog-table thead th {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid var(--black);
}

.blog-table tbody tr {
  border-bottom: 1px solid var(--grey);
}

.blog-table tbody tr:nth-child(even) {
  background-color: var(--almostwhite);
}

.blog-table tbody tr:nth-child(odd) {
  background-color: var(--white);
}

.blog-table tbody tr:hover {
  background-color: #e8e8e8;
}

.blog-table tbody td {
  padding: 16px;
  color: var(--paragraph);
  vertical-align: top;
}

.blog-table tbody td:first-child {
  font-weight: 500;
  color: var(--black);
}

/* ==========================================================================
   Card Boxes
   ========================================================================== */
.card-box {
  background-color: #EAEAEA;
  padding: 32px;
  margin-bottom: 0;
  box-shadow: 0 0 0.45486px rgba(0, 0, 0, 0.13), 0 0.45486px 5.91266px rgba(0, 0, 0, 0.225);
}

.card-box h3,
.card-box h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
  margin-top: 0;
  padding-top: 0;
}

.card-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paragraph);
  margin-bottom: 12px;
}

.card-box p:last-child {
  margin-bottom: 0;
}

.card-box ul,
.card-box ol {
  margin: 12px 0;
  padding-left: 24px;
}

.card-box li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paragraph);
  margin-bottom: 8px;
}

.card-box strong {
  font-weight: 600;
  color: var(--black);
}

/* Card Box Grid Layout */
.card-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .card-box-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .card-box {
    padding: 24px;
  }

  .card-box h3,
  .card-box h4 {
    font-size: 18px;
  }
}

/* ==========================================================================
   Icon Grid Section
   ========================================================================== */
.blog-icon-grid-section {
  background-color: var(--gunmetal);
  padding: 80px 0;
}

.blog-icon-grid-section .container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 25px;
}

.blog-icon-grid__title {
  font-family: 'Lora', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
}

.blog-icon-grid__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 0;
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.icon-grid-item__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-grid-item__icon img {
  max-width: auto;
  max-height: 50px;
  object-fit: contain;
}

.icon-grid-item__title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.icon-grid-item__description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paragraph);
}

.icon-grid-item__description p {
  color: var(--white);
  margin-bottom: 8px;
}

.icon-grid-item__description p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Blog Quote Section
   ========================================================================== */
.blog-quote-section {
  background-color: var(--paragraph);
  padding: 80px 0;
}

.blog-quote-section .container {
  margin: 0 auto;
  max-width: 1300px;
  padding: 0 20px;
}

.blog-quote {
  position: relative;
}

.blog-quote__mark {
  font-family: 'Lora', serif;
  font-size: 72px;
  color: var(--white);
  line-height: 1;
  margin-bottom: -20px;
  display: block;
}

.blog-quote__text {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 24px;
}

.blog-quote__attribution {
  font-size: 16px;
  color: var(--cite);
  font-style: normal;
  font-weight: 400;
}

/* ==========================================================================
   Blog CTA Section
   ========================================================================== */
.blog-cta-section {
  background-color: var(--grey);
  padding: 80px 0;
}

.blog-cta-section .container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 25px;
}

.blog-cta__title,
.blog-hero__title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 38px;
}

.blog-cta__title {
  padding-top: 0;
}

.blog-cta__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
  margin-bottom: 0;
}

.blog-cta__content p {
  line-height: 24px;
  margin-bottom: 32px;
}

.blog-cta__content strong {
  font-weight: 600;
}

.blog-cta__button {
  display: inline-block;
  padding: 9px 14px;
  background-color: var(--black);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.blog-cta__button:visited {
  color: var(--white);
}

.blog-cta__button:hover {
  background-color: var(--white);
  color: var(--gunmetal);
  text-decoration: none;
}

/* ==========================================================================
   Button Arrow Icon
   ========================================================================== */
.button-arrow {
  position: relative;
  padding-right: 40px;
}

.button-arrow::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 10 L 10 0' fill='transparent' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='rgb(0,0,0)' transform='translate(7 7)'/%3E%3Cpath d='M 0 0 L 10 0 L 10 10' fill='transparent' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='rgb(0,0,0)' transform='translate(7 7)'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.button-arrow:hover::after {
  transform: translateY(-50%) translateX(4px);
}

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

  .blog-hero {
    flex-flow: column;
    place-content: center flex-end;
    align-items: center;
    gap: 10px;
    height: min-content;
    padding: 125px 25px 40px;
    display: flex;
    position: relative;
    overflow: visible;
  }

/* @media (max-width: 1299px) {
  .blog-hero {
    padding: 40px 0;
  }
} */

@media (max-width: 991px) {
  .blog-title {
    font-size: 36px;
  }

  .blog-icon-grid__title {
    font-size: 32px;
  }

  .icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }

  .blog-quote__text {
    font-size: 20px;
  }

  .blog-table {
    font-size: 13px;
  }

  .blog-table thead th,
  .blog-table tbody td {
    padding: 12px;
  }
}

@media (max-width: 767px) {
  /* .blog-hero {
    padding: 40px 0 30px;
  } */

  .blog-title,
  .blog-cta__title,
  .blog-hero__title {
    font-size: 28px;
  }

  .blog-intro {
    font-size: 16px;
  }

  .blog-icon-grid__title {
    font-size: 28px;
  }

  .blog-icon-grid__subtitle {
    font-size: 14px;
  }

  .icon-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-quote-section {
    padding: 60px 0;
  }

  .blog-quote__text {
    font-size: 18px;
  }

  .blog-content-section,
  .blog-cta-section,
  .blog-table-section,
  .blog-icon-grid-section {
    padding: 60px 0;
  }

  .blog-content-section__title,
  .blog-cta__title,
  .blog-table__title {
    font-size: 26px;
  }

  .blog-table {
    font-size: 12px;
  }

  .blog-table thead th,
  .blog-table tbody td {
    padding: 10px 8px;
  }

  /* Stack table columns on mobile if needed */
  .blog-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .icon-grid-item__icon {
    width: 60px;
    height: 60px;
  }

  .icon-grid-item__title {
    font-size: 18px;
  }

  .blog-table thead th,
  .blog-table tbody td {
    padding: 8px 6px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .blog-cta-section {
    display: none;
  }

  .blog-icon-grid-section {
    break-inside: avoid;
  }

  .blog-table {
    break-inside: avoid;
  }

  .icon-grid {
    display: block;
  }

  .icon-grid-item {
    break-inside: avoid;
    margin-bottom: 24px;
  }
}
