/*
Theme Name: Divi Child
Template: Divi
Version: 1.0.0
Description: Child theme for Peak Handling - adds a custom single blog post template.
*/

:root {
    --ph-accent: #0b2e4f;
    --ph-accent-text: #ffffff;
    --ph-heading-font: 'Cormorant', serif;
    --ph-body-font: sans-serif;
    --ph-body-color: rgb(102, 102, 102);
}
.jost-light, .jost-light p, .jost-light h2, .jost-light h3, .jost-light h1 {
    font-family: "Jost", sans-serif !important;
    font-optical-sizing: auto !important;
    font-weight: 300 !important;
    font-style: normal !important;
}
.ph-post-hero .ph-post-meta {
    color: rgba(255, 255, 255, 0.85);
}

.ph-single-post {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ph-post-header {
    text-align: center;
    padding: 60px 0 30px;
}
p.wp-block-paragraph {
    font-family: "Jost", sans-serif !important;
    font-weight: 400;
}
.ph-post-category {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ph-accent);
    margin-bottom: 12px;
}

.ph-post-title {
    font-family: var(--ph-heading-font)!important;
    font-weight: 400;
    margin: 0 0 16px;
}

.ph-post-meta {
    font-family: var(--ph-body-font);
    font-size: 14px;
    color: #767676;
}

/* Full-bleed hero: breaks out of the constrained .ph-single-post column */
.ph-post-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ph-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.4);
}

.ph-post-hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 40px 24px;
	    padding-top: 80px;
}

.ph-post-hero .ph-post-category {
    color: #ffffff;
}

.ph-post-hero .ph-post-title {
    color: #ffffff;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.05;
}

.ph-post-hero .ph-post-meta {
    color: rgba(255, 255, 255, 0.85);
}

.ph-post-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    font-family: var(--ph-body-font);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ph-body-color);
	    padding-bottom: 0px;
}

.ph-post-content h2 {
    font-family: var(--ph-heading-font);
    font-weight: 500;
    color: var(--ph-accent);
    font-size: 36px;
    line-height: 1.2;
        margin-top: 0.6em;
    margin-bottom: 0.6em;
}

.ph-post-content h3 {
    font-family: var(--ph-heading-font);
    font-weight: 500;
    color: var(--ph-accent);
    font-size: 26px;
    line-height: 1.25;
    margin-top: 1.3em;
    margin-bottom: 0.5em;
}

.ph-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 16px;
}

.ph-post-content th,
.ph-post-content td {
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.ph-post-content th {
    background: var(--ph-accent);
    color: #ffffff;
    font-family: var(--ph-heading-font);
    font-weight: 500;
    font-size: 17px;
}

.ph-post-content tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.ph-post-content ul,
.ph-post-content ol {
    padding-left: 1.4em;
}

.ph-post-content li {
    margin-bottom: 0.6em;
}

.ph-post-cta {
    background: var(--ph-accent);
    color: var(--ph-accent-text);
    text-align: center;
    padding: 50px 20px;
    margin-top: 20px;
}

.ph-post-cta h3 {
    font-family: var(--ph-heading-font);
    font-weight: 500;
    font-size: 32px;
    color: var(--ph-accent-text);
    margin: 0 0 20px;
	
	font-family: 'Cormorant', serif !important;
}

.ph-post-cta a {
    display: inline-block;
    background: #ffffff;
    color: var(--ph-accent);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: bold;
	font-family: "Jost", sans-serif !important;
    text-decoration: none;
}

.post-1229 header.ph-post-hero{
	background-color: #00000075;
    background-blend-mode: darken;
}

/* Blog archive page */
.ph-archive-hero {
    position: relative;
    background: var(--ph-accent);
    text-align: center;
    padding: 100px 24px 80px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-archive-hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ph-archive-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
}

.ph-archive-hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.ph-archive-title {
    font-family: 'Cormorant', serif !important;
    font-weight: 400;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.ph-archive-subtitle {
    font-family: 'Jost', sans-serif !important;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.ph-archive-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ph-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.ph-archive-card {
    display: flex;
    flex-direction: column;
}

.ph-archive-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.ph-archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph-archive-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ph-accent);
    opacity: 0.1;
}

.ph-archive-card-body {
    padding-top: 20px;
}

.ph-archive-card-category {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ph-accent);
    margin-bottom: 8px;
}

.ph-archive-card-title {
    font-family: var(--ph-heading-font);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.ph-archive-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ph-archive-card-title a:hover {
    color: var(--ph-accent);
}

.ph-archive-card-excerpt {
    font-family: var(--ph-body-font);
    color: var(--ph-body-color);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.ph-archive-card-link {
    display: inline-block;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--ph-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--ph-accent);
}

.ph-archive-pagination {
    margin-top: 60px;
    text-align: center;
}

.ph-archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    font-family: "Jost", sans-serif;
    color: var(--ph-accent);
    text-decoration: none;
    border-radius: 50px;
}

.ph-archive-pagination .page-numbers.current {
    background: var(--ph-accent);
    color: #ffffff;
}
