/*
Theme Name: Workhorse Game Studio
Author: Workhorse Game Studio
Description: Custom theme for Workhorse Game Studio
Version: 1.0
*/

:root {
    --color-yellow: #EEAD0B;
    --color-orange: #BB6202;
    --color-charcoal: #21201D; 
    --color-grey: #cccccc;
    --color-light-grey: #F4F2EA;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-bg: #1a1a1a;
    --color-darker-bg: #111111;
    --color-border: #333333;
    --font-heading: 'Bowlby One SC', cursive;
    --font-body: 'Red Hat Display', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --container-width: 1400px;
    --texture-noise: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-yellow);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Global Button Styles */
.btn {
    background-color: transparent;
    color: var(--color-yellow);
    border: none;
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-yellow);
    border-left: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:hover::before,
.btn:hover::after {
    width: 100%;
    height: 100%;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Utilities */
.hex-clip {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-clip-alt {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.tech-border {
    position: relative;
    border: 1px solid var(--color-border);
}
.tech-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-yellow);
    border-left: 2px solid var(--color-yellow);
}
.tech-border::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    transition: all 0.3s;
    border-bottom: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding .logo-link {
    display: block;
}

.site-logo {
    width: 200px;
    height: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-grey);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.main-navigation a:hover {
    color: var(--color-yellow);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-yellow);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-grey);
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.main-navigation .sub-menu a::after {
    display: none;
}

.main-navigation .sub-menu a:hover {
    background-color: rgba(238, 173, 11, 0.1);
    color: var(--color-yellow);
    padding-left: 25px;
}

.btn-subscribe {
    background-color: transparent;
    color: var(--color-yellow);
    border: none;
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

/* Top-left corner - extends to full top and left borders */
.btn-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-yellow);
    border-left: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
}

/* Bottom-right corner - extends to full bottom and right borders */
.btn-subscribe::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-subscribe:hover::before {
    width: 100%;
    height: 100%;
}

.btn-subscribe:hover::after {
    width: 100%;
    height: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-yellow);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Hamburger to X animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .site-branding {
        flex: 0 1 30%;
        max-width: 30%;
    }
    
    .header-actions {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 30px;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease, visibility 0s 0.4s;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .header-actions.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease, visibility 0s;
    }
    
    /* Mobile navigation menu styling */
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-navigation > ul > li {
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-navigation a {
        display: block;
        padding: 18px 0;
        font-size: 1rem;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    html {
    overflow-x: hidden;
}

    /* Mobile dropdown styles */
    .main-navigation .menu-item-has-children {
        position: relative;
    }

    .main-navigation .menu-item-has-children > a {
        display: block;
        width: calc(100% - 44px); /* Leave space for button */
    }

    .main-navigation .menu-item-has-children > a::before {
        display: none;
    }
    
    .mobile-dropdown-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px; /* Sufficient tappable area */
        height: 54px; /* Should match approximately the link height */
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-dropdown-toggle::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid currentColor;
        color: var(--color-grey);
        transition: transform 0.3s ease;
    }
    
    .main-navigation .menu-item-has-children.sub-menu-open > .mobile-dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .main-navigation .sub-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background-color: rgba(255, 255, 255, 0.03); /* Slight background to distinguish */
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-top: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        margin-top: 0;
    }
    
    .main-navigation .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 500px;
        padding: 5px 0 15px;
    }
    
    .main-navigation .sub-menu li {
        border-bottom: none;
    }
    
    .main-navigation .sub-menu a {
        padding: 12px 0 12px 20px;
        font-size: 0.9rem;
        color: var(--color-grey);
    }
    
    .main-navigation .sub-menu a:hover {
        background-color: transparent;
        padding-left: 25px;
        color: var(--color-yellow);
    }
    
    /* Subscribe button in mobile menu */
    .btn-subscribe {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Logo size adjustment */
    .site-logo {
        width: 100%;
        height: auto;
    }
}

