/* ===================================
   About Mixed Layout Widget Styles
   =================================== */

.about-mixed-layout {
    position: relative;
}

.about-mixed-layout .section-header {
    margin-bottom: 60px;
}

.about-mixed-layout .section-subheading {
    display: inline-block;
    font-family: "Architects Daughter", cursive;
    font-size: clamp(1.125rem, calc(1.05rem + 0.1vw), 1.25rem); /* Responsive equivalent of 18px */
    font-weight: 400;
    color: var(--clr-theme-color, #dd9933);
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.about-mixed-layout .section-heading {
    font-size: clamp(3rem, calc(2.7rem + 0.6vw), 3.25rem); /* Responsive equivalent of 48px */
    font-weight: 900;
    color: #2c3b4c;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-mixed-layout .section-description {
    font-size: clamp(1rem, calc(0.875rem + 0.3vw), 1.125rem); /* Responsive equivalent of 16px */
    color: #666;
    /* max-width: 600px; */
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Images Styling */
.about-mixed-layout .item {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-mixed-layout .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-mixed-layout .item .wrap {
    position: relative;
    height: 100%;
}

.about-mixed-layout .item .img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 500px; /* Set fixed height for equal image heights */
}

.about-mixed-layout .item .img img {
    width: 100%;
    height: 100%; /* Changed from auto to 100% for equal heights */
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-mixed-layout .item:hover .img img {
    transform: scale(1.05);
}

.about-mixed-layout .item .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    border-radius: 0 0 10px 10px;
}

.about-mixed-layout .item .title h4 {
    font-size: clamp(1.25rem, calc(1.1rem + 0.2vw), 1.5rem); /* Responsive equivalent matching reference widget */
    margin-bottom: 5px;
    color: white;
}

.about-mixed-layout .item .title h6 {
    font-size: clamp(1rem, calc(0.875rem + 0.3vw), 1.125rem); /* Responsive equivalent matching reference widget */
    font-family: "Didact Gothic", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7); /* Updated to match reference widget opacity */
    position: relative;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.4;
}

/* Content Blocks Styling */
.about-mixed-layout .about-box {
    margin-top: 60px;
}

.about-mixed-layout .about-box .item {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.about-mixed-layout .about-box .item:hover {
    border-color: var(--clr-theme-color, #dd9933);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* No background color change needed - using dark text (#2c3b4c) on light background */
}

.about-mixed-layout .about-box .item .con h4 {
    font-size: clamp(1.25rem, calc(1.1rem + 0.2vw), 1.5rem); /* Responsive equivalent matching reference widget */
    color: #2c3b4c;
}

.about-mixed-layout .about-box .item .con h4 a {
    color: #2c3b4c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-mixed-layout .about-box .item .con h4 a:hover {
    color: var(--clr-theme-color, #dd9933);
}

/* Override link hover color when parent item is hovered */
.about-mixed-layout .about-box .item:hover .con h4 a:hover {
    color: var(--clr-theme-color, #dd9933);
}

.about-mixed-layout .about-box .item .con p {
    color: #727272; /* Updated to match reference widget color */
}

.about-mixed-layout .about-box .item:hover .con h4,
.about-mixed-layout .about-box .item:hover .con h4 a,
.about-mixed-layout .about-box .item:hover .con p {
    color: #2c3b4c !important;
    opacity: 1;
}


.about-mixed-layout .about-box .item .icon-2 {
    margin-top: 20px;
}

.about-mixed-layout .about-box .item .icon-2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--clr-theme-color, #dd9933);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-mixed-layout .about-box .item .icon-2 a:hover {
    background: #2c3b4c;
    transform: translateX(5px);
}

/* Dark Theme Support */
body.dark .about-mixed-layout .section-heading {
    color: #fff;
}

body.dark .about-mixed-layout .section-description {
    color: rgba(255, 255, 255, 0.8);
}

body.dark .about-mixed-layout .about-box .item {
    background: #2c3b4c;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .about-mixed-layout .about-box .item .con h4,
body.dark .about-mixed-layout .about-box .item .con h4 a {
    color: #fff;
}

body.dark .about-mixed-layout .about-box .item .con p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 991px) {
    .about-mixed-layout .item .img {
        height: 280px; /* Slightly reduced height for large tablet */
    }
}

@media (max-width: 768px) {
    /* Section heading now uses responsive clamp() - no override needed */

    .about-mixed-layout .item .title {
        padding: 20px 20px 20px;
    }

    /* Image block title now uses responsive clamp() - no override needed */

    .about-mixed-layout .item .img {
        height: 250px; /* Reduced height for tablet */
    }

    .about-mixed-layout .about-box .item {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    /* Content block heading now uses responsive clamp() - no override needed */
}

@media (max-width: 576px) {
    .about-mixed-layout .section-header {
        margin-bottom: 40px;
    }

    /* Section heading now uses responsive clamp() - no override needed */

    .about-mixed-layout .item .img {
        height: 220px; /* Further reduced height for mobile */
    }

    .about-mixed-layout .item .img img {
        min-height: 220px; /* Updated min-height to match container */
    }

    .about-mixed-layout .about-box {
        margin-top: 40px;
    }
}

/* ===================================
   About Services Mixed Layout Widget Styles (Enhanced Flexible System)
   =================================== */

.about-services-mixed-layout {
    position: relative;
    padding: 80px 0;
}

.about-services-mixed-layout .section-header {
    margin-bottom: 60px;
}

.about-services-mixed-layout .section-subheading {
    display: inline-block;
    font-family: "Architects Daughter", cursive;
    font-size: clamp(1.125rem, calc(1.05rem + 0.1vw), 1.25rem); /* Responsive equivalent of 18px */
    font-weight: 400;
    color: var(--clr-theme-color, #dd9933);
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.about-services-mixed-layout .section-heading {
    font-size: clamp(2rem, 2.625vw + 1rem, 2.625rem); /* Responsive equivalent of 48px */
    font-weight: 900;
    color: #2c3b4c;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-services-mixed-layout .section-description {
    font-size: clamp(1rem, calc(0.875rem + 0.3vw), 1.125rem); /* Responsive equivalent of 16px */
    color: #666;
    /* max-width: 600px; */
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout Blocks Section */
.about-services-mixed-layout .layout-blocks-section {
    margin-top: 0;
}

.about-services-mixed-layout .layout-row {
    margin-bottom: 60px;
}

.about-services-mixed-layout .layout-row:last-child {
    margin-bottom: 0;
}

.about-services-mixed-layout .layout-block {
    height: 100%;
    margin-bottom: 30px;
}

/* Image Block Styling */
.about-services-mixed-layout .image-block {
    height: 100%;
}

.about-services-mixed-layout .image-block-wrap {
    position: relative;
    height: 100%;
    min-height: 350px;
    border-radius: 10px;
    overflow: hidden;
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: #101010;
}

.about-services-mixed-layout.hover-enabled .image-block-wrap:hover {
    transform: scale(0.98);
}

.about-services-mixed-layout .image-block-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
}

.about-services-mixed-layout .image-block-img img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    margin: 0;
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
    background-size: cover;
    opacity: 1;
}

.about-services-mixed-layout .image-block-img:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgb(16, 16, 16);
    background: linear-gradient(
        0deg,
        rgba(16, 16, 16, 0.9528186274509804) 20%,
        rgba(16, 16, 16, 0) 75%
    );
}

.about-services-mixed-layout .image-block-content {
    position: absolute;
    bottom: 0px;
    padding: 30px 30px 30px 45px;
    transform: translateX(0);
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
}

.about-services-mixed-layout.hover-enabled .image-block-wrap:hover .image-block-content {
    transform: translateY(-10px);
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
}

.about-services-mixed-layout .image-block-title {
    color: #fff;
    font-size: clamp(1.25rem, calc(1.1rem + 0.2vw), 1.5rem); /* Converted from 24px */
    margin-bottom: 5px;
}

.about-services-mixed-layout .image-block-subtitle {
    font-size: clamp(1rem, calc(0.875rem + 0.3vw), 1.125rem); /* Responsive equivalent of 16px */
    font-family: "Didact Gothic", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.4;
}

.about-services-mixed-layout .image-block-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-decoration: none;
}

/* Content Block Styling */
.about-services-mixed-layout .content-block {
    height: 100%;
}

.about-services-mixed-layout .content-block-wrap {
    background-color: #313b4b0a;
    position: relative;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: 0.7s;
    border: none;
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100%;
    padding: 75px 30px 15px 30px;
    flex-grow: 1;
    justify-content: space-between;
}


/* About Services Mixed Layout card hover */

.about-services-mixed-layout.hover-enabled .content-block-wrap:hover {
    /* background-color: #4c492c; */
    border: 1px solid #ba7b22;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.about-services-mixed-layout .content-block-inner {
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-services-mixed-layout .content-block-heading {
    font-size: clamp(1.25rem, calc(1.1rem + 0.2vw), 1.5rem); /* Converted from 24px */
    color: #2c3b4c;
}

.about-services-mixed-layout .content-block-link {
    color: #2c3b4c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-services-mixed-layout .content-block-link:hover {
    color: var(--clr-theme-color, #dd9933);
}

.about-services-mixed-layout .content-block-text {
    color: #727272;
}

.about-services-mixed-layout .content-block-text p:hover {
    color: #ffffff;
}


.about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-inner {
    transform: translateY(-25px);
}

/* About Services Mixed Layout Text hover */

.about-services-mixed-layout.hover-enabled .content-block-wrap:hover p,
.about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-heading,
.about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-text,
.about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-link {
    color: #2c3b4c !important;
    opacity: 1;
}

.about-services-mixed-layout .content-block-action {
    margin-top: 20px;
}

.about-services-mixed-layout .content-block-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--clr-theme-color, #dd9933);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.about-services-mixed-layout .content-block-arrow:hover {
    background: #2c3b4c;
    transform: translateX(5px);
    color: white;
}

/* Dark Theme Support */
body.dark .about-services-mixed-layout .section-heading {
    color: #fff;
}

body.dark .about-services-mixed-layout .section-description {
    color: rgba(255, 255, 255, 0.8);
}

body.dark .about-services-mixed-layout .content-block-wrap {
    background-color: #2c3b4c;
}

body.dark .about-services-mixed-layout .content-block-heading,
body.dark .about-services-mixed-layout .content-block-link {
    color: #fff;
}

body.dark .about-services-mixed-layout .content-block-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design for About Services Mixed Layout */
@media (max-width: 1199px) {
    /* Section heading now uses responsive clamp() - no override needed */

    .about-services-mixed-layout .image-block-wrap {
        min-height: 300px;
        border-radius: 10px;
    }

    .about-services-mixed-layout .image-block-img {
        border-radius: 10px;
    }

    .about-services-mixed-layout .image-block-img img {
        min-height: 300px;
    }
}

@media (max-width: 991px) {
    .about-services-mixed-layout {
        padding: 60px 0;
    }

    .about-services-mixed-layout .section-header {
        margin-bottom: 50px;
    }

    /* Section heading now uses responsive clamp() - no override needed */

    .about-services-mixed-layout .layout-row {
        margin-bottom: 50px;
    }

    .about-services-mixed-layout .layout-block {
        margin-bottom: 30px;
    }

    .about-services-mixed-layout .image-block-wrap {
        margin-bottom: 20px;
    }

    .about-services-mixed-layout .image-block-content {
        padding: 30px 25px 20px 25px;
        transform: translateX(0);
    }

    /* Image block title now uses responsive clamp() - no override needed */

    .about-services-mixed-layout .content-block-wrap {
        padding: 65px 30px 25px 30px; /* Increased top padding to accommodate hover animation */
        margin-bottom: 30px;
    }

    /* Content block heading now uses responsive clamp() - no override needed */

    /* Tablet-specific hover animation adjustment */
    .about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-inner {
        transform: translateY(-20px); /* Reduced transform for tablet */
    }
}

@media (max-width: 767px) {
    .about-services-mixed-layout {
        padding: 50px 0;
    }

    .about-services-mixed-layout .section-header {
        margin-bottom: 40px;
    }

    /* Section heading now uses responsive clamp() - no override needed */

    .about-services-mixed-layout .layout-row {
        margin-bottom: 45px;
    }

    .about-services-mixed-layout .layout-block {
        margin-bottom: 30px;
    }

    .about-services-mixed-layout .image-block-wrap {
        min-height: 250px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .about-services-mixed-layout .image-block-img {
        border-radius: 10px;
    }

    .about-services-mixed-layout .image-block-img img {
        min-height: 250px;
    }

    .about-services-mixed-layout .image-block-content {
        padding: 25px 30px 20px 30px;
        transform: translateX(0);
    }

    /* Image block title and subtitle now use responsive clamp() - no overrides needed */

    .about-services-mixed-layout .content-block-wrap {
        padding: 60px 25px 20px 25px; /* Increased top padding to accommodate hover animation */
        margin-bottom: 30px;
    }

    /* Content block heading and text now use responsive clamp() - no overrides needed */

    .about-services-mixed-layout .content-block-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Mobile-specific hover animation adjustment */
    .about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-inner {
        transform: translateY(-15px); /* Further reduced transform for mobile */
    }
}

@media (max-width: 575px) {
    /* Section heading now uses responsive clamp() - no override needed */

    /* Section description now uses responsive clamp() - no override needed */

    .about-services-mixed-layout .image-block-wrap {
        min-height: 220px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .about-services-mixed-layout .image-block-img {
        border-radius: 10px;
    }

    .about-services-mixed-layout .image-block-img img {
        min-height: 220px;
    }

    .about-services-mixed-layout .image-block-content {
        padding: 20px 25px 15px 25px;
        transform: translateX(0);
    }

    /* Image block title now uses responsive clamp() - no override needed */

    .about-services-mixed-layout .content-block-wrap {
        padding: 55px 20px 18px 20px; /* Increased top padding to accommodate hover animation */
        margin-bottom: 25px;
    }

    /* Content block heading now uses responsive clamp() - no override needed */

    /* Small mobile-specific hover animation adjustment */
    .about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-inner {
        transform: translateY(-12px); /* Minimal transform for small mobile */
    }
}

/* Additional mobile spacing improvements */
@media (max-width: 480px) {
    .about-services-mixed-layout .layout-block {
        margin-bottom: 25px;
    }

    .about-services-mixed-layout .image-block-wrap {
        margin-bottom: 20px;
    }

    .about-services-mixed-layout .image-block-content {
        padding: 20px 20px 15px 20px;
    }

    .about-services-mixed-layout .content-block-wrap {
        margin-bottom: 25px;
        padding: 50px 15px 15px 15px; /* Increased top padding to accommodate hover animation */
    }

    /* Extra small mobile-specific hover animation adjustment */
    .about-services-mixed-layout.hover-enabled .content-block-wrap:hover .content-block-inner {
        transform: translateY(-10px); /* Very minimal transform for extra small mobile */
    }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .about-services-mixed-layout .featured-item,
    .about-services-mixed-layout .content-block-wrap {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .about-services-mixed-layout .featured-img img,
    .about-services-mixed-layout .content-block-image img {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .about-services-mixed-layout .content-block-arrow {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Responsive Row Break Support */
/* Desktop rows (≥992px) - Show only desktop layout */
@media (min-width: 992px) {
    .about-services-mixed-layout .layout-blocks-tablet,
    .about-services-mixed-layout .layout-blocks-mobile {
        display: none !important;
    }

    .about-services-mixed-layout .layout-blocks-desktop {
        display: block;
    }
}

/* Tablet rows (768px-991px) - Show only tablet layout */
@media (min-width: 768px) and (max-width: 991px) {
    .about-services-mixed-layout .layout-blocks-desktop,
    .about-services-mixed-layout .layout-blocks-mobile {
        display: none !important;
    }

    .about-services-mixed-layout .layout-blocks-tablet {
        display: block;
    }
}

/* Mobile rows (≤767px) - Show only mobile layout */
@media (max-width: 767px) {
    .about-services-mixed-layout .layout-blocks-desktop,
    .about-services-mixed-layout .layout-blocks-tablet {
        display: none !important;
    }

    .about-services-mixed-layout .layout-blocks-mobile {
        display: block;
    }
}

/* Ensure responsive row containers are properly initialized */
.about-services-mixed-layout .layout-blocks-desktop,
.about-services-mixed-layout .layout-blocks-tablet,
.about-services-mixed-layout .layout-blocks-mobile {
    width: 100%;
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .about-services-mixed-layout .featured-img img,
    .about-services-mixed-layout .content-block-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}