/* ============================================
   Blocks Stylesheet - Minimal Styles
   Roar Marketing Theme
   ============================================ */

/* ============================================
   Block Container
   ============================================ */
.block {
    padding: var(--spacing-xxl) 0;
}

/* ============================================
   Background Colors
   ============================================ */
.bg-light {
    background-color: var(--color-light);
    color: var(--color-text);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: var(--color-white);
}

/* ============================================
   Consecutive Same-Background Blocks
   Remove top padding when blocks share the same background
   Exclude blocks following hero/image-title/image blocks
   ============================================ */
.bg-light + .bg-light,
.bg-dark + .bg-dark {
    padding-top: 0;
}

/* Always keep padding after hero, image-title, and image blocks */
.block-home-hero + .block,
.block-image-title + .block,
.block-image + .block {
    padding-top: var(--spacing-xxl);
}

/* Exception for logo slider - keep its own padding */
.block-home-hero + .block-logo-slider,
.block-image-title + .block-logo-slider,
.block-image + .block-logo-slider {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

/* ============================================
   Home Hero Block
   ============================================ */
.block-home-hero {
    height: 100vh;
    padding: 0;
    background-color: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Video Hero with Mask Effect */
.block-home-hero.has-video {
    height: 300vh; /* Extended container - content flows after this */
    position: relative;
}

/* Sticky wrapper - doesn't affect fixed children but provides structure */
.hero-sticky-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Full-screen background video - FIXED to viewport */
.hero-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.hero-video-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* Solid overlay with SVG mask cutout - FIXED to viewport */
.hero-solid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-dark);
    z-index: 2;
    pointer-events: none;
    
    /* Create an inverted mask: solid overlay with SVG-shaped hole */
    /* First create a full white rectangle, then subtract the SVG */
    mask-image: 
        linear-gradient(#fff 0 0),
        var(--mask-svg);
    mask-composite: exclude;
    mask-repeat: no-repeat, no-repeat;
    mask-position: center center;
    
    /* Webkit fallback */
    -webkit-mask-image: 
        linear-gradient(#fff 0 0),
        var(--mask-svg);
    -webkit-mask-composite: source-out;
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-position: center center;
    
    /* Mask starts bigger and grows faster */
    --mask-size: 80vw;
    mask-size: cover, var(--mask-size);
    -webkit-mask-size: cover, var(--mask-size);
}

/* Scroll indicator - FIXED to viewport */
.hero-scroll-indicator {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.5;
    transition: opacity 0.3s ease-out;
}

.hero-caret {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
}

/* Mobile logo - hidden on desktop, shown on mobile */
.hero-mobile-logo {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 70%;
    max-width: 300px;
}

.hero-mobile-logo img {
    width: 100%;
    height: auto;
}

.block-home-hero.has-video .hero-arrow {
    display: none;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(1.2) contrast(1.1);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2) contrast(1.1);
    z-index: 1;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark);
    opacity: 0.85;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    font-size: 30vw;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    margin: 0;
    margin-top: -10vw;
    padding: 0;
    line-height: 0.9;
    text-align: center;
    color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Desktop: use background-clip */
@media (min-width: 769px) {
    .hero-text {
        background: url('') center/cover fixed;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
}

.block-home-hero .sticky-div {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.w-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.content-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.9);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.zoom {
    width: 60vw;
    text-align: center;
    mix-blend-mode: lighten;
    transform-origin: center center;
    will-change: transform;
}

.zoom .svg {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(2) contrast(1.2);
}

/* Mobile: simple white text */
@media (max-width: 768px) {
    .hero-text {
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: var(--color-white) !important;
        -webkit-text-fill-color: var(--color-white) !important;
    }
    
    .hero-overlay {
        opacity: 0.4;
    }
}

.hero-tagline {
    position: relative;
    z-index: 3;
    color: var(--color-white);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.2;
    padding-top: 2rem;

    span {
        color: var(--color-primary);
    }
}

.hero-arrow {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--color-white);
    font-size: 3rem;
    animation: bounce 2s infinite;
    width: 30px;
    height: 30px;
    border-right: 4px solid var(--color-white);
    border-bottom: 4px solid var(--color-white);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-20px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-10px) rotate(45deg);
    }
}

