/* BedsCafe overrides - same as original index.html + header partial inline styles */

/* What We Build dropdown: show submenu on hover (theme uses display:none on ul) */
.main-menu .navigation > li.dropdown:hover > ul {
    display: block !important;
}

/* Homepage clients carousel (Swiper) */
.clients-section {
    background: none !important;
}
.clients-section .sec-title h4:before,
.clients-section .sec-title h2:before,
.clients-section .sec-title:before {
    display: none !important;
}
.clients-section .clients-carousel-swiper {
    overflow: hidden;
    padding: 10px 0;
}
.clients-section .slide-item {
    border-right: none;
    border-bottom: none;
    padding: 10px;
}
.clients-section .slide-item .image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 100px;
    margin: 0 auto;
}
.clients-section .slide-item .image-box img {
    width: 100%;
    height: 100%;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}
.clients-section .slide-item:hover .image-box img {
    opacity: 1;
}

/* Header upper: align logo and right content on one line (desktop) - from header partial */
@media only screen and (min-width: 768px) {
    .main-header.style-two .header-upper {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .main-header.style-two .header-upper .auto-container {
        max-width: 1600px !important;
    }
    .main-header.style-two .header-upper .clearfix {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    .main-header.style-two .header-upper .logo-outer {
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }
    .main-header.style-two .header-upper .upper-right {
        padding-top: 0 !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .main-header.style-two .header-upper .logo img {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .main-header.style-two .header-upper .upper-column.info-box:first-of-type {
        min-width: 200px !important;
        flex-shrink: 0 !important;
    }
    .main-header.style-two .header-upper .social-icons {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    .main-header.style-two .header-upper .upper-column.info-box.header-gem-logo-wrap {
        flex-shrink: 0 !important;
    }
}

/* GeM logo in header - keep size constrained */
.main-header .header-gem-logo-wrap {
    padding-left: 20px;
}
.main-header .header-gem-logo-wrap .gem-logo-img {
    max-height: 76px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    vertical-align: middle;
}

/* Highlight carousel visible without Owl JS (React uses owl-loaded + hooks) */
.highlights .highlight-carousel.owl-carousel.owl-loaded {
    display: block !important;
    position: relative;
}
.highlight-carousel .owl-dots .owl-dot {
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* About section: show info-carousel without Owl JS (React adds owl-loaded) */
.about-section-two .info-carousel.owl-carousel.owl-loaded {
    display: block !important;
}
.about-section-two .info-carousel.owl-carousel .about-block-two {
    display: block !important;
}

/* About section: Swiper content carousel - one card, fade, dots below card */
.about-section-two .highlight-box {
    position: relative;
    overflow: hidden;
}
.about-section-two .about-info-carousel-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px;
    min-height: 320px;
}
.about-section-two .about-info-carousel-swiper .swiper-wrapper {
    align-items: stretch;
}
.about-section-two .about-info-carousel-swiper .swiper-slide {
    height: auto;
    display: flex;
    position: relative;
    z-index: 1;
}
/* Fade effect: only active slide visible and on top; prevent text/icon overlap */
.about-section-two .about-info-carousel-swiper .swiper-slide:not(.swiper-slide-active) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0;
}
.about-section-two .about-info-carousel-swiper .swiper-slide-active {
    z-index: 2;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Hide decorative pseudo on inactive slides so it doesn’t stack */
.about-section-two .about-info-carousel-swiper .swiper-slide:not(.swiper-slide-active) .about-block-two:before {
    display: none !important;
}
.about-section-two .about-info-carousel-swiper .about-block-two {
    margin-bottom: 0 !important;
    width: 100%;
    flex: 1;
}
.about-section-two .about-info-carousel-swiper .swiper-pagination {
    position: absolute !important;
    left: 30px !important;
    right: auto !important;
    bottom: 30px !important;
    top: auto !important;
    width: auto !important;
    text-align: left;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
.about-section-two .about-info-carousel-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border: 2px solid #f7c02d;
    border-radius: 5px;
    background: transparent;
    opacity: 1;
    margin: 0 !important;
    transition: background 0.3s ease;
}
.about-section-two .about-info-carousel-swiper .swiper-pagination-bullet-active {
    background-color: #f7c02d;
}
@media only screen and (max-width: 767px) {
    .about-section-two .outer-box {
        min-height: 320px !important;
    }
}

/* Projects page: grid layout (match projects.html structure) */
.projects-section {
    padding: 80px 0;
    background: #ffffff;
}
.projects-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}
.projects-intro h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}
.projects-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.project-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: rgba(247, 192, 45, 0.5);
}
.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.project-content {
    padding: 30px;
}
.project-category {
    font-size: 14px;
    font-weight: 600;
    color: #f7c02d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.project-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.project-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}
@media (max-width: 768px) {
    .projects-section .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .projects-section .projects-intro h2 {
        font-size: 32px;
    }
    .projects-section .project-image {
        height: 250px;
    }
    .projects-section .project-image img {
        height: 250px;
    }
}

/* Process page: timeline (match process.html structure) */
.process-timeline-section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    margin-top: -1px;
}
.process-timeline-section .timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.process-timeline-section .timeline-description {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}
.process-timeline-section .timeline-description p {
    font-size: 20px;
    line-height: 30px;
    color: #848484;
    font-weight: 400;
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.process-timeline-section .timeline-spine {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background-color: #f7c02d;
    box-shadow: 0 0 15px 3px rgba(247, 192, 45, 0.7);
    transition: height 0.5s ease-out;
    z-index: 1;
}
.process-timeline-section .timeline-step {
    position: relative;
    width: 50%;
    padding: 2rem 0;
    margin-bottom: 2rem;
    opacity: 0.2;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.process-timeline-section .timeline-step.is-active {
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-section .timeline-step.step-left {
    padding-right: 3rem;
    text-align: right;
    margin-right: 50%;
}
.process-timeline-section .timeline-step.step-right {
    padding-left: 3rem;
    margin-left: 50%;
    text-align: left;
}
.process-timeline-section .timeline-step::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #f7c02d;
    box-shadow: 0 0 15px rgba(247, 192, 45, 0.7);
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.process-timeline-section .timeline-step.step-left::after {
    right: -8px;
}
.process-timeline-section .timeline-step.step-right::after {
    left: -8px;
}
.process-timeline-section .timeline-step.is-active::after {
    transform: translateY(-50%) scale(1.2);
    background-color: #f7c02d;
}
.process-timeline-section .step-content {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-timeline-section .step-image {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}
.process-timeline-section .step-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 200px;
}
.process-timeline-section .timeline-step.is-active .step-content {
    border-color: rgba(247, 192, 45, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.process-timeline-section .step-number {
    font-size: 32px;
    font-weight: 700;
    color: #f7c02d;
    margin-bottom: 0.5rem;
    display: block;
}
.process-timeline-section .step-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}
.process-timeline-section .step-content p {
    font-size: 18px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 768px) {
    .process-timeline-section {
        padding: 40px 15px !important;
    }
    .process-timeline-section .timeline-description {
        padding: 0 15px !important;
        margin-bottom: 30px !important;
    }
    .process-timeline-section .timeline-description p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    .process-timeline-section .timeline-container {
        padding: 0 15px !important;
    }
    .process-timeline-section .timeline-spine {
        left: 10px;
        transform: translateX(0);
    }
    .process-timeline-section .timeline-step {
        width: 100%;
        padding-left: 2.5rem;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .process-timeline-section .timeline-step.step-left,
    .process-timeline-section .timeline-step.step-right {
        padding-left: 2.5rem;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .process-timeline-section .timeline-step::after {
        left: 2px;
        right: auto;
    }
    .process-timeline-section .step-content {
        padding: 20px 15px !important;
    }
    .process-timeline-section .step-content h3 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    .process-timeline-section .step-content p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    .process-timeline-section .step-number {
        font-size: 28px !important;
    }
    .process-timeline-section .step-image {
        margin-bottom: 15px !important;
    }
    .process-timeline-section .step-image img {
        max-height: 180px !important;
    }
}

/* Manufacturing page: capabilities, process steps, custom manufacturing (match manufacturing.html) */
.capabilities-grid {
    padding: 40px 0 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.capability-card {
    background: #ffffff;
    padding: 50px 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border-top: 4px solid #ffc400;
    height: 100%;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.capability-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffc400 0%, #ffd700 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.capability-card:hover:before {
    transform: scaleX(1);
}
.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.capability-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffc400 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}
.capability-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 196, 0, 0.4);
}
.capability-card .icon-wrapper i {
    font-size: 36px;
    color: #1a1a1a;
}
.capability-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.3;
}
.capability-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    font-size: 16px;
}
.capabilities-grid .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.process-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 80px 0;
}
.process-box {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.process-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ffc400;
}
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.process-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: #333;
    position: relative;
    padding-left: 30px;
    padding-right: 550px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}
.process-text {
    display: inline-block;
    vertical-align: middle;
}
.process-list li:hover {
    background: #fff9e6;
    color: #1a1a1a;
}
.process-list li:last-child {
    border-bottom: none;
}
.process-list li:before {
    content: "\f00c";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    color: #ffc400;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    top: 12px;
}
.process-list li:hover:before {
    transform: scale(1.2);
    color: #ffd700;
}
.process-list li.active {
    background: #fff9e6;
    color: #1a1a1a;
    font-weight: 600;
}
.process-image-hover {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 350px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.process-image-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.process-list li:hover .process-image-hover {
    opacity: 1;
    visibility: visible;
}
@media only screen and (max-width: 767px) {
    .process-list li {
        padding-right: 15px !important;
    }
    .process-image-hover {
        display: none !important;
    }
}

.custom-manufacturing {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.custom-manufacturing:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,196,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}
.custom-manufacturing-content {
    position: relative;
    z-index: 1;
}
.custom-service-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 196, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}
.custom-service-box:hover {
    background: rgba(255, 196, 0, 0.1);
    border-color: #ffc400;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 196, 0, 0.2);
}
.custom-service-box .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffc400 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}
.custom-service-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 196, 0, 0.4);
}
.custom-service-box .service-icon i {
    font-size: 32px;
    color: #1a1a1a;
    display: block;
    line-height: 1;
}
.custom-service-box h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}
.custom-service-box p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
.custom-manufacturing .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

