/* Videl's custom CSS, carried over from WordPress "Additional CSS".
   Retired Insightly form rules removed (forms are Jobber). */
.jobber-inline-work-request {margin:  0 auto!important; width:100%;}
.jobber-work-request {margin:0px auto!important; width: 100%;}

.dynamic-entry-content .wp-block-image {margin: 3rem 0 2rem!important;}
.dynamic-entry-content figcaption {line-height: 1.5; padding: .5rem 1rem 0; font-size: 0.9rem;}
.dynamic-entry-content figcaption a {font-weight: 500;
    color: var(--accent);
    border: var(--accent);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    padding-bottom: 0px; transition: 0.35 ease-in-out;}
.dynamic-entry-content figcaption a:hover {color: #c90000;}

.dynamic-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.25em 0 2em;
	font-size: 0.95rem;
	line-height: 1.5;
	background: #ffffff;
	border: 1px solid #000000!important;
}

/* Header row */
.dynamic-entry-content table thead th,
.dynamic-entry-content table tr:first-child th {
	background: #000000;
	color: #ffffff;
	font-weight: 700;
	text-align: left;
	padding: 14px 16px;
	border: 1px solid #000000;
	vertical-align: middle;
}

/* Body cells */
.dynamic-entry-content table td,
.dynamic-entry-content table tbody th {
	padding: 14px 16px;
	border: 1px solid #000000;
	vertical-align: top;
	color: #000000;
}
.dynamic-entry-content table a {text-decoration: underline; color: var(--accent); }

/* First-column row labels (e.g. "4-ply BUR", "TPO") */
.dynamic-entry-content table tbody th,
.dynamic-entry-content table tbody td:first-child {
	font-weight: 700;
	color: #c90000;
}

/* Alternating rows — uses GP base-2 gray */
.dynamic-entry-content table tbody tr:nth-child(even) td,
.dynamic-entry-content table tbody tr:nth-child(even) th {
	background: var(--base-2);
}

.dynamic-entry-content table tbody tr:nth-child(odd) td,
.dynamic-entry-content table tbody tr:nth-child(odd) th {
	background: #ffffff;
}

/* Hover state for readability on long tables */
.dynamic-entry-content table tbody tr:hover td,
.dynamic-entry-content table tbody tr:hover th {
	background: #f5e6e6;
	transition: background 0.15s ease;
}

/* Mobile — horizontal scroll instead of cramped wrap */
@media (max-width: 768px) {
	.dynamic-entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: normal;
		font-size: 0.9rem;
	}
	
	.dynamic-entry-content table thead th,
	.dynamic-entry-content table td,
	.dynamic-entry-content table tbody th {
		padding: 10px 12px; 
	}
}