/* Smaller mobile devices */
@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .site-header {
        padding: 12px 0;
    }
    
    .site-logo {
        width: 100%;
        height: auto;
    }
    
    .header-actions {
        width: 90%;
        padding: 90px 25px 30px;
    }
    
    .main-navigation a {
        padding: 15px 0;
        font-size: 0.95rem;
    }

    .site-branding {
        flex: 0 1 60%;
        max-width: 60%;
    }
}

/* Hero Section */
.block-hero {
    background-color: var(--color-darker-bg);
    padding: 0;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    display: flex;
    align-items: center;
    min-height: 700px;
}

.block-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -40%;
    width: 1500px;
    height: 1500px;
    background: radial-gradient(circle, rgba(238, 173, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: gradientGrow 1.5s ease-out both;
}

@keyframes gradientGrow {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.block-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(238, 173, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: gradientGrow 1.5s ease-out both;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.block-hero .container {
    max-width: 1600px;
    position: relative;
    z-index: 2;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 0 0 40%;
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-black);
    margin-bottom: 30px;
    line-height: 1.4;
    max-width: 550px;
    text-transform: uppercase;
    background-color: var(--color-yellow);
    display: inline-block;
    padding: 5px 15px;
    font-weight: 700;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.btn-kickstarter {
    background-color: transparent;
    color: var(--color-yellow);
    font-size: 1.3rem;
    padding: 20px 40px;
    font-weight: 900;
    text-transform: uppercase;
    border: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.btn-kickstarter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-yellow);
    border-left: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-kickstarter::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-kickstarter:hover {
    color: var(--color-white);
}

.btn-kickstarter:hover::before,
.btn-kickstarter:hover::after {
    width: 100%;
    height: 100%;
}

.hero-meta {
    font-size: 22px;
    color: #888;
    font-weight: 500;
    margin-top: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 700px;
}

.hex-outline-wrapper {
    position: relative;
    width: 750px;
    height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-outline {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Drop shadow is applied to the parent, which filters the opaque children */
    animation: hexFadeSlideIn 1.2s ease-out 0.3s both, hexShadowRotate 5s linear infinite;
}

.hex-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 104%;
    height: 104%;
    z-index: 2; /* Sit on top of the image layer (which is -1) */
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50 1, 95 25, 95 75, 50 99, 5 75, 5 25' fill='none' stroke='%23cccccc' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.hex-outline::before {
    content: '';
    position: absolute;
    top: -2%;
    left: -2%;
    width: 104%;
    height: 104%;
    /* Image Layer: Dark Overlay + Image */
    background-image: 
        linear-gradient(rgba(33, 32, 29, 0.85), rgba(33, 32, 29, 0.85)),
        var(--hex-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* Clip to hexagon shape */
    clip-path: polygon(50% 1%, 95% 25%, 95% 75%, 50% 99%, 5% 75%, 5% 25%);
    z-index: -1;
}

@keyframes hexShadowRotate {
    0% { filter: drop-shadow(4px 4px 12px rgba(238, 173, 11, 0.25)); }   /* Lower Right */
    25% { filter: drop-shadow(-4px 4px 12px rgba(238, 173, 11, 0.25)); }  /* Lower Left */
    50% { filter: drop-shadow(-4px -4px 12px rgba(238, 173, 11, 0.25)); } /* Upper Left */
    75% { filter: drop-shadow(4px -4px 12px rgba(238, 173, 11, 0.25)); }  /* Upper Right */
    100% { filter: drop-shadow(4px 4px 12px rgba(238, 173, 11, 0.25)); }  /* Back to Start */
}

.hero-image-layer {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    max-height: 550px;
    display: block;
    transform: translateY(30px) translateX(30px);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 1));
    animation: heroImageFadeIn 0.8s ease-out both;
}

@keyframes heroImageFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(30px) translateX(30px);
    }
}

@keyframes hexFadeSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Games Section (Text + Image) */
.block-text-image {
    padding: 100px 0;
    position: relative;
    background-color: var(--color-light-grey);
}