/* About-style-one: flexbox layout, z-index layering, yellow shape behind image (match original HTML) */
/* Lock section padding to match HTML page exactly (100px 0 on desktop) */
@media only screen and (min-width: 768px) {
    .about-style-one {
        padding: 100px 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    .story-section + .about-style-one {
        margin-top: 0 !important;
        padding-top: 100px !important;
    }
    .about-style-one .row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .about-style-one .col-md-6:first-child {
        margin-left: -40px !important;
        padding-right: 20px !important;
    }
    .about-style-one .col-md-6:last-child {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin-left: 30px !important;
        padding-left: 20px !important;
        position: relative;
        z-index: 10;
    }
}
.about-style-one .image-box {
    position: relative !important;
    z-index: 1;
    max-width: 100%;
    overflow: visible;
}
.about-style-one .image-box::before {
    z-index: 0 !important;
    position: absolute !important;
    top: 50px !important;
    left: 50px !important;
    width: 100% !important;
    height: 100% !important;
    background: #F7C02D url(/images/resource/about-bg.png) repeat center center !important;
}
.about-style-one .image-box img {
    position: relative !important;
    z-index: 2 !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}
.about-style-one .sec-title {
    position: relative !important;
    z-index: 5 !important;
    margin-bottom: 30px !important;
}
.about-style-one .content-box {
    position: relative !important;
    z-index: 5 !important;
    padding-right: 40px !important;
}
.about-style-one .list-items li {
    position: relative !important;
    z-index: 5 !important;
}
/* Match HTML inline style: list icon color #ffc400; keep icon and text parallel (absolute + vertical center) */
.about-style-one .list-items li i.machinery-icon-favorites-button {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: #ffc400 !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
    text-align: center;
}
.about-style-one .content-box ul.list-items li {
    padding-left: 43px !important;
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
}
@media only screen and (max-width: 767px) {
    .about-style-one .image-box::before {
        left: 10px !important;
        top: 10px !important;
    }
}

/* Services carousel (Swiper) - match theme pagination to .owl-dots look */
.services-carousel-swiper {
    overflow: hidden;
    padding-bottom: 56px !important; /* space for dots below cards */
}
.services-carousel-swiper.swiper {
    display: block !important;
}
.services-carousel-swiper .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
}
.services-carousel-swiper .swiper-slide {
    flex-shrink: 0;
    height: auto;
}
/* Pagination below card section: centered, with gap above dots */
.services-carousel-swiper .swiper-pagination {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: 16px !important;
    top: auto !important;
    margin-top: 24px !important; /* spacing between cards and dots */
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.services-carousel-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border: 2px solid #f7c02d;
    border-radius: 5px;
    background: transparent;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}