.key-takeaway li, .toc-accordion  li, .dynamic-entry-content li {margin-bottom: .5rem;}
.dynamic-entry-content [id] {
    padding-top: 80px!important;
    margin-top: -70px!important;
}
.single .dynamic-entry-content img {border-radius: 5px;}
.dynamic-entry-content .toc-accordion ul { margin: .5em 0 .5em 1.5em!important;}
.dynamic-entry-content ul {margin: 0 0 1.5em 1.5em;}
h2.no-toppad {margin-top: 0px!important;}
.site-logo {
    background: #c90000;
    padding: 13px 15px;
    margin-top: -10px; /* or whatever your header container padding is */
    margin-bottom: -10px; /* add it back so the logo content stays aligned */
}
.footer-links-wt a { color: #fff!important;}
.footer-links-wt a:hover { color: #c90000!important;}
.term-links.video-page a { color: var(--accent)!important;}
.term-links.video-page a { color: var(--accent-2)!important;}
.term-links a  {font-weight: 700!important; border:none!important; color: #fff!important;}
.term-links a:hover {color: rgba(255,255,255,0.5)!important; transition: 0.35s ease-in-out}

.gb-mega-menu-wrap,
.gb-mega-menu__panel, .gb-overlay .gb-overlay--anchored, .gb-overlay--positioned {
    z-index: 9999 !important;
    position: relative;
}

/* Project Gallery */ 
.project-gallery img {border-radius: 5px;}

/* Service Cards */ 
a.service-card:hover h3 {
  color: #ffffff !important;
	transition: 0.35s ease-in-out!important;}

.service-text:hover svg {
  color: #ffffff;
transition: 0.35s ease-in-out!important;
}

.klaviyo-form-RDGtKV form { max-width: 100% !important; }

/* Videl Hero Form — Labels & Inputs */

/* Dark */ 
.dark-a a {color: var(--base-3)!important;}
/* Videl Project Hover */ 
.roof-life-hover {
  position: relative;
  overflow: hidden;
}

.roof-life-hover .hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.roof-life-hover:hover .hover-content {
  opacity: 1;
}
@media (max-width: 1024px) {
  .roof-life-hover .hover-content {
    display: none;
  }
} 
/* Before + After Block */ 

.videl-before-after .before-label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    background: #000;
    padding: 8px 16px;
    z-index: 2;
		border-radius: 5px;
    transition: opacity 0.4s ease;
}

.videl-before-after .after-label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    background: #c90000;
    padding: 8px 16px;
	border-radius: 5px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.videl-before-after:hover .before-label {
    opacity: 0;
}

.videl-before-after:hover .after-label {
    opacity: 1;
}

.videl-before-after {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ba-hint, .ba-hint-mobile {
    bottom: 0px;
	  right: 0px;
	  margin-bottom: 0px;
    position: absolute;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    z-index: 3;
    pointer-events: none;
	width: 100%;
	text-align: center;
}

.ba-hint-mobile {
    display: none;
}

@media (max-width: 768px) {
    .ba-hint {
        display: none;
    }
    .ba-hint-mobile {
        display: block;
    }
	.videl-before-after .after-label, .videl-before-after .before-label {font-size: .8rem;     padding: 4px 8px;}
}

/* Roof Repair Pricing Table */ 
/* Videl Pricing Table */

.videl-pricing {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.videl-pricing thead tr {
  background: #1a1a1a;
}

.videl-pricing thead th {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 16px 24px;
  text-align: left;
	line-height: 1.25;
}

.videl-pricing thead th:last-child {
  text-align: right;
}

.videl-pricing tbody tr {
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.15s ease;
}

.videl-pricing tbody tr:nth-child(even) {
  background: #fff;
}
.videl-pricing tbody tr:nth-child(odd) {
  background: #f9f9f9;
}

.videl-pricing tbody tr:hover {
  background: #f0f0f0;
}

.videl-pricing tbody td {
  padding: 14px 24px;
  font-size: 16px;
		line-height: 1.35;
}

.videl-pricing tbody td:first-child {
  font-weight: 600;
}

.videl-pricing tbody td:last-child {
  text-align: right;
  font-weight: 700;
}

.videl-pricing-note a:hover {
  color: #b30000;
}

@media (max-width: 480px) {
  .videl-pricing thead th,
  .videl-pricing tbody td {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ── Insightly Contact Form ── */

/* Submit button */

/* Required field note */

.light-wt {
  font-size: 0.875rem;
  color: #666;
}

/* ── Mobile ── */


/* NEW SITE CSS */

/* YouTube Videos in Posts */ 
.single .wp-block-embed  {border-radius: 5px!important; overflow: hidden; margin-bottom: 2rem; border: 1px solid #000!important;}
.short-vid  {border-radius: 5px!important; overflow: hidden!important;  margin-bottom: 2rem; border: 1px solid #000!important;}

blockquote {border-left: 5px solid #c90000;}

.no-pad h2 {margin-bottom: 0px!important;}

/* Open New Tab */ 
.new-tab a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.25em;
	margin-bottom: .1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c90000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  border-bottom: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}


/* remove bottom margin on last paragraph or list in container */
.gb-container p:last-child:last-of-type,
.gb-container ul:last-child:last-of-type {
  margin-bottom: 0px;
}

/* page and post hyperlinks */
.content-area :is(p, li ) a {
  font-weight: 500;
  color: var(--accent);
  border: var(--accent);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding-bottom: 0px;
}
.content-area :is(p, li ) a:hover {
  color: var(--accent-2);
  border: var(--accent-2);
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

/* GB button line height override */
.gb-button {
	line-height: 1.5em;
}

/* sidebar categories list style */
.wp-block-categories {
  list-style: none;
  margin-left: unset;
}

/* drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}

.single-post :is(p, ul, ol) + :is(h2, h3, h4) {
  margin-top: 40px;
}

/* wp search block style */
.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
	transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  background-color: var(--accent-2);
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

/* footer navigation block spacing */
.wp-block-navigation {
	gap: 0;
}

/* footer navigation block link hover color */
.wp-block-navigation li:hover {
  color: var(--accent-2);
}

/* ═══════════════════════════════════════════
   VIDEL BLOG FILTER — CSS (FULL REPLACEMENT)
   ═══════════════════════════════════════════ */

/* --- GP Container Override for Blog Page --- */
.page-template-page-blog .site-content,
.page-template-page-blog .inside-article,
.page-template-page-blog .entry-content {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

/* --- Blog Page Layout --- */
.videl-blog-page {
    width: 100%;
}

.videl-blog-page .videl-blog-inner {
    box-sizing: border-box;
    max-width: 1246px;
    margin: 0 auto;
    padding: 2rem 40px 3rem;
    width: 100%;
}

/* --- Pill Filters --- */
.videl-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.videl-pill {
    display: inline-block;
    padding: .5rem 1.1rem;
    border: 1.5px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}

.videl-pill:hover {
    background: #f3f3f3;
    border-color: #aaa;
}

.videl-pill.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* --- Card Grid --- */
.videl-blog-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

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

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

/* --- Card --- */
.videl-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.videl-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .25s, box-shadow .25s;
}

.videl-card-link:hover {
    border-color: #c90000;
    box-shadow: 0 2px 12px rgba(201, 0, 0, .08);
}

/* Thumbnail */
.videl-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
}

.videl-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Body */
.videl-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.videl-card-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #c90000;
    margin-bottom: .5rem;
}

.videl-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    margin: 0 0 auto;
    padding-bottom: 1rem;
}

/* Author */
.videl-card-author {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid #f0f0f0;
}

.videl-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.videl-author-meta {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.videl-author-name {
    font-size: .82rem;
    font-weight: 600;
    color: #222;
}

.videl-card-date {
    font-size: .78rem;
    color: #777;
}

/* --- Pagination --- */
.videl-blog-pagination {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0 1rem;
}

.videl-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    transition: background .15s, border-color .15s, color .15s;
}

.videl-blog-pagination .page-numbers:hover:not(.current) {
    background: #f3f3f3;
    border-color: #aaa;
}

.videl-blog-pagination .page-numbers.current {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.videl-blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 .25rem;
}

/* --- Loading State --- */
#videl-blog-results.is-loading {
    opacity: .5;
    pointer-events: none;
    transition: opacity .15s;
}

/* --- No Results --- */
.videl-no-results {
    text-align: center;
    color: #777;
    padding: 3rem 1rem;
    font-size: 1rem;
}

/* --- Mobile --- */
@media (max-width: 780px) {
    .videl-blog-page .videl-blog-inner {
        padding: 1rem 24px 2rem;
    }
    .videl-pill {
        font-size: .82rem;
        padding: .45rem .85rem;
    }
}
/* Thumbnail - match 1200x630 ratio */
.videl-card-thumb {
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    margin: 0;
}

/* Title - match roofing-projects style */
.videl-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin: 0 0 auto;
    padding-bottom: 1rem;
}

.videl-card-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid #f0f0f0;
}

.videl-author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.videl-author-name {
    font-size: .85rem;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

.videl-card-date {
    font-size: .75rem;
    color: #999;
    line-height: 1.2;
}

.videl-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.videl-card-thumb img {
    transition: filter .35s ease-in-out;
}

.videl-card-link:hover .videl-card-thumb img {
    filter: grayscale(100%);
}

.videl-pill:hover {
    background: #c90000;
    color: #fff;
    border-color: #c90000;
}
.wp-block-pullquote {padding: 0;}
.wp-block-pullquote blockquote {font-size: 1.5rem; line-height: 1.45; text-align: left; padding: 10px 20px!important; }