/**
* Theme Name: QuikLevel Divi Child Theme
* Author: Evolve Digital
* Author URI: https://evolvetodigital.ca/
* Description: A Child theme of Divi. This is to extend the ability to build custom post types for Careers and Projects.
* Template: Divi
* Version: 1.09
 */

/* archive-style.css */

:root {
    --primary-quik: #076285!important;
    --text-dark: #222222;
}

/* Main Container */
.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Page Header Styling */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    color: var(--primary-quik);
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 400; /* Looks slightly thinner in the image */
    margin-bottom: 20px;
}

/* The small horizontal line under the header */
.archive-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #333;
    margin: 0 auto;
}

/* Grid Layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile first: 1 column */
    gap: 40px; /* Space between cards */
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Breakpoint (Matches your image) */
@media (min-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling */
.post-card {
    text-decoration: none; /* Remove underline from links */
    display: flex;
    flex-direction: column;
    group: transition; /* For hover effects */
}

.post-card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Enforces uniform height even if images vary */
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 20px;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box without stretching */
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom on hover */
.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-title {
    color: var(--text-dark);
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 1px;
}

/* Pagination Styling */
.archive-pagination {
    margin-top: 60px;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-dark);
}

.archive-pagination .current {
    background-color: var(--primary-quik);
    color: #fff;
    border-color: var(--primary-quik);
}

.et_pb_text_inner .sxs{
    width:100%;
    padding:0.5rem;
    display:flex;
    align-items:center;
    justify-content:center;
}

.et_pb_text_inner .sxs > div{
    margin-left:0.2rem;
    margin-right:0.2rem;

}

.et_pb_text_inner .sxs strong{
    font-weight:900;
}

.et_pb_text_inner .sxs > div:has(svg){
    margin-top:0.3rem;
}

.et_pb_text_inner:has(div.sxs){
    width:fit-content;
    border-radius: 0.3rem;
    background: rgba(7, 98, 133, 0.37);
    font-size:16px;
}