/* Block Text-Image Alignment */
.block-text-image.image-left .dev-card {
    flex-direction: row-reverse;
}
.block-text-image.image-left .dev-content {
    margin-left: -100px;
}

.block-text-image.image-right .dev-card {
    flex-direction: row;
}
.block-text-image.image-right .dev-content {
    margin-right: -100px;
}

.dev-card {
    display: flex;
    flex-wrap: nowrap;
    overflow: visible;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
    border: none;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    justify-content: center;
}

.dev-content {
    padding: 80px;
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
    box-shadow: 0 0px 25px rgb(0 0 0 / 25%);
    align-self: center;
}

.dev-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0 0 10px;
    color: var(--color-charcoal);
    line-height: 1.1;
    text-transform: uppercase;
}

.dev-content p {
    font-size: inherit;
    color: var(--color-charcoal);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-decoration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-bottom: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
    opacity: 0.5;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-yellow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dev-image {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    align-self: stretch;
}

.dev-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(238, 173, 11, 0.1), transparent);
    pointer-events: none;
}

@media (max-width: 991px) {
    .dev-card,
    .block-text-image .dev-card {
        flex-direction: column !important;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .dev-image {
        flex: 0 0 auto;
        width: 100%;
        min-height: 300px;
    }

    .dev-content,
    .block-text-image .dev-card .dev-content {
        flex: 0 0 auto;
        width: 90%;
        margin: -50px auto 0;
        transform: none;
        padding: 40px;
    }
}

/* Workbench Section */
.workbench-section {
    padding: 100px 0 200px;
    background-color: var(--color-darker-bg);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    height: 4px;
    background-color: var(--color-yellow);
}

.workbench-section .section-title {
    margin-bottom: 30px;
}



.workbench-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.workbench-item {
    background-color: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.workbench-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.blog .workbench-content,
.archive .workbench-content {
    background-color: var(--color-white) !important;
    opacity: 1 !important;
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog .workbench-item h3,
.archive .workbench-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-black);
}

.blog .workbench-item .meta-date,
.archive .workbench-item .meta-date {
    margin-top: auto;
    color: var(--color-charcoal);
}


.home .workbench-content {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 25px; /* Ensure padding matches other views */
}

.home .workbench-item h3 {
    color: var(--color-black);
}

.home .workbench-excerpt {
    color: var(--color-black);
}

.home .workbench-item .meta-date {
    color: var(--color-charcoal);
}

/* Single Blog Page */
body.single {
    background-image: none;
    background-color: var(--color-charcoal);
}

/* Blog Archive & Home Background */
body.blog,
body.archive {
    background-color: var(--color-yellow) !important;
    background-image: none !important;
}

body.blog .hero-content,
body.archive .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    flex: none;
}

.single-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,17,17,0.3), var(--color-dark-bg));
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.single-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.entry-categories {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.meta-date {
    font-weight: 700;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-share {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.share-icons {
    display: flex;
    gap: 15px;
}

.share-icons a {
    color: var(--color-grey);
    transition: color 0.3s;
}

.share-icons a:hover {
    color: var(--color-yellow);
}

.entry-content {
    max-width: 900px;
    margin: 0 auto 80px;
    font-size: inherit;
    line-height: 1.8;
    color: var(--color-light-grey);
}

.entry-content p {
    margin-bottom: 30px;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-top: 60px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.entry-content h2 { font-size: 2.5rem; }
.entry-content h3 { font-size: 2rem; }
.entry-content h4 { font-size: 1.5rem; }

.entry-content blockquote {
    border-left: 4px solid var(--color-yellow);
    margin: 40px 0;
    padding: 20px 40px;
    font-size: 1.4rem;
    font-style: italic;
    background-color: rgba(255,255,255,0.02);
    color: var(--color-white);
}

.related-posts-section {
    padding: 60px 0;
    margin-top: 60px;
    position: relative;
    background-color: var(--color-light-grey);
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23cccccc' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 60px auto;
}

.related-title {
    margin-bottom: 30px; /* Further decreased margin */
    color: var(--color-charcoal);
}

/* Override workbench item styles for this light section */
.related-posts-section .workbench-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-posts-section .workbench-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.related-posts-section .workbench-content {
    background-color: var(--color-charcoal);
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure vertical alignment of content */
}

.related-posts-section .workbench-item h3 {
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 15px;
}

.related-posts-section .workbench-item .meta-date {
    color: var(--color-grey);
    margin-top: auto;
}

.workbench-item .workbench-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.workbench-item h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 0 0 15px;
    color: var(--color-white);
    line-height: 1.3;
}

.workbench-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.workbench-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    text-transform: uppercase;
    z-index: 2;
    width: auto;
    height: auto;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    border-radius: 0;
}

.workbench-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}



.workbench-excerpt {
    margin-bottom: 20px;
    color: var(--color-charcoal);
    font-size: 1rem;
}

.workbench-item .meta-date {
    font-size: 22px;
}

.meta-date {
    font-size: 22px;
    color: var(--color-grey);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.meta-date::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-yellow);
    margin-right: 10px;
    transform: rotate(45deg);
}