/* ============================================
   Image Title Block
   ============================================ */
.block-image-title {
    min-height: 400px;
    height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.block-image-title .image-title-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.block-image-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.block-image-title .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.block-image-title h2 {
    color: var(--color-white);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
}

.block-image-title .subtitle {
    color: var(--color-white);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.6;
    margin-top: var(--spacing-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Quote Block
   ============================================ */
.block-quote {
    padding: var(--spacing-xxl) 0;
}

.block-quote.bg-light {
    background-color: var(--color-light);
}

.block-quote.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.block-quote blockquote {
    margin: 0 0 var(--spacing-lg) 0;
}

.block-quote blockquote p {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}

/* Quote Size Variants */
.block-quote.quote-size-large blockquote p {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
}

.block-quote.quote-size-medium blockquote p {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.block-quote.quote-size-small blockquote p {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.quote-author {
    margin-top: var(--spacing-md);
}

.author-name {
    font-weight: 700;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 0;
}

.author-title {
    opacity: 0.7;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0;
}

/* ============================================
   Team Block
   ============================================ */
.block-team .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.team-grid {
    display: grid;
    gap: var(--spacing-lg);
}

/* Three column grid (default for 5+ members) */
.team-grid-three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Four column grid (for exactly 4 members - portrait style) */
.team-grid-four-col {
    grid-template-columns: repeat(4, 1fr);
}

/* Two column grid (for 3 or fewer members) */
.team-grid-two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.team-member {
    display: flex;
    flex-direction: column;
}

.member-photo {
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.member-photo.has-bio {
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.member-photo.has-bio:hover {
    transform: scale(1.02);
}

.member-photo.has-bio:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.member-photo:hover::before {
    opacity: 1;
}

.member-photo.has-bio::after {
    content: 'View Bio';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: var(--color-white);
    padding: 3rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.member-photo.has-bio:hover::after {
    opacity: 1;
}

.member-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* Shorter aspect ratio for 2-column grid */
.team-grid-two-col .member-photo img {
    aspect-ratio: 4 / 3;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-name {
    font-weight: 700;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 0;
    text-align: left;
}

.member-title {
    opacity: 0.7;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-align: left;
    margin-bottom: 0;
}

/* Bio Modal */
.bio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.bio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.bio-modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bio-modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 40px;
    height: 40px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-modal-close:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    transform: rotate(90deg);
}

.bio-modal-inner {
    display: grid;
    grid-template-columns: 350px 1fr;
    overflow-y: auto;
    max-height: 90vh;
}

.bio-modal-image {
    overflow: hidden;
}

.bio-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 100%;
}

.bio-modal-text {
    padding: var(--spacing-lg);
}

.bio-modal-text h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.bio-modal-title {
    font-size: 1.125rem;
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
}

.bio-modal-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    white-space: pre-wrap;
}

/* ============================================
   Two Column Text Block
   ============================================ */
.two-column-grid {
    display: grid;
    gap: var(--spacing-xl);
    align-items: start;
}

.layout-50-50 .two-column-grid {
    grid-template-columns: 1fr 1fr;
}

.layout-33-66 .two-column-grid {
    grid-template-columns: 1fr 2fr;
}

.layout-66-33 .two-column-grid {
    grid-template-columns: 2fr 1fr;
}

/* ============================================
   Image Block
   ============================================ */
.block-image {
    position: relative;
}

.block-image .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.block-image.full-width .image-wrapper {
    border-radius: 0;
}

.block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Aspect Ratio Variants */
.block-image.aspect-16-9 .image-wrapper {
    aspect-ratio: 16 / 9;
}

.block-image.aspect-4-3 .image-wrapper {
    aspect-ratio: 4 / 3;
}

.block-image.aspect-3-2 .image-wrapper {
    aspect-ratio: 3 / 2;
}

.block-image.aspect-1-1 .image-wrapper {
    aspect-ratio: 1 / 1;
}

.block-image.aspect-21-9 .image-wrapper {
    aspect-ratio: 21 / 9;
}

.block-image[class*="aspect-"] img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-image.full-width {
    padding: 0;
}

/* Dark Overlay */
.block-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* Text Overlay Container */
.block-image .image-text-overlay {
    position: absolute;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1100px;
    z-index: 2;
}

/* Position Variants */
.block-image .image-text-overlay.text-top-left {
    top: 0;
    left: 0;
}

.block-image .image-text-overlay.text-top-right {
    top: 0;
    right: 0;
    text-align: right;
}

.block-image .image-text-overlay.text-bottom-left {
    bottom: 0;
    left: 0;
}

.block-image .image-text-overlay.text-bottom-right {
    bottom: 0;
    right: 0;
    text-align: right;
}

/* Text Styles - Bold Feature Heading */
.block-image .image-heading-1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0;
    line-height: 0.95;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.block-image .image-heading-2 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.block-image .image-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.4;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    max-width: 900px;
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    font-weight: 400;
}

/* Ensure min-height when text overlay is active */
.block-image.has-text .image-wrapper {
    min-height: 450px;
    position: relative;
}

.block-image.has-text .image-wrapper > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.block-image.has-text[class*="aspect-"] .image-wrapper {
    min-height: auto;
}

/* ============================================
   Services Block
   ============================================ */
.block-services {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0 calc(var(--spacing-xxl) + 2rem) 0;
}

.block-services .section-title {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.service-item {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: left;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    text-decoration: none;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item > * {
    position: relative;
    z-index: 1;
}

.service-item:hover,
.service-item:active,
.service-item.active {
    background-color: var(--color-primary);
}

.service-item.primary-bg {
    background-color: var(--color-primary);
}

.service-icon {
    margin-bottom: 1rem;
    background-color: var(--color-dark);
    width: 72px;
    height: 72px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item.primary-bg .service-icon {
    background-color: var(--color-dark);
}

.service-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.service-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark) !important;
}

.service-description {
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-dark) !important;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .block-services {
        padding: var(--spacing-xl) 0;
    }
}

/* ============================================
   Feature Boxes Block
   ============================================ */
.block-feature-boxes {
    background-color: var(--color-light);
    padding: var(--spacing-xxl) 0;
}

.feature-boxes-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-top: -1rem;
}

.block-feature-boxes .section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.block-feature-boxes .section-subtitle {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.feature-boxes-grid {
    display: grid;
    gap: var(--spacing-md);
}

.feature-boxes-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-boxes-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.feature-boxes-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-box {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box > * {
    position: relative;
    z-index: 1;
}

.feature-box-icon {
    margin-bottom: 1rem;
    background-color: var(--color-primary);
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-box-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(10%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.feature-box-title {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

.feature-box-description {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-white);
}

@media (max-width: 1400px) {
    .feature-boxes-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .feature-boxes-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-boxes-grid-2,
    .feature-boxes-grid-3,
    .feature-boxes-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .block-feature-boxes {
        padding: var(--spacing-xl) 0;
    }
}

/* Feature Boxes Inverted Variant */
.block-feature-boxes.feature-boxes-inverted {
    background-color: var(--color-dark);
}

.block-feature-boxes.feature-boxes-inverted .section-title,
.block-feature-boxes.feature-boxes-inverted .section-subtitle {
    color: var(--color-white);
}

.block-feature-boxes.feature-boxes-inverted .feature-box {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.block-feature-boxes.feature-boxes-inverted .feature-box::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.05) 0%, transparent 70%);
}

.block-feature-boxes.feature-boxes-inverted .feature-box-title {
    color: var(--color-dark);
}

.block-feature-boxes.feature-boxes-inverted .feature-box-description {
    color: var(--color-dark);
}

.block-feature-boxes.feature-boxes-inverted .feature-box-icon {
    background-color: var(--color-dark);
}

.block-feature-boxes.feature-boxes-inverted .feature-box-icon img {
    filter: none;
}

/* ============================================
   Feature Text Block
   ============================================ */
.block-feature-text {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.block-feature-text.bg-light {
    background-color: var(--color-light);
}

.block-feature-text.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.block-feature-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    max-width: 1300px; 
    margin-left: auto; 
    margin-right: auto;
}

.block-feature-text .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.block-feature-text .subtitle span {
    color: var(--color-primary);
}

.block-feature-text .button {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.block-feature-text .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.block-feature-text.bg-dark .button {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Compact Mode */
.block-feature-text.compact {
    padding: var(--spacing-xxl) 0;
}

.block-feature-text.compact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.block-feature-text.compact .subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Full Width Text Block
   ============================================ */
.block-full-width-text {
    padding: var(--spacing-xxl) 0;
}

.block-full-width-text.bg-light {
    background-color: var(--color-light);
}

.block-full-width-text.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.block-full-width-text .full-width-content {
    max-width: 1200px;
    margin: 0 auto;
}

.block-full-width-text .full-width-content h1,
.block-full-width-text .full-width-content h2,
.block-full-width-text .full-width-content h3,
.block-full-width-text .full-width-content h4,
.block-full-width-text .full-width-content h5,
.block-full-width-text .full-width-content h6 {
    margin-bottom: var(--spacing-md);
}

.block-full-width-text .full-width-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.block-full-width-text .full-width-content ul,
.block-full-width-text .full-width-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.block-full-width-text .full-width-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.block-full-width-text .full-width-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.block-full-width-text.bg-dark .full-width-content a {
    color: var(--color-primary);
}

/* ============================================
   Text & Image Block
   ============================================ */
.block-text-image .text-image-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    min-height: 600px;
}

.block-text-image .text-content {
    line-height: 1.8;
}

.block-text-image .image-content {
    position: relative;
    height: 100%;
    min-height: 600px;
}

.block-text-image .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aspect Ratio Options */
.block-text-image.aspect-natural .image-content {
    min-height: auto;
    height: auto;
}

.block-text-image.aspect-natural .image-content img {
    height: auto;
    object-fit: contain;
}

.block-text-image.aspect-16-9 .image-content img {
    aspect-ratio: 16 / 9;
}

.block-text-image.aspect-4-3 .image-content img {
    aspect-ratio: 4 / 3;
}

.block-text-image.aspect-1-1 .image-content img {
    aspect-ratio: 1 / 1;
}

.block-text-image.aspect-3-4 .image-content img {
    aspect-ratio: 3 / 4;
}

/* Image Left - extends to left edge */
.block-text-image.image-left .image-content {
    order: 1;
    margin-left: calc((100vw - 100%) / -2);
}

.block-text-image.image-left .text-content {
    order: 2;
}

/* Image Right - extends to right edge */
.block-text-image.image-right .image-content {
    order: 2;
    margin-right: calc((100vw - 100%) / -2);
}

.block-text-image.image-right .text-content {
    order: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .team-grid-three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid-four-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid-two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .block {
        padding: var(--spacing-xl) 0;
    }
    
    .block-home-hero {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
    }

    /* Mobile hero - simple fullscreen video with logo overlay */
    .block-home-hero.has-video {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-sticky-wrapper {
        position: relative;
        width: 100%;
        height: 100vh;
    }

    /* Show video on mobile but make it relative/contained */
    .hero-background-video {
        position: absolute;
        display: block;
    }

    .hero-video-fallback {
        position: absolute;
        opacity: 0;
    }

    /* Remove mask, show simple dark overlay */
    .hero-solid-overlay {
        position: absolute;
        background: rgba(20, 20, 20, 0.5);
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Show white logo on mobile */
    .hero-mobile-logo {
        display: block;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-image {
        background-attachment: scroll;
        background-size: cover;
        filter: none;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .hero-text {
        font-size: 35vw;
        margin-top: 0;
    }
    
    .block-image-title {
        min-height: 30vh;
    }
    
    .block-quote {
        padding: var(--spacing-xl) 0;
    }
    
    .team-grid-three-col,
    .team-grid-four-col,
    .team-grid-two-col {
        grid-template-columns: 1fr;
    }

    /* Shorter profile images on mobile stacked view */
    .team-grid .member-photo img {
        aspect-ratio: 4 / 3;
    }

    .bio-modal {
        padding: var(--spacing-sm);
    }

    .bio-modal-content {
        max-height: 85vh;
    }

    .bio-modal-inner {
        grid-template-columns: 1fr;
        max-height: 85vh;
    }

    .bio-modal-image {
        max-height: 300px;
    }

    .bio-modal-image img {
        max-height: 300px;
        object-fit: cover;
    }

    .bio-modal-text {
        padding: var(--spacing-md);
    }

    .bio-modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .two-column-grid {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .block-text-image .text-image-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .block-text-image .image-content {
        min-height: 300px;
        margin-left: calc(-1 * var(--container-padding)) !important;
        margin-right: calc(-1 * var(--container-padding)) !important;
        width: 100vw;
    }

    .block-text-image.image-right .image-content,
    .block-text-image.image-left .image-content {
        order: 1;
    }

    .block-text-image.image-right .text-content,
    .block-text-image.image-left .text-content {
        order: 2;
    }
    
    /* Disable parallax on mobile - use static cover image */
    /* Image block text overlay mobile */
    .block-image .image-text-overlay {
        padding: var(--spacing-md);
        max-width: 100%;
    }

    .block-image .image-heading-1 {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }

    .block-image .image-heading-2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .block-image .image-subtitle {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        max-width: 100%;
        line-height: 1.5;
    }

    /* Mobile: Image covers entire block */
    .block-image.has-text .image-wrapper {
        position: relative;
        min-height: 500px;
    }

    .block-image.has-text .image-wrapper > img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Ensure overlay covers image */
    .block-image.has-text .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    .block-image.has-text .image-text-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        padding: var(--spacing-md);
    }

    /* Top positions */
    .block-image.has-text .image-text-overlay.text-top-left,
    .block-image.has-text .image-text-overlay.text-top-right {
        top: 0;
        bottom: auto;
    }

    /* Aspect ratios on mobile */
    .block-image.has-text.aspect-16-9 .image-wrapper,
    .block-image.has-text.aspect-21-9 .image-wrapper {
        aspect-ratio: auto;
        min-height: 450px;
    }
}

/* ============================================
   Posts Block
   ============================================ */
.block-posts .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
}

/* Category Filter */
.posts-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid var(--color-dark);
    background-color: transparent;
    color: var(--color-dark);
}

.filter-btn:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.filter-btn.active {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* Post Card */
.post-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-light);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-light) 0%, #e5e5e5 100%);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.post-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background-color: var(--color-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-card-category:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-card-title a {
    color: var(--color-dark);
    text-decoration: none;
}

.post-card-title a:hover {
    text-decoration: underline;
}

.post-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
    flex-grow: 1;
}

.post-card-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card-read-more::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.post-card-read-more:hover::after {
    transform: translateX(4px);
}

.post-card-read-more:hover {
    text-decoration: none;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-card-author .author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.6;
}

/* Pagination */
.posts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.posts-pagination a,
.posts-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.posts-pagination a.page-numbers {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.posts-pagination a.page-numbers:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.posts-pagination span.page-numbers.current {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.posts-pagination span.page-numbers.dots {
    border: none;
    min-width: auto;
    padding: 0;
}

.posts-pagination a.prev,
.posts-pagination a.next {
    gap: 0;
    padding: 0;
    background-color: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-dark);
    min-width: 44px;
    width: 44px;
}

.posts-pagination a.prev:hover,
.posts-pagination a.next:hover {
    background-color: var(--color-dark);
    color: var(--color-primary);
    border-color: var(--color-dark);
}

.posts-pagination a.prev .pagination-text,
.posts-pagination a.next .pagination-text {
    display: none;
}

.pagination-arrow {
    font-size: 1rem;
}

/* Empty State */
.posts-empty {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-light);
    border-radius: 16px;
}

.posts-empty p {
    font-size: 1.125rem;
    opacity: 0.7;
    margin: 0;
}

/* Posts Loading State */
.block-posts {
    position: relative;
}

.posts-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

.block-posts.is-loading .posts-loading {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.posts-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200, #e5e7eb);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: posts-spin 0.8s linear infinite;
}

@keyframes posts-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Posts Block Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .post-card-title {
        font-size: 1.125rem;
    }

    .posts-pagination a.prev .pagination-text,
    .posts-pagination a.next .pagination-text {
        display: none;
    }

    .posts-pagination a.prev,
    .posts-pagination a.next {
        min-width: 44px;
        padding: 0;
    }
}

/* ============================================
   Single Post Template
   ============================================ */

/* Hero Banner */
.single-post-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-xxl) 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
    margin-top: -80px;
    padding-top: calc(var(--spacing-xxl) + 80px);
}

.single-post-hero.no-image {
    min-height: 50vh;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
}

.single-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.single-post-hero .container {
    position: relative;
    z-index: 2;
}

.single-post-hero-content {
    max-width: 900px;
}

.single-post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-dark);
    background-color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.single-post-category:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.single-post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.single-post-author-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.single-post-author-mini img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.single-post-author-mini .author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1;
}

.single-post-author-mini .author-name {
    font-weight: 600;
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1;
}

.single-post-author-mini time {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* Post Body */
.single-post-body {
    padding: var(--spacing-xl) 0 var(--spacing-xxl);
    background-color: var(--color-light);
}

.single-post-layout {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--spacing-lg);
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

/* Share Sidebar (Desktop) */
.single-post-share-sidebar {
    position: sticky;
    top: 160px;
}

.share-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.share-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.5;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-dark);
    background-color: transparent;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.share-btn.share-native:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.share-btn.copied {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

/* Post Content */
.single-post-content {
    min-width: 0;
}

.post-content.prose {
    font-size: 1.075rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content.prose > * + * {
    margin-top: 1.5em;
}

.post-content.prose h2 {
    font-size: 1.85rem;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.post-content.prose h3 {
    font-size: 1.45rem;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}

.post-content.prose h4 {
    font-size: 1.2rem;
    margin-top: 1.25em;
    margin-bottom: 0.4em;
}

.post-content.prose p {
    margin-bottom: 1.5em;
}

.post-content.prose img {
    border-radius: 12px;
    margin: 2em 0;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + (var(--spacing-md) * 2));
    max-width: none;
}

/* WordPress Classic Editor Caption Styles */
.post-content.prose .wp-caption {
    margin: 2em 0;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + (var(--spacing-md) * 2)) !important;
    max-width: none;
    background: transparent;
}

.post-content.prose .wp-caption img {
    margin: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px 12px 0 0;
}

.post-content.prose .wp-caption-text {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.6rem var(--spacing-md);
    font-size: 0.8rem;
    font-style: normal;
    text-align: center;
    margin: 0;
    border-radius: 0 0 12px 12px;
}

/* Figure/Figcaption styles (Gutenberg/modern) */
.post-content.prose figure {
    margin: 2em 0;
    margin-left: calc(-1 * var(--spacing-lg));
    margin-right: calc(-1 * var(--spacing-lg));
    width: calc(100% + (var(--spacing-lg) * 2));
    max-width: none;
}

.post-content.prose figure img {
    margin: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px 12px 0 0;
}

.post-content.prose figcaption {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.6rem var(--spacing-md);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
    border-radius: 0 0 12px 12px;
}

.post-content.prose figure img:only-child,
.post-content.prose .wp-caption img:only-child {
    border-radius: 12px;
}

/* WordPress Classic Editor Alignment Classes */
.post-content.prose .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
    max-width: 45%;
}

.post-content.prose .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
    max-width: 45%;
}

