/* Page title: one line + center align on all pages */
.page-title-wrapper {
    text-align: center;
}
.page-title-wrapper .page-title {
    white-space: nowrap !important;
    display: inline-block;
    text-align: center;
}

/* Our-works: single-line main heading from 15" laptop and up (no "Sports &" / "Leisure" wrap) */
@media (min-width: 1366px) {
    body:has(.work-area-4) .page-title-wrapper .page-title {
        white-space: nowrap;
        font-size: min(20vw, 280px) !important;
    }
    body:has(.work-area-4) .work-area-4 .section-subtitle {
        white-space: nowrap;
    }
}

/* Section subtitle SVG wavy underline – ensure visible in our-works */
.work-area-4 .subtitle-wrapper .section-subtitle {
    position: relative;
    padding-bottom: 14px;
    display: inline-block;
}
.work-area-4 .subtitle-wrapper .section-subtitle svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 7px;
    display: block;
    pointer-events: none;
}
.work-area-4 .section-header .subtitle-wrapper {
    overflow: visible;
}

/* Main page title SVG wavy underline (our-works) */
body:has(.work-area-4) .page-title-wrapper .page-title .page-title-inner {
    position: relative;
    padding-bottom: 14px;
    display: inline-block;
}
body:has(.work-area-4) .page-title-wrapper .page-title .page-title-inner svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 7px;
    display: block;
    pointer-events: none;
}
body:has(.work-area-4) .page-title-wrapper .page-title .svg-elem-1 {
    -webkit-animation: animate-svg-stroke-1 5s ease-in-out 0s both infinite;
    animation: animate-svg-stroke-1 5s ease-in-out 0s both infinite;
}

.hero-area .big-text {
    color: #000000 !important;
}

.about-area .section-title {
    color: #aeacac !important;
}

.about-area .rr-btn.hover-bg-theme:hover .btn-wrap .text-two,
.about-area .rr-btn.hover-bg-theme:focus .btn-wrap .text-two {
    color: #aeacac !important;
}

.old-offset-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
}

@media (max-width: 991px) {
    .old-offset-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .old-offset-nav-grid {
        grid-template-columns: 1fr;
    }
}

.old-offset-nav-box {
    display: block;
    padding: 30px 20px;
    background: #efefef;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.old-offset-nav-box:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.old-offset-nav-box i {
    font-size: 32px;
    color: #111;
    margin-bottom: 12px;
    display: block;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Make icons appear thinner by using lighter color and subtle effects */
    color: rgba(17, 17, 17, 0.75);
    filter: contrast(0.95);
}

.old-offset-nav-box span {
    display: block;
    color: #111;
    font-size: 15px;
    font-weight: 600;
}

.old-offset-nav-box span:hover {
    color: #000;
}

/* Elegant Get In Touch Section */
.old-offset-contact-section {
    padding-top: 20px;
}

.old-offset-contact-section .old-contact-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
    line-height: 1.2;
}

.old-contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #111 0%, rgba(17, 17, 17, 0.3) 100%);
}

.old-contact-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.old-offset-contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.old-offset-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #111 0%, rgba(17, 17, 17, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.old-offset-contact-item:hover {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.old-offset-contact-item:hover::before {
    opacity: 1;
}

.old-offset-contact-item.align-start {
    align-items: flex-start;
}

.old-offset-contact-item.align-center {
    align-items: flex-start;
}

.old-contact-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.old-offset-contact-item:hover .old-contact-icon-wrapper {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.2);
}

.old-offset-contact-item.address .old-contact-icon-wrapper {
    background: linear-gradient(135deg, #111 0%, #333 100%);
}

.old-offset-contact-item.phone .old-contact-icon-wrapper i {
    transform: rotate(90deg);
}

.old-contact-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.old-contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 4px;
}

.old-contact-text,
.old-contact-link {
    font-size: 14px;
    font-weight: 400;
    color: #111;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.old-contact-link:hover {
    color: #333;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.old-offset-contact-item.address .old-contact-text {
    line-height: 1.6;
}