/* Newsletter CTA */
.newsletter-cta {
    background-color: var(--color-orange);
    padding: 100px 0;
    color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px auto;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

@media (max-width: 991px) {
    .newsletter-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .newsletter-content, .newsletter-form {
        width: 100%;
    }
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0 0 15px;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.1;
}

.newsletter-content p {
    font-size: 1.2rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.newsletter-form {
    flex: 1;
    width: 100%;
}

.newsletter-form form {
    display: flex;
    gap: 0;
    width: 100%;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 20px 25px;
    border: none;
    background-color: var(--color-white);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px 0 0 4px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-charcoal);
}

.newsletter-form .btn-subscribe {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    padding: 20px 40px;
    font-weight: 800;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    letter-spacing: 1px;
    display: inline-block; /* Ensure it behaves like a button */
}

.newsletter-form .btn-subscribe:hover {
    background-color: var(--color-black);
    color: var(--color-yellow);
    box-shadow: none; /* Reset header button shadow if inherited */
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    padding: 60px 0;
    color: var(--color-grey);
    font-size: 0.9rem;
    position: relative;
    border-top: 1px solid var(--color-border);
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 150px;
    height: 80px;
    background-color: var(--color-yellow);
    opacity: 0.05;
    pointer-events: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-branding .logo-link {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block;
    margin-bottom: 10px;
}

.footer-branding .logo-link:hover {
    opacity: 1;
}

.footer-socials {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.social-link {
    color: var(--color-grey);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-link:hover {
    color: var(--color-black);
    background-color: var(--color-yellow);
    transform: translateY(-3px);
}

.footer-right {
    text-align: right;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0 0 20px;
    padding: 0;
    justify-content: flex-end;
}

.footer-navigation a {
    color: var(--color-grey);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-navigation a:hover {
    color: var(--color-yellow);
}

.copyright {
    opacity: 0.5;
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-branding {
        margin: 0 auto 20px;
        width: 50%;
    }

    @media (max-width: 576px) {
        .footer-branding {
            width: 100%;
        }
    }

    .site-logo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .footer-socials {
        justify-content: center;
        margin-bottom: 30px;
    }

    .footer-right {
        text-align: center;
        width: 100%;
    }

    .footer-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid var(--color-border);
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}

.pagination .page-numbers:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

.pagination .page-numbers.dots {
    background-color: transparent;
    border: none;
    cursor: default;
}
/* Standard Content Block Styles */
.block-content {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.block-content::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(238, 173, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.block-content.bg-light {
    background-color: var(--color-yellow);
    background-image: url('image/bg-hex.png');
    background-repeat: no-repeat;
    background-position: left center;
    color: var(--color-charcoal);
}

.block-content.bg-light .wysiwyg-content {
    background-color: var(--color-white);
    padding: 60px 80px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 4px;
}

@media (max-width: 991px) {
    .block-content.bg-light .wysiwyg-content {
        padding: 30px 40px;
    }
}

.block-content.bg-light h1,
.block-content.bg-light h2,
.block-content.bg-light h3,
.block-content.bg-light h4,
.block-content.bg-light h5,
.block-content.bg-light h6 {
    color: var(--color-charcoal);
}

.block-content.bg-dark {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.block-content.bg-dark h1,
.block-content.bg-dark h2,
.block-content.bg-dark h3,
.block-content.bg-dark h4,
.block-content.bg-dark h5,
.block-content.bg-dark h6 {
    color: var(--color-white);
}

.block-content h1,
.block-content h2,
.block-content h3,
.block-content h4,
.block-content h5,
.block-content h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
}

.block-content .wysiwyg-content {
    max-width: 800px;
    margin: 0 auto;
}

.block-content .wysiwyg-content p {
    margin-bottom: 20px;
    font-size: inherit;
    line-height: 1.6;
}

.block-content .wysiwyg-content a {
    color: var(--color-orange);
    transition: color 0.3s ease;
}

.block-content .wysiwyg-content a:hover {
    color: var(--color-yellow);
}

.block-content .content-cta {
    margin-top: 30px;
    text-align: center;
}

/* Accordion Block */
.block-accordion {
    padding: 6rem 0;
}

.block-accordion.bg-dark {
    background-color: transparent;
}

.block-accordion .accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block-accordion .accordion-item {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
    margin-bottom: 0; /* Reset since flex gap handles spacing */
}

.block-accordion .accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.block-accordion .accordion-item:hover {
    background: rgba(50, 50, 50, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.block-accordion .accordion-item.open {
    background: rgba(50, 50, 50, 0.6);
    border-color: rgba(238, 173, 11, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.block-accordion .accordion-item.open::before {
    opacity: 1;
}

.block-accordion .accordion-item.open .accordion-header h3 {
    color: var(--color-yellow);
}

.block-accordion .accordion-item.open .accordion-header .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-yellow);
}

/* Rotate the plus to form an X when open */
.block-accordion .accordion-item.open .accordion-header .accordion-icon .icon-plus {
    transform: rotate(45deg);
}

.block-accordion .accordion-item.open .accordion-content {
    opacity: 1;
    padding-bottom: 2rem;
}

.block-accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.block-accordion .accordion-header h3 {
    font-size: 1.5rem;
    margin: 0;
    transition: color 0.3s ease;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

.block-accordion .accordion-icon {
    width: 40px;
    height: 40px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: rgba(255, 255, 255, 0.5);
}

.block-accordion .accordion-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.block-accordion .accordion-icon .icon-plus {
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.block-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease;
    padding: 0 2rem;
}

.block-accordion .accordion-content .accordion-inner {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cards Block */
.block-cards {
    padding: 6rem 0;
}

.block-cards.bg-dark {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border-top: 2px solid var(--color-yellow);
    border-bottom: 4px solid var(--color-yellow);
}

.block-cards.bg-light {
    background-color: var(--color-light-grey);
    color: var(--color-charcoal);
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23cccccc' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 60px auto;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .info-card {
        flex: 0 0 calc(50% - 1rem); 
        max-width: calc(50% - 1rem);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .info-card {
        flex: 0 0 calc(33.333% - 1.34rem);
        max-width: calc(33.333% - 1.34rem);
    }
}

.info-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(119, 117, 109, 0.2);
    width: 100%; /* Default for mobile */
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-yellow);
}

/* Tech corners for the cards */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 2px solid var(--color-yellow);
    border-left: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
    opacity: 0;
}

.info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
    transition: width 0.3s ease, height 0.3s ease;
    opacity: 0;
}

.info-card:hover::before,
.info-card:hover::after {
    width: 20px;
    height: 20px;
    opacity: 1;
}

.card-icon {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* filter: brightness(0) invert(1);  Removed per user request */
}

.block-cards.bg-light .card-icon img {
    filter: none; /* Keep original color on light bg */
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-yellow);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card p {
    font-size: 22px;
    line-height: 1.6;
    margin: 0;
    color: var(--color-grey);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* Overrides for Cards on Light Background */
.block-cards.bg-light .info-card {
    background-color: var(--color-charcoal);
    border-color: rgba(33, 32, 29, 0.1); /* Subtle border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.block-cards.bg-light .info-card h3 {
    color: var(--color-yellow); /* Keep yellow or switch to white if preferred, but yellow pops on charcoal */
}

.block-cards.bg-light .info-card p {
    color: var(--color-light-grey); /* Light text on dark card */
}

    /* filter: brightness(0) invert(1); Removed per user request */

.block-cards.bg-light .info-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: var(--color-yellow);
}

/* Overrides for Cards on Dark Background */
.block-cards.bg-dark .info-card {
    background-color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.block-cards.bg-dark .info-card h3 {
    color: var(--color-orange); /* Orange or Charcoal for contrast on white */
}

.block-cards.bg-dark .info-card p {
    color: var(--color-charcoal); /* Dark text on light card */
}

.block-cards.bg-dark .card-icon img {
    filter: none; /* Original icon color (assuming black/dark) or specific filter if needed */
}

/* If icons are white by default, we need to invert them to be dark */
    /* filter: brightness(0); Removed per user request */

.block-cards.bg-dark .info-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: var(--color-yellow);
}

/* Masonry Gallery Block */
.block-masonry {
    padding: 0;
    overflow: hidden;
}

.masonry-grid-layout {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Stacked */
    gap: 0; /* No gaps */
    width: 100%;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 300px; /* Mobile height */
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .masonry-grid-layout {
        grid-template-columns: 1fr 1fr;
        /* 
           Row 1: Main Image (Full width)
           Row 2: 2 images
           Row 3: 2 images
        */
    }

    .masonry-item.item-1 {
        grid-column: 1 / -1; /* Full width */
        aspect-ratio: 16/9;
    }

    .masonry-item:not(.item-1) {
        aspect-ratio: 1; /* Square for grid items */
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .masonry-grid-layout {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 20vw); /* Reduced height from 25vw */
    }

    .masonry-item.item-1 {
        grid-column: 1 / 3; /* First 2 columns */
        grid-row: 1 / 3;    /* First 2 rows */
        height: 100%;
        min-height: auto;
    }

    /* Items 2, 3, 4, 5 flow naturally into the remaining 2x2 grid on the right */
    .masonry-item:not(.item-1) {
        height: 100%;
        min-height: auto;
    }
}

/* Lightbox Styles */
.lightbox-trigger {
    cursor: pointer;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 2px solid var(--color-charcoal);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--color-yellow);
}

/* Testimonial Slider Block */
.block-testimonials {
    padding: 8rem 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: var(--color-white);
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 32, 29, 0.65); /* Dark overlay */
    z-index: 1;
}

.block-testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonial-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px; /* Space for pagination */
}

.testimonial-item {
    text-align: center;
    padding: 0 2rem;
}

.entry-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 5px;
    color: var(--color-white);
}

.entry-content h3 + p {
    margin-top: 5px;
}
.testimonial-item blockquote {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1.6;
    margin: 0 auto 30px;
    color: var(--color-white);
    text-transform: none;
    font-style: normal;
    text-align: center;
    max-width: 900px;
    letter-spacing: normal;
}

.testimonial-author {
    text-align: center;
}

.testimonial-author cite {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: normal;
    display: block;
    color: var(--color-white);
    margin-bottom: 5px;
    font-weight: 400;
}

.testimonial-role {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-yellow);
    letter-spacing: 1px;
}

/* Swiper Navigation Customization */
.swiper-button-prev,
.swiper-button-next {
    color: var(--color-yellow) !important; /* Force yellow */
    transition: transform 0.3s ease;
    width: 30px; /* Smaller touch target */
    height: 30px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.5rem !important; /* Smaller icon size */
    font-weight: 900 !important; /* Boldest weight */
    -webkit-text-stroke: 2px var(--color-yellow); /* Make it thicker */
}

.swiper-button-prev:hover {
    transform: translateX(-5px);
}

.swiper-button-next:hover {
    transform: translateX(5px);
}

.swiper-pagination-bullet {
    background: var(--color-grey);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-yellow);
    opacity: 1;
}

/* Glassmorphism & Visual Polish */
.glass-panel {
    background: rgba(33, 32, 29, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Workbench Glass */
.workbench-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.blog .workbench-content, 
.archive .workbench-content {
    background: transparent;
}

.workbench-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(238, 173, 11, 0.3);
    box-shadow: 0 0 25px rgba(238, 173, 11, 0.1);
}

/* Hero Polish */
.hero-overlay {
    background: radial-gradient(circle at center, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0.95) 100%);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(238, 173, 11, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

/* Typography Tweaks */
.meta-date, .hero-meta, .status-indicator, .entry-categories {
    font-family: 'Space Mono', monospace; /* Fallback if not loaded, but adds intent */
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Smooth Fade Up Utility (If JS fails or for extra items) */
.fade-up-enter {
    opacity: 0;
    transform: translateY(30px);
}
.fade-up-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive Hexagon Background */
.hex-bg-animated {
    position: relative;
    background-color: var(--color-white);
}

.hex-animated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hex-glow {
    position: absolute;
    width: 56px;
    height: 64px;
    cursor: default;
}

.hex-glow path {
    fill: var(--color-white);
    stroke: #efefef;
    stroke-width: 1;
    transition: fill 0.5s ease;
}

/* Ripple Animation */
@keyframes ripple-fade {
    0% {
        fill: var(--color-white);
        stroke: #efefef;
        opacity: 1;
    }
    50% {
        fill: #efefef;
        stroke: var(--color-yellow);
        opacity: var(--ripple-opacity);
    }
    100% {
        fill: var(--color-white);
        stroke: #efefef;
        opacity: 1;
    }
}

.hex-glow.ripple-animate path {
    animation: ripple-fade 1.5s ease-in-out forwards;
}

/* Workbench Section Responsive */
@media (max-width: 991px) {
    .workbench-section {
        padding: 60px 0;
    }

    .workbench-section .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .workbench-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .workbench-img {
        height: 200px;
    }

    .workbench-content {
        padding: 20px;
    }

    .workbench-item h3 {
        font-size: inherit;
    }
}

@media (max-width: 576px) {
    .workbench-section {
        padding: 40px 0;
    }

    .workbench-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .workbench-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .workbench-img {
        height: 180px;
    }

    .workbench-content {
        padding: 15px;
    }

    .workbench-item h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .workbench-item .meta-date {
        font-size: 18px;
    }

    h1.page-dossier-title {
        font-size: 3rem;
    }
}

/* Hero Section Responsive */
@media (max-width: 991px) {
    .block-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: inherit;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-wrapper {
        align-items: center;
    }

    .btn-kickstarter {
        font-size: inherit;
        padding: 15px 30px;
    }

    .hero-visual {
        height: auto;
        width: 100%;
    }

    .hex-outline-wrapper {
        width: 100%;
        max-width: 500px;
        height: 500px;
        margin: 0 auto;
    }

    .hero-image-layer {
        max-height: 400px;
        transform: translateY(20px) translateX(20px);
    }

    .block-hero::before {
        width: 1000px;
        height: 1000px;
        top: -20%;
        left: -50%;
    }

    .block-hero::after {
        width: 500px;
        height: 500px;
        top: -30%;
        right: -30%;
    }
}

@media (max-width: 576px) {
    .block-hero {
        padding: 40px 0;
    }

    .hero-inner {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .btn-kickstarter {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .hex-outline-wrapper {
        max-width: 320px;
        height: 320px;
    }

    .hero-image-layer {
        max-height: 280px;
        transform: translateY(15px) translateX(15px);
    }

    .block-hero::before {
        width: 600px;
        height: 600px;
        top: -30%;
        left: -60%;
    }

    .block-hero::after {
        display: none;
    }
}

/* Manually added SCSS output for .block-text-image button */
.block-text-image .content-cta .btn,
.block-text-image .content-cta a.btn {
    color: #21201D !important;
}
.block-text-image .content-cta .btn::before,
.block-text-image .content-cta .btn::after,
.block-text-image .content-cta a.btn::before,
.block-text-image .content-cta a.btn::after {
    border-color: #21201D !important;
}
.block-text-image .content-cta .btn:hover,
.block-text-image .content-cta a.btn:hover {
    color: #21201D !important;
}

/* Single Post Hero */
.single-hero {
    position: relative;
    background-color: #111; /* Fallback */
    min-height: 600px; /* Taller as per image */
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    border-bottom: 2px solid var(--color-yellow);
}

/* Global Dossier Hero Styles (Migrated from page.php) */
.page-hero-wrapper {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    border-bottom: 2px solid var(--color-yellow);
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    filter: blur(7px) saturate(0.5);
    z-index: 1;
    transform: scale(1.1);
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0,0,0,0.2), #000);
}

.page-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 4rem 0;
}

.page-dossier-header {
    position: relative;
}

h1.page-dossier-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 0.9;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}

.page-dossier-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    background-color: var(--color-yellow);
    margin: 1rem 0 3rem 0;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.page-dossier-info {
    max-width: 60%;
    position: relative;
    z-index: 20;
    padding-right: 5rem;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out 0.2s forwards;
}

.page-dossier-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    z-index: 5;
    opacity: 0;
    animation: dossierShadowRotate 5s linear infinite, fadeInRight 0.6s ease-out 0.4s forwards;
}

.page-dossier-clip-mask {
    width: 100%;
    height: 100%;
    position: relative;
    clip-path: polygon(
        8rem 0, 
        100% 0, 
        100% 100%, 
        8rem 100%, 
        0 calc(100% - 8rem), 
        0 8rem
    );
}

.page-dossier-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    filter: brightness(0.8);
}

.page-hero-wrapper .page-dossier-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 8;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes dossierShadowRotate {
    0%, 100% { filter: drop-shadow(1px 0 0 rgba(255,255,255,0.5)) drop-shadow(4px 4px 12px rgba(238, 173, 11, 0.5)); }
    25% { filter: drop-shadow(1px 0 0 rgba(255,255,255,0.5)) drop-shadow(-4px 4px 12px rgba(238, 173, 11, 0.5)); }
    50% { filter: drop-shadow(1px 0 0 rgba(255,255,255,0.5)) drop-shadow(-4px -4px 12px rgba(238, 173, 11, 0.5)); }
    75% { filter: drop-shadow(1px 0 0 rgba(255,255,255,0.5)) drop-shadow(4px -4px 12px rgba(238, 173, 11, 0.5)); }
}

@media (max-width: 991px) {
    .page-hero-wrapper {
        flex-direction: column;
        padding-top: 80px;
        min-height: auto;
    }
    .page-dossier-visual {
        position: relative;
        width: 100%;
        height: 40vh;
        clip-path: none;
    }
    .page-dossier-info {
        max-width: 100%;
        padding: 2rem 1rem;
        text-align: center;
    }
    .page-dossier-visual {
        position: relative;
        width: 100%;
        height: 400px;
        opacity: 1;
        animation: none;
    }
}

/* Single Post Meta */
.meta-date {
    font-size: 22px;
    font-weight: 700;
}

/* Single Post Content Width */
.single .container {
    max-width: 1400px;
}

.single-meta,
.entry-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for Page Dossier Title Order Issue */
@media (max-width: 991px) {
    h1.page-dossier-title {
        font-size: 3rem;
    }

    .single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Fix h3 color in block-text-image */
.block-text-image .wysiwyg-content h3 {
    color: var(--color-charcoal) !important;
    font-weight: bold !important;
}

/* Fix mobile dropdown toggle */
.main-navigation .mobile-dropdown-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}