.services-carousel-swiper .swiper-pagination-bullet-active {
    background-color: #f7c02d;
}

/* Call-to-action: smaller text + align button with text (match HTML about page) */
.call-to-action .inner-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}
.call-to-action .text-box p {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}
.call-to-action .text-box {
    padding: 0 !important;
}
.call-to-action .btn-box {
    padding-top: 0 !important;
}

/* ---- Original index.html overrides below ---- */
.services-block .image-box .title h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}
.services-block .image-box .title {
    padding: 8px 20px !important;
    padding-right: 50px !important;
}
.why-bedsafe-item {
    cursor: pointer;
}
.why-bedsafe-item:hover {
    color: #f7c02d !important;
}
.why-bedsafe-item:hover strong {
    color: #f7c02d !important;
}
.video-column .image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}
.video-column .inner-column {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-upper .logo-outer {
    margin-top: 0 !important;
    position: relative !important;
}
.header-upper .logo {
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}
.header-upper .logo img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}
.project-section:before {
    opacity: 0.85 !important;
    z-index: 1;
}
/* Project section: content above dark overlay (same as theme) */
.project-section .auto-container,
.project-section .carousel-box,
.project-section .project-carousel-swiper {
    position: relative;
    z-index: 2;
}
.project-section,
.project-section .auto-container,
.project-section .carousel-box {
    overflow: visible;
}
/* Exactly 3 cards visible: clip swiper (arrows are outside) */
.project-section .project-carousel-swiper {
    overflow: hidden !important;
}
/* Swiper: same scale effect as Owl */
.project-section .project-carousel-swiper .swiper-slide .project-block {
    width: 100%;
    transition: transform 0.4s ease;
    transform: scale(1, 0.83);
}
.project-section .project-carousel-swiper .swiper-slide-active .project-block {
    transform: scale(1, 1);
}
.project-section .project-carousel-swiper .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
}
.project-section .project-carousel-swiper .swiper-slide {
    flex-shrink: 0;
    height: auto;
    display: flex;
    align-items: stretch;
}
/* Custom nav arrows (outside swiper): match theme .owl-prev/.owl-next */
.project-section .project-carousel-prev,
.project-section .project-carousel-next {
    position: absolute;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    left: -110px;
    right: auto;
    color: #737474;
    border: 1px solid #737474;
    border-radius: 50%;
    background: transparent;
    transition: all 300ms ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
}
.project-section .project-carousel-next {
    left: auto;
    right: -110px;
}
.project-section .project-carousel-prev:hover,
.project-section .project-carousel-next:hover {
    color: #f7c02d;
    border-color: #f7c02d;
}
@media (max-width: 1400px) {
    .project-section .project-carousel-prev {
        left: -75px;
    }
    .project-section .project-carousel-next {
        right: -75px;
    }
}
@media (max-width: 1199px) {
    .project-section .project-carousel-prev {
        left: 10px;
    }
    .project-section .project-carousel-next {
        right: 10px;
    }
}
/* Mobile background images for slides - root-relative paths for React */
@media only screen and (max-width: 767px) {
    #minimal-bootstrap-carousel .slide-1 {
        background-image: url('/images/background/Mobile banner 2.png') !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    #minimal-bootstrap-carousel .slide-2 {
        background-image: url('/images/background/mobile banner 3.png') !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    #minimal-bootstrap-carousel .slide-3 {
        background-image: url('/images/background/mobile banner.png') !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    #minimal-bootstrap-carousel .slide-4 {
        background-image: url('/images/background/mobile banner 4.png') !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    #minimal-bootstrap-carousel .slide-1,
    #minimal-bootstrap-carousel .slide-2,
    #minimal-bootstrap-carousel .slide-3,
    #minimal-bootstrap-carousel .slide-4 {
        position: relative !important;
    }
    #minimal-bootstrap-carousel .slide-1::before,
    #minimal-bootstrap-carousel .slide-3::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.15) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    #minimal-bootstrap-carousel .slide-2::before,
    #minimal-bootstrap-carousel .slide-4::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 255, 255, 0.15) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    #minimal-bootstrap-carousel .slide-1 .carousel-caption,
    #minimal-bootstrap-carousel .slide-2 .carousel-caption,
    #minimal-bootstrap-carousel .slide-3 .carousel-caption,
    #minimal-bootstrap-carousel .slide-4 .carousel-caption {
        z-index: 2 !important;
    }
    #minimal-bootstrap-carousel .slide-1 .main-banner-content,
    #minimal-bootstrap-carousel .slide-2 .main-banner-content,
    #minimal-bootstrap-carousel .slide-3 .main-banner-content,
    #minimal-bootstrap-carousel .slide-4 .main-banner-content {
        background: transparent !important;
        padding: 20px 15px !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
    }
}
@media only screen and (min-width: 768px) {
    #minimal-bootstrap-carousel .slide-1 .carousel-caption .container .box,
    #minimal-bootstrap-carousel .slide-3 .carousel-caption .container .box {
        text-align: left !important;
    }
    #minimal-bootstrap-carousel .slide-1 .carousel-caption .container .box .content,
    #minimal-bootstrap-carousel .slide-3 .carousel-caption .container .box .content {
        float: none !important;
        margin-right: auto !important;
    }
    #minimal-bootstrap-carousel .slide-2 .carousel-caption .container .box,
    #minimal-bootstrap-carousel .slide-4 .carousel-caption .container .box {
        text-align: right !important;
    }
    #minimal-bootstrap-carousel .slide-2 .carousel-caption .container .box .content.pull-right,
    #minimal-bootstrap-carousel .slide-4 .carousel-caption .container .box .content.pull-right {
        float: right !important;
        margin-left: auto !important;
    }
    /* Constrain caption text width so it aligns properly on all slides (2-line wrap) */
    #minimal-bootstrap-carousel .main-banner-content .text {
        max-width: 720px !important;
    }
    /* Yellow line on right for right-aligned slides (2 & 4), like 2nd slide */
    #minimal-bootstrap-carousel .slide-2 .main-banner-content,
    #minimal-bootstrap-carousel .slide-4 .main-banner-content {
        border-left: none !important;
        border-right: 2px solid #F7C02D !important;
        padding-right: 30px !important;
        padding-left: 0 !important;
    }
}

