/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Make all links black with purple underline */
p a {
  color: black;
  text-decoration: underline;
  text-decoration-color: #825DC7;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px; /* increases gap */
}

.nl-hide {
    display: none !important;
}

.white-underline p a {
  text-decoration: underline;
  text-decoration-color: #ffffff;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px; /* increases gap */
}

.hero-section .page-title {
    background-image: url('/wp-content/uploads/2025/04/title-crdv-underline.svg');
	background-repeat: no-repeat;
	background-size: contain; /* or 'contain', depending on how you want it to scale */
	background-position: bottom;
}

blockquote {
    background-color: rgba( 243, 240, 248, 1 );
    margin-bottom: 30px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
blockquote h3 {
    font-size: 1.1em;
}

/* Hide "Articles" in breadcrumbs */

/* Hide the “Articles” link */
span[itemprop="itemListElement"] a[href$="/article/"] {
  display: none !important;
}

/* Hide the separator that comes after it */
span[itemprop="itemListElement"] a[href$="/article/"] ~ svg.ct-separator {
  display: none !important;
}


/* On hover: change text color to purple */
p a:hover {
  color: #825DC7;
}

.nl-breadcrumbs {
    text-transform: none !important;
    font-size: 18px !important;
    font-weight: 700;
}
.nl-breadcrumbs a {
    font-weight: 400;
    color: #fff;
}
.nl-breadcrumbs a:hover {
    text-decoration: underline;
    color: #fff;
}

/* White text for transparent header */
[data-header*="type-1"] .ct-header [data-transparent-row="yes"] .wpml-ls-slot-90.wpml-ls-current-language a {
    color: rgba(255, 255, 255, 1);
}

/* Black text for sticky header with white background */
[data-header*="type-1"] .ct-header [data-transparent-row="no"] .wpml-ls-slot-90.wpml-ls-current-language a {
    color: #000000;
}





#gspb_row-id-gsbp-6bee885::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: auto;
    aspect-ratio: 1000 / 104; /* adjust based on your SVG's proportions */
	background-image: url('/wp-content/uploads/2025/04/crdv-lines-logo.svg');
	background-repeat: no-repeat;
	background-size: contain; /* or 'contain', depending on how you want it to scale */
	background-position: bottom;
	pointer-events: none;
	z-index: 2;
}

/*.nl-page-leader {
    font-size: 30px;
    line-height: 135%;
}*/

.nl-break {
    clear: both;
}


/* Article - Single Page */
.nl-single-header {
    padding-top: 0px !important;
}
.nl-single-title {
    position: relative;
    bottom: -30px;
}
.nl-single-body figure.wp-block-image {
    margin-bottom: 30px;
}
.single-article h1.page-title {
    padding-bottom: 42px;
}
.map-container {
    width: 100%;
    height: 1100px;
    transition: height 0.3s ease;
}
.map-container.collapsed {
    height: 0;
    overflow: hidden;
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Learning Packs */
.single-learning-pack h1.page-title {
	padding-bottom: 42px;
}
.teacher-image img {
	position: absolute;
	top: -80px;
	z-index: 1;
	right: -12px;
}
.teacher-image {
	position: relative;
}
.learning-icon {
	position: relative;
}
.learning-icon img {
	position: absolute;
	top: 24px;
	z-index: 1;
	left: 24px;
}


/* Map Page */
.nl-map-page .ct-container-full[data-vertical-spacing="top:bottom"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.nl-map-page .wp-block-greenshift-blocks-container.alignfull {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
}

.nl-map-page iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
body.page-id-2496 .ct-container-full[data-vertical-spacing="top:bottom"],
body.page-id-8727 .ct-container-full[data-vertical-spacing="top:bottom"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100vh;
    position: relative;
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page iframe, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page .home-link, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page .home-link {
    position: absolute;
    top: 114px;
    right: 54px;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: background-color 0.3s, transform 0.2s;
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page .home-link:hover, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page .home-link:hover {
    background-color: rgb(130, 93, 199);
    transform: scale(1.1);
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page .home-link:active, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page .home-link:active {
    transform: scale(0.95);
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page .home-link svg, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page .home-link svg {
    width: 24px;
    height: 24px;
    fill: black;
    transition: fill 0.3s;
}
body.page-id-2496 .wp-block-greenshift-blocks-container.nl-map-page .home-link:hover svg, 
body.page-id-8727 .wp-block-greenshift-blocks-container.nl-map-page .home-link:hover svg {
    fill: white;
}


/* Sub-Archive Page */
.nl-centre-vert {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  height: 100%; /* make sure the div has a height */
}
.nl-archive-button {
    background-color: none !important;
    border: none;
    padding: 0;
    text-align: left; /* Optional: keeps things tidy */
}
.nl-archive-button .tb-button__link {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: black;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 3px solid #825dc7;
}


/* Content Blocks */
.nl-content-block div[id^="gspb_col-id"] {
	padding: 0px !important;
}


/* START History Timeline page css */

/* ===== Shared Table Styling ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  margin: 1.5rem 0;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #f4f4f4;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

tbody th[scope="row"] {
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #fcfcfc;
}

/* ===== Responsive Cards (all tables) ===== */
@media (max-width: 768px) {
  table {
    border: 0;
  }

  thead {
    display: none;
  }

  tbody tr {
    display: block;
    margin-bottom: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 0.75rem 1rem;
  }

  tbody th[scope="row"],
  tbody td {
    display: block;
    border: none;
    padding: 0.5rem 0;
  }

  tbody th[scope="row"] {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}


/* END History Timeline page css */



/* Responsive styless */

@media (min-width: 1000px) {

}


@media (max-width: 800px) {
.nl-page-leader {
    font-size: 24px;
    line-height: 135%;
}
}