.post-content.prose .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.post-content.prose .alignleft img,
.post-content.prose .alignright img {
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
}

.post-content.prose img.alignleft,
.post-content.prose img.alignright {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    max-width: 45%;
}

.post-content.prose img.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.post-content.prose img.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.post-content.prose img.aligncenter {
    display: block;
    margin: 2em auto;
    width: auto;
    max-width: 100%;
}

/* Clear floats after aligned content */
.post-content.prose p::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .post-content.prose .alignleft,
    .post-content.prose .alignright,
    .post-content.prose img.alignleft,
    .post-content.prose img.alignright {
        float: none;
        display: block;
        margin: 1.5em auto;
        max-width: 100%;
    }
}

/* Two Column Shortcode for Blog Posts */
.post-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2em 0;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + (var(--spacing-md) * 2));
    max-width: none;
}

.post-two-columns.gap-sm {
    gap: var(--spacing-sm);
}

.post-two-columns.gap-md {
    gap: var(--spacing-md);
}

.post-two-columns.gap-lg {
    gap: var(--spacing-lg);
}

.post-column {
    min-width: 0; /* Prevent overflow */
    overflow: hidden;
}

.post-column p:first-child {
    margin-top: 0;
}

.post-column p:last-child {
    margin-bottom: 0;
}