@media only screen and (max-width: 767px) {
    .slide-1 .carousel-caption .container,
    .slide-2 .carousel-caption .container,
    .slide-3 .carousel-caption .container,
    .slide-4 .carousel-caption .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .slide-2 .carousel-caption .container {
        padding-right: 15px !important;
    }
    .slide-1 .carousel-caption .box,
    .slide-2 .carousel-caption .box,
    .slide-3 .carousel-caption .box,
    .slide-4 .carousel-caption .box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .slide-1 .content.pull-right,
    .slide-2 .content.pull-right,
    .slide-3 .content.pull-right,
    .slide-4 .content.pull-right {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    .slide-1 .main-banner-content,
    .slide-3 .main-banner-content,
    .slide-4 .main-banner-content {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    .slide-2 .main-banner-content {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .slide-2 .main-banner-content .title,
    .slide-4 .main-banner-content .title {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .slide-2 .main-banner-content h1 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        hyphens: auto !important;
        font-size: 60px !important;
        line-height: 1.1em !important;
        white-space: nowrap !important;
    }
    .slide-4 .main-banner-content h1 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        font-size: 74px !important;
        line-height: 1.1em !important;
    }
    .slide-2 .main-banner-content .text,
    .slide-4 .main-banner-content .text {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .slide-1 .content,
    .slide-2 .content,
    .slide-3 .content,
    .slide-4 .content {
        right: auto !important;
        left: 0 !important;
    }
    .slide-1 .carousel-caption,
    .slide-3 .carousel-caption,
    .slide-4 .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    .slide-2 .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .slide-1 .main-banner-content,
    .slide-2 .main-banner-content,
    .slide-3 .main-banner-content,
    .slide-4 .main-banner-content {
        border-left: 0 !important;
    }
    .slide-1 .main-banner-content *,
    .slide-2 .main-banner-content *,
    .slide-3 .main-banner-content *,
    .slide-4 .main-banner-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    @media only screen and (max-width: 375px) {
        .slide-2 .carousel-caption .container,
        .slide-4 .carousel-caption .container {
            padding-left: 10px !important;
            padding-right: 10px !important;
        }
        .slide-2 .main-banner-content h1 {
            font-size: 48px !important;
            line-height: 1.1em !important;
            white-space: nowrap !important;
        }
        .slide-4 .main-banner-content h1 {
            font-size: 58px !important;
            line-height: 1.1em !important;
        }
    }
}
