/* BLOG ENGINE - TECHNICAL LUXURY STYLE */

.op-blog-archive {
    padding: 0 0 100px 0; /* REMOVED TOP PADDING TO FIX GAP */
    background: #ffffff;
    min-height: 100vh;
}

.op-blog-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.op-blog-header {
    margin-bottom: 80px;
    text-align: center;
}

.op-blog-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: #000;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
}

.op-blog-title span {
    display: inline;
    color: #000;
    -webkit-text-stroke: 0;
}

.op-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.op-post-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 500px; /* REDUCED HEIGHT */
    border: none;
    /* SYMMETRIC ARCHITECTURAL CLIP: Top-Right & Bottom-Right */
    clip-path: polygon(0% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 0% 100%);
}

.op-post-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 90px rgba(0,0,0,0.2);
}

.op-post-card > * { position: relative; z-index: 2; }

.op-card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: block;
}

/* THE FAMOUS COLOR ROTATION - WITH LUXURY PATTERNS */
.op-post-card.style-neon { 
    background: var(--op-accent, #c3e56f); 
    color: #000; 
    background-image: linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.03) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}

.op-post-card.style-grey { 
    background: #eeeeee; 
    color: #000; 
    background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.03) 1px, rgba(0,0,0,0.03) 2px);
    background-size: 100% 10px;
}

.op-post-card.style-black { 
    background: #0a0a0a; 
    color: #fff; 
    background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, transparent 1px, transparent 30px), radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 100% 100%, 30px 30px;
}

.op-post-card.style-black .op-post-tag-clinical { background: rgba(255,255,255,0.1); color: var(--op-accent); }
.op-post-card.style-black .op-post-tag-clinical a { color: var(--op-accent); }
.op-post-card.style-black .op-post-link-clinical:hover { color: var(--op-accent); }

.op-post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.op-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.op-post-card:hover .op-post-thumb img {
    transform: scale(1.1);
}

.op-post-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.op-post-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.op-post-num {
    font-size: 13px;
    font-weight: 900;
    font-family: var(--op-font-accent);
    letter-spacing: 2px;
}

.op-post-tag-clinical {
    font-size: 9px;
    font-weight: 950;
    background: rgba(0,0,0,0.1);
    padding: 6px 15px;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.op-post-tag-clinical a {
    color: inherit !important;
    text-decoration: none !important;
}

.op-post-h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: inherit !important;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.op-post-h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.op-post-excerpt {
    font-size: 14px;
    color: inherit;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 30px;
}

.op-post-link-clinical {
    margin-top: auto;
    font-size: 10px;
    font-weight: 950;
    color: inherit !important;
    text-decoration: none !important;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.op-post-link-clinical:hover {
    transform: translateX(10px);
}

.op-post-card a {
    text-decoration: none !important;
    color: inherit !important;
}

/* SINGLE POST - PROFESSIONAL LAYOUT */
.op-single-post {
    padding: 0 0 100px 0; /* NO TOP PADDING */
    background: #ffffff;
    color: #000;
}

/* Force header to be transparent and hero to start at top */
.single-post .header, .blog .header, .home .header {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

.services-hero {
    margin-top: 0 !important;
    min-height: 85vh !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 5;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 950;
    color: rgba(255,255,255,0.03);
    z-index: 0;
    pointer-events: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: -2vw;
}

.sp-meta a {
    color: #fff !important;
    text-decoration: none !important;
    transition: 0.3s;
    font-weight: 700;
}

.sp-meta a:hover {
    color: var(--op-accent, #c3e56f) !important;
}

.op-single-header {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: left;
}

.op-single-h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    line-height: 0.95;
    margin: 20px 0 0 0;
    text-transform: uppercase;
    letter-spacing: -3px;
}

.op-single-content {
    max-width: 800px;
    margin: 120px auto 0; /* ADDED 120PX AIR AT TOP */
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}

/* MEDIA HANDLING - Professional & Centered */
.op-single-featured img,
.op-single-content img, 
.op-single-content video,
.op-single-content iframe,
.op-single-content .wp-block-image,
.op-single-content .wp-block-video {
    display: block !important;
    margin: 60px auto !important;
    max-width: 90% !important;
    max-height: 600px !important;
    width: auto !important;
    height: auto !important;
    border: 1px solid #eee;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.op-single-featured {
    margin-bottom: 80px;
    text-align: center;
}

/* FOOTER & BUTTONS */
.op-single-footer {
    margin-top: 100px;
    padding: 80px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.op-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 45px;
    background: #000;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 100px;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid #000;
}

.op-btn i {
    font-size: 16px;
    transition: 0.4s;
}

.op-btn:hover {
    background: var(--op-accent, #c3e56f);
    color: #000 !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(195, 229, 111, 0.3);
}

.op-btn:hover i {
    transform: translateX(-5px);
}

.wp-block-gallery .wp-block-image, .op-custom-gallery img {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid #eee;
    transition: 0.4s;
}

.wp-block-gallery .wp-block-image:hover {
    border-color: #000;
    transform: scale(1.02);
    z-index: 5;
}

@media (max-width: 768px) {
    .op-single-h1 { font-size: 3rem; }
    .wp-block-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}


/* PAGINATION ACCESSIBILITY */
.op-pagination {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.op-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    font-family: var(--op-font-accent);
    font-weight: 900;
    font-size: 14px;
    border-radius: 4px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.op-pagination .page-numbers.current {
    background: var(--op-accent, #c3e56f);
    border-color: rgba(0,0,0,0.1);
}

.op-pagination .page-numbers:hover:not(.current) {
    background: #000;
    color: #fff;
}