/* Responsive styles for Get In Touch section */
@media (max-width: 1199px) {
    .old-contact-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .old-offset-contact-item {
        padding: 16px;
        min-height: 130px;
    }
    
    .old-contact-text,
    .old-contact-link {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .old-contact-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .old-offset-contact-item {
        padding: 14px;
        min-height: 120px;
    }
    
    .old-contact-icon-wrapper {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }
    
    .old-contact-label {
        font-size: 10px;
    }
    
    .old-contact-text,
    .old-contact-link {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .old-offset-contact-section .old-contact-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .old-offset-contact-section .old-contact-title::after {
        width: 50px;
    }
    
    .old-contact-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .old-offset-contact-item {
        padding: 16px;
        min-height: auto;
        flex-direction: row;
        gap: 16px;
    }
    
    .old-contact-icon-wrapper {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 16px;
    }
    
    .old-contact-label {
        font-size: 10px;
    }
    
    .old-contact-text,
    .old-contact-link {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .old-offset-contact-item {
        padding: 14px;
        gap: 14px;
    }
    
    .old-contact-icon-wrapper {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }
}

/* Enhanced Header Section with Logo and Button */
.old-offset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.old-offset-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.old-offset-logo {
    width: auto;
    flex-shrink: 0;
}

.old-offset-logo img {
    width: 180px;
    height: auto;
    max-width: 180px;
}

.old-offset-header .old-offset-widget-cta {
    margin-top: 0;
    flex-shrink: 0;
}

.old-offset-header .old-offset-widget-cta .rr-btn {
    width: auto;
    max-width: none;
    padding: 12px 28px;
    font-size: 15px;
    white-space: nowrap;
}

.old-offset-header .old-offset-widget-cta .rr-btn .btn-wrap {
    width: auto;
    text-align: left;
}

.old-offset-header .old-offset-widget-cta .rr-btn .btn-wrap .text-one,
.old-offset-header .old-offset-widget-cta .rr-btn .btn-wrap .text-two {
    justify-content: flex-start;
    width: auto;
}

@media (max-width: 991px) {
    .old-offset-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .old-offset-logo img {
        width: 150px;
        max-width: 150px;
    }
    
    .old-offset-header .old-offset-widget-cta .rr-btn {
        width: 100%;
        justify-content: center;
    }
    
    .old-offset-header .old-offset-widget-cta .rr-btn .btn-wrap {
        text-align: center;
    }
    
    .old-offset-header .old-offset-widget-cta .rr-btn .btn-wrap .text-one,
    .old-offset-header .old-offset-widget-cta .rr-btn .btn-wrap .text-two {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .old-offset-logo img {
        width: 130px;
        max-width: 130px;
    }
    
    .old-offset-header .old-offset-widget-cta .rr-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

.header-area-2 .old-side-toggle {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    border: none !important;
}

.header-area-2 .old-side-toggle::before,
.header-area-2 .old-side-toggle::after {
    display: none !important;
}

.header-area-2 .old-side-toggle img {
    height: 16px;
    width: auto;
}

.header-area-2 .old-side-toggle {
    color: #111 !important;
    text-decoration: none !important;
}

.header-area-2 .old-side-toggle:hover,
.header-area-2 .old-side-toggle:focus,
.header-area-2 .old-side-toggle:active {
    color: #111 !important;
    text-decoration: none !important;
}

/* Header container - 80% width */
.header-area-2 .container.large,
.body-page-inner .header-area-2 .container.large {
    max-width: 95% !important;
    width: 95% !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991px) {
    .header-area-2 .container.large,
    .body-page-inner .header-area-2 .container.large {
        width: 95% !important;
        max-width: 95% !important;
    }
}

@media (max-width: 767px) {
    .header-area-2 .container.large,
    .body-page-inner .header-area-2 .container.large {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.header-area-2__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100px !important;
}

@media (max-width: 991px) {
    .header-area-2__inner {
        height: 90px !important;
    }
}

@media (max-width: 767px) {
    .header-area-2__inner {
        height: 80px !important;
    }
}

.header-area-2 .header__nav {
    margin-left: auto;
    margin-right: auto;
}

.header-area-2 .header__cta {
    display: flex;
    align-items: center;
}

.header-area-2 .header__cta .rr-btn {
    padding: 12px 24px;
}

@media (max-width: 991px) {
    .header-area-2 .header__cta {
        display: none;
    }
}

/* Increase logo size */
.header-area-2 .header__logo img {
    width: 180px !important;
    height: auto;
    max-width: 180px !important;
}

@media (max-width: 991px) {
    .header-area-2 .header__logo img {
        width: 150px !important;
        max-width: 150px !important;
    }
}

@media (max-width: 767px) {
    .header-area-2 .header__logo img {
        width: 130px !important;
        max-width: 130px !important;
    }
}

.offset-logo {
    width: 120px !important;
}

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

@media (min-width: 1200px) {
    .header__nav.pos-center {
        display: block !important;
    }
}

.old-offset-widget-cta {
    margin-top: 15px;
}

.old-offset-widget-cta .rr-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

.old-offset-widget-cta .rr-btn .btn-wrap {
    width: 100%;
    text-align: center;
}

.old-offset-widget-cta .rr-btn .btn-wrap .text-one,
.old-offset-widget-cta .rr-btn .btn-wrap .text-two {
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .old-offset-widget-cta .rr-btn {
        font-size: 18px;
    }
}

@media (max-width: 1199px) {
    .circular-shape-section {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .circular-shape-section {
        display: block;
    }
}

/* Hide Work by Industry in desktop mega menu on mobile */
@media (max-width: 1199px) {
    .main-menu .work-industry,
    .main-menu .subheading:last-of-type,
    .mobile-menu .work-industry,
    .mobile-menu .subheading:last-of-type {
        display: none !important;
    }
}

/* ============================================
   MIXED PORTFOLIO GRID LAYOUT - 2 COLUMN GRID
   OVERRIDING TO SHOW ORIGINAL IMAGE SIZES
   ============================================ */

/* CRITICAL: Override any conflicting styles from style.css */
.work-area-4 .works-wrapper-mixed,
.work-area .works-wrapper-mixed,
.works-wrapper-mixed {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 65px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: start !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
}

/* Override ALL aspect-ratio and fixed heights */
.works-wrapper-mixed .work-box .thumb,
.works-wrapper-mixed .project-card-standard .thumb,
.works-wrapper-mixed .project-card-featured .thumb,
.works-wrapper-mixed .project-card-wide .thumb {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.works-wrapper-mixed .work-box .thumb .image,
.works-wrapper-mixed .project-card-standard .thumb .image,
.works-wrapper-mixed .project-card-featured .thumb .image,
.works-wrapper-mixed .project-card-wide .thumb .image {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.works-wrapper-mixed .work-box .thumb img,
.works-wrapper-mixed .work-box .thumb .image img,
.works-wrapper-mixed .project-card-standard .thumb img,
.works-wrapper-mixed .project-card-featured .thumb img,
.works-wrapper-mixed .project-card-wide .thumb img {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    width: 100% !important;
}

/* Base Grid Container - Dynamic Layout */
.works-wrapper-mixed {
    align-items: start !important;
    grid-auto-rows: auto;
}

/* Phone Apps specific grid alignment */
.phone-apps-page .works-wrapper-mixed {
    align-content: start !important;
    grid-auto-rows: min-content;
}

/* Responsive Gaps */
@media only screen and (max-width: 1399px) {
    .work-area-4 .works-wrapper-mixed,
    .work-area .works-wrapper-mixed,
    .works-wrapper-mixed {
        gap: 65px 20px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .work-area-4 .works-wrapper-mixed,
    .work-area .works-wrapper-mixed,
    .works-wrapper-mixed {
        gap: 45px 20px !important;
    }
}

@media only screen and (max-width: 767px) {
    .work-area-4 .works-wrapper-mixed,
    .work-area .works-wrapper-mixed,
    .works-wrapper-mixed {
        grid-template-columns: 1fr !important;
        gap: 30px 15px !important;
    }
}

/* Work Box Base Styles - With Hover Effects - High Specificity */
.work-area-4 .works-wrapper-mixed .work-box,
.work-area .works-wrapper-mixed .work-box,
.works-wrapper-mixed .work-box {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    min-height: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease !important;
}

/* Hover Effect - Card Lift */
.works-wrapper-mixed .work-box:hover {
    transform: translateY(-8px);
}

.works-wrapper-mixed .project-card-featured:hover,
.works-wrapper-mixed .project-card-wide:hover {
    transform: translateY(-10px);
}

/* Style 1: Standard Cards - 1 column (2 boxes per row) - High Specificity */
.work-area-4 .works-wrapper-mixed .work-box.project-card-standard,
.work-area .works-wrapper-mixed .work-box.project-card-standard,
.works-wrapper-mixed .work-box.project-card-standard {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Style 2: Large Featured Cards - 2 columns (full width) - High Specificity */
.work-area-4 .works-wrapper-mixed .work-box.project-card-featured,
.work-area .works-wrapper-mixed .work-box.project-card-featured,
.works-wrapper-mixed .work-box.project-card-featured {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.works-wrapper-mixed .work-box.project-card-featured .thumb {
    max-width: 100% !important;
}

.works-wrapper-mixed .work-box.project-card-featured .thumb img {
    width: 100% !important;
    max-width: 100% !important;
}

.works-wrapper-mixed .work-box.project-card-featured::before {
    content: '';
    display: none;
}

/* Style 3: Horizontal Full-Width Cards - 2 columns (full width) - High Specificity */
.work-area-4 .works-wrapper-mixed .work-box.project-card-wide,
.work-area .works-wrapper-mixed .work-box.project-card-wide,
.works-wrapper-mixed .work-box.project-card-wide {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.works-wrapper-mixed .work-box.project-card-wide .thumb {
    max-width: 100% !important;
}

.works-wrapper-mixed .work-box.project-card-wide .thumb img {
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile: All cards stack - High Specificity */
@media only screen and (max-width: 767px) {
    .work-area-4 .works-wrapper-mixed .work-box.project-card-standard,
    .work-area .works-wrapper-mixed .work-box.project-card-standard,
    .works-wrapper-mixed .work-box.project-card-standard,
    .work-area-4 .works-wrapper-mixed .work-box.project-card-featured,
    .work-area .works-wrapper-mixed .work-box.project-card-featured,
    .works-wrapper-mixed .work-box.project-card-featured,
    .work-area-4 .works-wrapper-mixed .work-box.project-card-wide,
    .work-area .works-wrapper-mixed .work-box.project-card-wide,
    .works-wrapper-mixed .work-box.project-card-wide {
        grid-column: span 1 !important;
    }
}

/* Card Thumbnail Styling - Original Image Sizes */
.works-wrapper-mixed .work-box .thumb {
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block;
    position: relative;
    background: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
    margin: 0;
    padding: 0;
    aspect-ratio: auto !important;
}

.works-wrapper-mixed .work-box:hover .thumb {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.works-wrapper-mixed .work-box .thumb .image {
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    aspect-ratio: auto !important;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover Effect - Image Container Scale */
.works-wrapper-mixed .work-box:hover .thumb .image {
    transform: scale(1.02);
}

/* Overlay Effect on Hover */
.works-wrapper-mixed .work-box .thumb .image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 15px;
}

.works-wrapper-mixed .work-box:hover .thumb .image::before {
    background: rgba(0, 0, 0, 0.05);
}

.works-wrapper-mixed .work-box .thumb .image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    vertical-align: top;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Hover Effect - Image Zoom */
.works-wrapper-mixed .work-box:hover .thumb .image img {
    transform: scale(1.05);
}

.works-wrapper-mixed .work-box .thumb img {
    width: 100% !important;
    height: auto !important;
    cursor: none;
    display: block;
    vertical-align: top;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    opacity: 1;
}

.works-wrapper-mixed .work-box:hover .thumb img {
    transform: scale(1.05);
}

/* Remove any extra spacing from images */
.works-wrapper-mixed .work-box .thumb .image,
.works-wrapper-mixed .work-box .thumb,
.works-wrapper-mixed .work-box {
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0;
}

.works-wrapper-mixed .work-box .thumb .image a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Style 1: Standard Card - Original Image Size, No Fixed Heights */
.works-wrapper-mixed .project-card-standard .thumb {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative;
    background: transparent;
    overflow: hidden;
    border-radius: 15px;
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
    aspect-ratio: auto !important;
}

.works-wrapper-mixed .project-card-standard .thumb .image {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
    aspect-ratio: auto !important;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.works-wrapper-mixed .project-card-standard:hover .thumb .image {
    transform: scale(1.02);
}

.works-wrapper-mixed .project-card-standard .thumb img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.works-wrapper-mixed .project-card-standard:hover .thumb img {
    transform: scale(1.05);
}

/* Style 2: Large Featured Card - Original Image Size, No Fixed Heights */
.works-wrapper-mixed .project-card-featured .thumb {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    max-width: 100%;
    position: relative;
    background: transparent;
    display: block !important;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 15px;
    line-height: 0;
    padding: 0;
    aspect-ratio: auto !important;
}

.works-wrapper-mixed .project-card-featured .thumb .image {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
    aspect-ratio: auto !important;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.works-wrapper-mixed .project-card-featured:hover .thumb .image {
    transform: scale(1.02);
}

.works-wrapper-mixed .project-card-featured .thumb img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.works-wrapper-mixed .project-card-featured:hover .thumb img {
    transform: scale(1.05);
}

/* Style 3: Horizontal Full-Width Card - Original Image Size, No Fixed Heights */
.works-wrapper-mixed .project-card-wide .thumb {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative;
    background: transparent;
    display: block !important;
    overflow: hidden;
    border-radius: 15px;
    line-height: 0;
    padding: 0;
    aspect-ratio: auto !important;
}

.works-wrapper-mixed .project-card-wide .thumb .image {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
    aspect-ratio: auto !important;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.works-wrapper-mixed .project-card-wide:hover .thumb .image {
    transform: scale(1.02);
}

.works-wrapper-mixed .project-card-wide .thumb img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.works-wrapper-mixed .project-card-wide:hover .thumb img {
    transform: scale(1.05);
}

/* Content Styling */
.works-wrapper-mixed .work-box .content {
    margin-top: 24px !important;
    width: 100%;
    padding-top: 0 !important;
}

@media only screen and (max-width: 1199px) {
    .works-wrapper-mixed .work-box .content {
        margin-top: 18px !important;
    }
}

@media only screen and (max-width: 767px) {
    .works-wrapper-mixed .work-box .content {
        margin-top: 14px !important;
    }
}

/* Title Styling - Responsive */
.works-wrapper-mixed .work-box .title {
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.05em;
    transition: color 0.3s ease;
}

.works-wrapper-mixed .work-box .title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.works-wrapper-mixed .work-box .title a:hover {
    color: #666;
}

/* Tablet: 768px - 1199px */
@media only screen and (max-width: 1199px) {
    .works-wrapper-mixed .work-box .title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Mobile: 767px and below */
@media only screen and (max-width: 767px) {
    .works-wrapper-mixed .work-box .title {
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.03em;
    }
}

/* Small Mobile: 480px and below */
@media only screen and (max-width: 480px) {
    .works-wrapper-mixed .work-box .title {
        font-size: 15px;
        line-height: 21px;
    }
}

/* Featured and Wide Cards - Larger Text - Responsive */
.works-wrapper-mixed .project-card-featured .title,
.works-wrapper-mixed .project-card-wide .title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
}

@media only screen and (max-width: 1199px) {
    .works-wrapper-mixed .project-card-featured .title,
    .works-wrapper-mixed .project-card-wide .title {
        font-size: 20px;
        line-height: 26px;
    }
}

@media only screen and (max-width: 767px) {
    .works-wrapper-mixed .project-card-featured .title,
    .works-wrapper-mixed .project-card-wide .title {
        font-size: 18px;
        line-height: 24px;
    }
}

@media only screen and (max-width: 480px) {
    .works-wrapper-mixed .project-card-featured .title,
    .works-wrapper-mixed .project-card-wide .title {
        font-size: 16px;
        line-height: 22px;
    }
}

/* Tag Styling - Responsive */
.works-wrapper-mixed .work-box .tag {
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.05em;
    display: block;
    font-family: var(--font_bdogrotesk);
    color: var(--black-2);
}

.works-wrapper-mixed .project-card-featured .tag,
.works-wrapper-mixed .project-card-wide .tag {
    font-size: 15px !important;
    line-height: 26px;
    margin-top: 6px;
}

/* Tablet: 768px - 1199px */
@media only screen and (max-width: 1199px) {
    .works-wrapper-mixed .work-box .tag {
        font-size: 14px;
        line-height: 24px;
    }
    
    .works-wrapper-mixed .project-card-featured .tag,
    .works-wrapper-mixed .project-card-wide .tag {
        font-size: 14px !important;
        line-height: 24px;
    }
}

/* Mobile: 767px and below */
@media only screen and (max-width: 767px) {
    .works-wrapper-mixed .work-box .tag {
        font-size: 13px;
        line-height: 20px;
        letter-spacing: -0.03em;
    }
    
    .works-wrapper-mixed .project-card-featured .tag,
    .works-wrapper-mixed .project-card-wide .tag {
        font-size: 13px !important;
        line-height: 20px;
    }
}

/* Small Mobile: 480px and below */
@media only screen and (max-width: 480px) {
    .works-wrapper-mixed .work-box .tag {
        font-size: 12px;
        line-height: 18px;
    }
    
    .works-wrapper-mixed .project-card-featured .tag,
    .works-wrapper-mixed .project-card-wide .tag {
        font-size: 12px !important;
        line-height: 18px;
    }
}

/* Phone Apps specific tag styling - Responsive */
.phone-apps-page .works-wrapper-mixed .work-box .tag {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media only screen and (max-width: 1199px) {
    .phone-apps-page .works-wrapper-mixed .work-box .title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .phone-apps-page .works-wrapper-mixed .work-box .tag {
        font-size: 12px;
    }
}

@media only screen and (max-width: 767px) {
    .phone-apps-page .works-wrapper-mixed .work-box .title {
        font-size: 16px;
        line-height: 22px;
    }
    
    .phone-apps-page .works-wrapper-mixed .work-box .tag {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
}

@media only screen and (max-width: 480px) {
    .phone-apps-page .works-wrapper-mixed .work-box .tag {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
}

/* Enhanced Visual Hierarchy for Featured Cards */
.works-wrapper-mixed .project-card-featured .thumb,
.works-wrapper-mixed .project-card-wide .thumb {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.works-wrapper-mixed .project-card-featured:hover .thumb,
.works-wrapper-mixed .project-card-wide:hover .thumb {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Link Hover States */
.works-wrapper-mixed .work-box a {
    display: block;
    text-decoration: none;
}

.works-wrapper-mixed .work-box a:hover {
    text-decoration: none;
}

/* Animation */
.works-wrapper-mixed .work-box {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for cards */
.works-wrapper-mixed .work-box:nth-child(1) { animation-delay: 0.1s; }
.works-wrapper-mixed .work-box:nth-child(2) { animation-delay: 0.15s; }
.works-wrapper-mixed .work-box:nth-child(3) { animation-delay: 0.2s; }
.works-wrapper-mixed .work-box:nth-child(4) { animation-delay: 0.25s; }
.works-wrapper-mixed .work-box:nth-child(5) { animation-delay: 0.3s; }
.works-wrapper-mixed .work-box:nth-child(6) { animation-delay: 0.35s; }

/* Project Label - single source for all project label styling (no inline CSS in our-works) */
@keyframes slideInLabel {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.works-wrapper-mixed .work-box .project-label,
.works-wrapper-6 .work-box .project-label {
    position: absolute;
    left: 20px;
    top: 20px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 22px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
    border-left: 3px solid rgba(17,17,17,0.8);
    border-radius: 0 6px 6px 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLabel 0.8s cubic-bezier(0.23,1,0.32,1) 0.3s forwards;
    line-height: 1.3;
}
.works-wrapper-6 .work-box .thumb .image {
    position: relative;
}
@media (max-width: 1199px) {
    .works-wrapper-mixed .work-box .project-label,
    .works-wrapper-6 .work-box .project-label {
        left: 15px; top: 15px;
        font-size: 11px;
        letter-spacing: 1.5px;
        padding: 12px 18px;
    }
}
@media (max-width: 767px) {
    .works-wrapper-mixed .work-box .project-label,
    .works-wrapper-6 .work-box .project-label {
        left: 12px; top: 12px;
        font-size: 10px;
        letter-spacing: 1px;
        padding: 10px 14px;
        border-left-width: 2px;
        border-radius: 0 4px 4px 0;
    }
}
@media (max-width: 480px) {
    .works-wrapper-mixed .work-box .project-label,
    .works-wrapper-6 .work-box .project-label {
        left: 10px; top: 10px;
        font-size: 9px;
        letter-spacing: 0.8px;
        padding: 8px 12px;
        border-left-width: 2px;
        border-radius: 0 3px 3px 0;
        line-height: 1.2;
    }
}

/* Custom Row: 1 Big + 2 Small boxes in single row - High Specificity - Responsive */
.work-area-4 .works-wrapper-mixed .custom-row-wrapper,
.work-area .works-wrapper-mixed .custom-row-wrapper,
.works-wrapper-mixed .custom-row-wrapper,
.custom-row-wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
}

.custom-row-wrapper .project-card-big {
    grid-column: span 1 !important;
}

.custom-row-wrapper .project-card-small {
    grid-column: span 1 !important;
}

/* Tablet: 768px - 1199px - Adjust layout for better fit */
@media only screen and (max-width: 1199px) {
    .work-area-4 .works-wrapper-mixed .custom-row-wrapper,
    .work-area .works-wrapper-mixed .custom-row-wrapper,
    .works-wrapper-mixed .custom-row-wrapper,
    .custom-row-wrapper {
        grid-template-columns: 1.5fr 1fr 1fr !important;
        gap: 12px !important;
    }
}

/* Tablet Small: 992px - 1199px */
@media only screen and (max-width: 991px) {
    .work-area-4 .works-wrapper-mixed .custom-row-wrapper,
    .work-area .works-wrapper-mixed .custom-row-wrapper,
    .works-wrapper-mixed .custom-row-wrapper,
    .custom-row-wrapper {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    
    .custom-row-wrapper .project-card-big {
        grid-column: 1 / -1 !important;
    }
    
    .custom-row-wrapper .project-card-small {
        grid-column: span 1 !important;
    }
}

/* Mobile: 767px and below - Stack all cards */
@media only screen and (max-width: 767px) {
    .work-area-4 .works-wrapper-mixed .custom-row-wrapper,
    .work-area .works-wrapper-mixed .custom-row-wrapper,
    .works-wrapper-mixed .custom-row-wrapper,
    .custom-row-wrapper {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .custom-row-wrapper .project-card-big,
    .custom-row-wrapper .project-card-small {
        grid-column: span 1 !important;
    }
}

/* Small Mobile: 480px and below */
@media only screen and (max-width: 480px) {
    .work-area-4 .works-wrapper-mixed .custom-row-wrapper,
    .work-area .works-wrapper-mixed .custom-row-wrapper,
    .works-wrapper-mixed .custom-row-wrapper,
    .custom-row-wrapper {
        gap: 12px !important;
    }
}

/* Focus states for accessibility */
.works-wrapper-mixed .work-box:focus-within {
    outline: 2px solid var(--primary, #111);
    outline-offset: 4px;
    border-radius: 15px;
}

/* Additional styles from websites.php and software.php */
/* Smooth Image Loading */
.works-wrapper-mixed .work-box .thumb img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Better image quality on hover */
.works-wrapper-mixed .work-box .thumb .image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}