/* Reset prose image styles inside columns */
.post-content.prose .post-two-columns img,
.post-content.prose .post-column img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 1em 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Handle wp-caption inside columns */
.post-content.prose .post-column .wp-caption {
    width: 100% !important;
    margin: 0 0 1em 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.post-content.prose .post-column .wp-caption img {
    margin-bottom: 0 !important;
    border-radius: 12px 12px 0 0;
}

.post-content.prose .post-column .wp-caption-text {
    margin: 0;
}

/* Handle figure/figcaption inside columns */
.post-content.prose .post-column figure {
    width: 100% !important;
    margin: 0 0 1em 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.post-content.prose .post-column figure img {
    margin-bottom: 0 !important;
    border-radius: 12px 12px 0 0;
}

.post-content.prose .post-column figure img:only-child {
    border-radius: 12px;
}

@media (max-width: 768px) {
    .post-two-columns {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .post-column-right {
        margin-top: var(--spacing-sm);
    }
}

.post-content.prose blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-md);
    margin: 2em 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-dark);
}

.post-content.prose a {
    color: var(--color-dark);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
}

.post-content.prose a:hover {
    background-color: var(--color-primary);
}

.post-content.prose ul,
.post-content.prose ol {
    padding-left: 1.5em;
    margin: 1.5em 0;
}

