/* =========================================
   COMPLIANCE PAGE LAYOUT
========================================= */

.compliance-page{
    max-width:1100px;
    margin:50px auto;
    padding:0 20px;
}

.compliance-page *{
    box-sizing:border-box;
}

/* 
 * MATRX WordPress CSS - Production Ready
 * Use this CSS in your WordPress theme to style MATRX content
 * All styles are scoped to .matrx-content-container to avoid conflicts
 */

/* Content Container */
.matrx-content-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Typography */
.matrx-h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.matrx-h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 3rem 0 1rem 0 !important;
    color: #2a2a2a;
    line-height: 1.3 !important;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.75rem !important;
    padding-top: 0 !important;
}

.matrx-h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #3a3a3a;
    line-height: 1.4;
}

.matrx-h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #3a3a3a;
    line-height: 1.4;
}

.matrx-h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
    color: #3a3a3a;
    line-height: 1.4;
}

.matrx-h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #3a3a3a;
    line-height: 1.4;
}

/* Paragraphs */

.matrx-paragraph {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Text Formatting */
.matrx-em {
    font-style: italic;
    color: #2a2a2a;
}

.matrx-strong {
    font-weight: 600;
    color: #2a2a2a;
}

/* Links */
.matrx-link {
    color: #004bed;
    text-decoration: underline;
    text-decoration-color: #004bed;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

td.matrx-table-cell a {
    color: #004bed;
    text-decoration: underline;
    text-decoration-color: #004bed;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.matrx-link:hover {
    color: #1f2937;
    text-decoration-color: #9ca3af;
}

/* Images */
.matrx-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Lists */
.matrx-list {
    margin: 1.5rem 0;
    padding-left: 0;
}

.matrx-bullet-list {
    list-style: none;
}

.matrx-list-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #4a4a4a;
}

.matrx-list-item::before {
    content: "•";
    color: #6b7280;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Numbered Lists */
.matrx-numbered-list {
    list-style: decimal;
    padding-left: 2rem;
}

.matrx-numbered-list>.matrx-list-item {
    padding-left: 0.5rem;
}

.matrx-numbered-list>.matrx-list-item::before {
    content: none;
    /* Remove the bullet */
}

/* Nested list indentation */
.matrx-nested-list {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem !important;
}

/* Ensure nested lists within list items are properly indented */
.matrx-list-item>.matrx-list {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

/* For multiple levels of nesting, increase indentation */
.matrx-nested-list .matrx-nested-list {
    padding-left: 1.5rem !important;
}

/* Code */
.matrx-content-container .matrx-inline-code {
    background-color: #f5f5f5;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.875rem;
    color: #d73a49;
}

.matrx-content-container .matrx-code-block {
    background-color: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.matrx-content-container .matrx-code {
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
}

/* Blockquotes */
.matrx-content-container .matrx-blockquote {
    border-left: 4px solid #e1e1e1;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Tables */
.matrx-content-container .matrx-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e1e1e1;
}

.matrx-content-container .matrx-table-header {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
    text-align: left;
}

.matrx-content-container .matrx-table-cell {
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
}

.matrx-content-container .matrx-table-row:nth-child(even) {
    background-color: #f8f9fa;
}

/* Images */
.matrx-content-container .matrx-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

/* Horizontal Rules */
.matrx-content-container .matrx-hr {
    border: none;
    border-top: 1px solid #e1e1e1;
    margin: 2rem 0;
}

/* FAQ Styles - Clean Design */
.matrx-faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d1d5db;
}

.matrx-faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #2a2a2a;
}

.matrx-faq-answer {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Code Blocks */
.matrx-inline-code {
    background-color: #f5f5f5;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.875rem;
    color: #d73a49;
}

.matrx-code-block {
    background-color: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.matrx-code {
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
}

/* Blockquotes */
.matrx-blockquote {
    border-left: 4px solid #e1e1e1;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Tables */
.matrx-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e1e1e1;
    color: #333333;
}

.matrx-table-head {
    background-color: #f8f9fa;
}

.matrx-table-body {
    background-color: #ffffff;
}

.matrx-table-header {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
    text-align: left;
    color: #333333;
}

.matrx-table-cell {
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
    color: #333333;
}

.matrx-table-row {
    color: #333333;
}

.matrx-table-row:nth-child(even) {
    background-color: #f8f9fa;
}

/* Ensure table content doesn't inherit external colors */
.matrx-table * {
    color: inherit;
}

/* Images */
.matrx-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

/* Horizontal Rules */
.matrx-hr {
    border: none;
    border-top: 1px solid #e1e1e1;
    margin: 2rem 0;
}

/* Utility Classes */
.matrx-div {
    margin: 0.5rem 0;
}

.matrx-span {
    /* Inherit parent styling by default */
}

/* Flashcard Styles */
.matrx-flashcards-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.matrx-flashcard {
    perspective: 1000px;
    perspective-origin: center center;
    height: 200px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
}

.matrx-flashcard-input {
    display: none;
}

.matrx-flashcard-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.matrx-flashcard-input:checked~.matrx-flashcard-inner {
    transform: rotateY(180deg);
}

.matrx-flashcard-front,
.matrx-flashcard-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

.matrx-flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.matrx-flashcard-back {
    background: linear-gradient(135deg, #2d5016 0%, #1e3a0f 100%);
    color: white;
    transform: rotateY(180deg);
}

.matrx-flashcard:hover .matrx-flashcard-front,
.matrx-flashcard:hover .matrx-flashcard-back {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.matrx-flashcard-content {
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.8;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
}

.matrx-flashcard-label {
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.matrx-flashcard-indicator {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .matrx-flashcard {
        height: 180px;
    }

    .matrx-flashcard-content {
        font-size: 1rem;
    }

    .matrx-flashcard-front,
    .matrx-flashcard-back {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .matrx-flashcard {
        height: 160px;
    }

    .matrx-flashcard-content {
        font-size: 0.95rem;
    }

    .matrx-flashcard-front,
    .matrx-flashcard-back {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .matrx-content-container {
        padding: 1rem;
    }

    .matrx-h1 {
        font-size: 2rem;
    }

    .matrx-h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0 !important;
    }

    .matrx-h3 {
        font-size: 1.2rem;
    }

    .matrx-h4 {
        font-size: 1.05rem;
    }

    .matrx-h5 {
        font-size: 0.95rem;
    }

    .matrx-h6 {
        font-size: 0.9rem;
    }

    .matrx-intro {
        padding: 1rem;
        font-size: 1rem;
    }

    .matrx-faq-question {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    .matrx-paragraph {
        text-align: left;
    }

    .matrx-table {
        font-size: 0.875rem;
    }

    .matrx-table-header,
    .matrx-table-cell {
        padding: 0.5rem;
    }

    .matrx-code-block {
        padding: 0.75rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .matrx-content-container {
        padding: 0.75rem;
    }

    .matrx-h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .matrx-h2 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.75rem 0 !important;
    }

    .matrx-h3 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    .matrx-h4 {
        font-size: 1rem;
        margin: 1.25rem 0 0.5rem 0;
    }

    .matrx-h5 {
        font-size: 0.9rem;
        margin: 1rem 0 0.5rem 0;
    }

    .matrx-h6 {
        font-size: 0.85rem;
        margin: 1rem 0 0.5rem 0;
    }

    .matrx-intro {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .matrx-paragraph {
        margin-bottom: 1.25rem;
    }

    .matrx-list-item {
        margin-bottom: 0.75rem;
    }

    .matrx-table-header,
    .matrx-table-cell {
        padding: 0.375rem;
    }

    .matrx-code-block {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .matrx-inline-code {
        font-size: 0.8rem;
    }
}

/* =========================================
   PAGE TITLE SPACING  (FIXED)
========================================= */

.compliance-page{
    max-width:1100px;
    margin:60px auto 50px;     /* was 50px auto — extra breathing room below header */
    padding:0 20px;
}

.compliance-main-title{
    font-size:40px;            /* was 48px — too large, now balanced */
    line-height:1.2;           /* was 1.15 — slightly more comfortable */
    font-weight:700;
    color:#1a1a1a;

    max-width:900px;

    margin-top:40px;           /* was 30px — pushes H1 away from header */
    margin-bottom:20px;        /* was 35px — closes the empty gap above intro */
}

/* Intro paragraph block — sit directly under the title */
.matrx-intro{
    margin-top:0;              /* was 20px — removes the double‑gap */
    margin-bottom:2rem;
}

/* Mobile */
@media (max-width:768px){

    .compliance-page{
        margin:30px auto 40px;
    }

    .compliance-main-title{
        font-size:30px;        /* was 34px — better fit on small screens */
        line-height:1.25;
        margin-top:20px;
        margin-bottom:15px;    /* was 25px */
    }

}

@media (max-width:480px){

    .compliance-main-title{
        font-size:26px;
        margin-top:15px;
        margin-bottom:12px;
    }

}

/* Hide social share buttons on Compliance CPT */

.single-compliance .addtoany_share_save_container,
.single-compliance .sharedaddy,
.single-compliance .jp-sharing-div,
.single-compliance .essb_links,
.single-compliance .heateor_sss_sharing_container{
    display:none !important;
}

/* =========================================
   COMPLIANCE ARCHIVE  (clean 3-column grid)
========================================= */

.compliance-archive {
	width: 100%;
	max-width: 1320px;
	margin: 40px auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.compliance-archive *,
.compliance-archive *::before,
.compliance-archive *::after {
	box-sizing: border-box;
}

/* Grid — exactly 3 equal columns */
.compliance-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
}

/* Card */
.compliance-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.compliance-card:hover {
	border-color: #c7cdd6;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Link wraps whole card */
.compliance-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Thumbnail */
.compliance-thumb {
	position: relative;
	overflow: hidden;
	background: #f3f4f6;
	aspect-ratio: 16 / 10;
	margin: 0;
}

.compliance-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 0.5s ease;
}

.compliance-card:hover .compliance-thumb img {
	transform: scale(1.04);
}

/* Card content */
.compliance-card-content {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	margin: 0;
}

.compliance-card-title {
	color: #111827;
	font-size: 1.15rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 10px;
}

.compliance-card:hover .compliance-card-title {
	color: #004bed;
}

.compliance-card-excerpt {
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

/* =========================================
   RESPONSIVE
========================================= */

/* 2 columns on tablets */
@media (max-width: 1024px) {

	.compliance-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

}

/* 1 column on phones */
@media (max-width: 600px) {

	.compliance-archive {
		margin: 24px auto;
		padding: 0 16px;
	}

	.compliance-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.compliance-card-title {
		font-size: 1.05rem;
	}

}

/* =========================================
   COMPLIANCE BANNER  (compact)
========================================= */

.compliance-banner {
	width: 100%;
	background: linear-gradient(135deg, #0f3d1f 0%, #1a5e2e 60%, #2d7d3e 100%);
	color: #fff;
	padding: 56px 20px 44px;   /* was 36px top — give space for breadcrumb */
	margin: 0 0 36px;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

.compliance-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
	pointer-events: none;
}

.compliance-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	text-align: center;
}

/* Breadcrumb */
.compliance-breadcrumb {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}

.compliance-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s ease;
}

.compliance-breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
}

.compliance-breadcrumb-sep {
	margin: 0 6px;
	color: rgba(255, 255, 255, 0.5);
}

.compliance-breadcrumb-current {
	color: #fff;
	font-weight: 500;
}

/* Title */
.compliance-banner-title {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
	letter-spacing: -0.01em;
}

/* Subtitle */
.compliance-banner-subtitle {
	font-size: clamp(0.9rem, 1vw, 1rem);
	line-height: 1.5;
	max-width: 680px;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
	.compliance-banner {
		padding: 42px 18px 34px;   /* was 28px top */
		margin-bottom: 24px;
	}
}


@media (max-width: 480px) {
	.compliance-banner {
		padding: 34px 16px 28px;   /* was 22px top */
	}
}
/* =========================================
   BREADCRUMBS
========================================= */

.compliance-breadcrumbs{
    max-width:1400px;
    margin:20px auto 10px;
    padding:0 20px;

    font-size:14px;
}

.compliance-breadcrumbs a{
    color:#666;
    text-decoration:none;
}

.compliance-breadcrumbs a:hover{
    color:#111;
}

/* =========================================
   PAGE LAYOUT
========================================= */

.compliance-page{
    max-width:1100px;
    margin:20px auto 60px;
    padding:0 20px;
}

/* =========================================
   PAGE TITLE
========================================= */

.compliance-main-title{
    font-size:48px;
    line-height:1.1;
    font-weight:700;

    max-width:900px;

    margin:0 0 35px 0;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .compliance-main-title{
        font-size:34px;
        line-height:1.2;
    }

}