.post-content.prose li {
    margin-bottom: 0.5em;
}

.post-content.prose pre {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.post-content.prose code {
    background-color: rgba(0,0,0,0.08);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content.prose pre code {
    background: none;
    padding: 0;
}

/* Tags */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.post-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.7;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tag:hover {
    color: var(--color-dark);
    opacity: 1;
}

/* Mobile Share Bar */
.single-post-share-mobile {
    display: none;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: 12px;
    text-align: center;
}

.single-post-share-mobile .share-label {
    display: block;
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: var(--spacing-sm);
    font-size: 0.8rem;
}

.share-buttons-horizontal {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.share-buttons-horizontal .share-btn {
    width: auto;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    gap: 0.5rem;
}

.share-buttons-horizontal .share-btn span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Author Bio Box */
.author-bio-box {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.author-bio-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-content {
    flex: 1;
}

.author-bio-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.5;
}

.author-bio-name {
    font-size: 1.5rem;
    margin: 0.25rem 0 0.75rem;
}

.author-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Related Posts */
.related-posts {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-dark);
}

.related-posts-title {
    color: var(--color-white);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.related-post-card {
    background-color: var(--color-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.related-post-card:hover {
    transform: translateY(-4px);
}

.related-post-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: var(--spacing-md);
}

.related-post-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background-color: var(--color-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.related-post-title {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: var(--color-dark);
    text-decoration: none;
}

.related-post-title a:hover {
    text-decoration: underline;
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.6;
}

/* Single Post Responsive */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        min-height: 60vh;
        padding-bottom: var(--spacing-lg);
    }

    .single-post-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .single-post-share-sidebar {
        display: none;
    }

    .single-post-share-mobile {
        display: block;
    }

    .post-content.prose {
        font-size: 1rem;
    }

    /* Adjust full-width images for mobile container padding */
    .post-content.prose img,
    .post-content.prose .wp-caption {
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
        width: calc(100% + (var(--container-padding) * 2));
        max-width: calc(100% + (var(--container-padding) * 2));
    }

    .author-bio-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-bio-avatar img {
        width: 80px;
        height: 80px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-post-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        border-radius: 12px;
    }

    .related-post-image {
        aspect-ratio: 1;
        border-radius: 12px 0 0 12px;
    }

    .related-post-content {
        padding: var(--spacing-sm);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .related-post-category {
        width: fit-content;
    }

    .related-post-title {
        font-size: 1rem;
    }
}

/* ============================================
   Stats Carousel Block
   ============================================ */
.block-stats-carousel {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.block-stats-carousel .stats-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.block-stats-carousel .stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.block-stats-carousel .container {
    position: relative;
    z-index: 2;
}

.block-stats-carousel .stats-carousel-wrapper {
    position: relative;
    z-index: 2;
}

.block-stats-carousel .stats-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.block-stats-carousel .stats-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.block-stats-carousel .stats-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel Container */
.stats-carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.stats-carousel {
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.stats-carousel .swiper-wrapper {
    align-items: center;
}

/* Individual Stat Slide */
.stats-carousel .swiper-slide {
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0.3;
}

.stats-carousel .swiper-slide .stat-item {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: scale(0.7);
}

.stats-carousel .swiper-slide-active .stat-item {
    transform: scale(1.25);
}

.stats-carousel .swiper-slide-active {
    opacity: 1;
}

.stats-carousel .swiper-slide-prev .stat-item,
.stats-carousel .swiper-slide-next .stat-item {
    transform: scale(0.85);
}

.stats-carousel .swiper-slide-prev,
.stats-carousel .swiper-slide-next {
    opacity: 0.45;
}

/* Stat Item */
.stat-item {
    padding: var(--spacing-lg) var(--spacing-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.stat-value {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.stat-prefix,
.stat-suffix {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0.9;
}

.stat-prefix {
    margin-right: 0.1em;
}

.stat-suffix {
    margin-left: 0.1em;
}

.stat-label {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    letter-spacing: 0.02em;
    opacity: 0.7;
    margin: 0;
    font-weight: 500;
}

/* Swiper Pagination */
.stats-carousel .swiper-pagination {
    position: relative;
    margin-top: var(--spacing-md);
}

.stats-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-white);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.stats-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .block-stats-carousel {
        padding: var(--spacing-xl) 0;
    }

    .stats-carousel .swiper-slide {
        opacity: 0.3;
        transform: scale(0.7);
    }

    .stats-carousel .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }

    .stats-carousel .swiper-slide-prev,
    .stats-carousel .swiper-slide-next {
        opacity: 0.4;
        transform: scale(0.8);
    }

    .stat-value {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .stat-prefix,
    .stat-suffix {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

/* ============================================
   Logo Slider Block
   ============================================ */
.block-logo-slider {
    padding: var(--spacing-md) 0;
}

.block-logo-slider.bg-light {
    background-color: var(--color-light);
}

.block-logo-slider.bg-dark {
    background-color: var(--color-dark);
}

.logo-slider-wrapper {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.logo-slider-gradient {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-slider {
    overflow: hidden;
}

.logo-slider .swiper-slide {
    width: auto;
}

.logo-slider-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

.logo-slider-prev {
    margin-right: var(--spacing-md);
}

.logo-slider-next {
    margin-left: var(--spacing-md);
}

.logo-slider-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.logo-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.logo-slider-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.logo-slider-item img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 768px) {
    .block-logo-slider {
        padding: var(--spacing-sm) 0;
    }

    .logo-slider-wrapper {
        padding: 0 var(--spacing-sm);
    }

    .logo-slider-prev {
        margin-right: var(--spacing-sm);
    }

    .logo-slider-next {
        margin-left: var(--spacing-sm);
    }

    .logo-slider-nav {
        width: 36px;
        height: 36px;
    }

    .logo-slider-nav svg {
        width: 18px;
        height: 18px;
    }

    .logo-slider-item {
        height: 80px;
    }
}

