/* Nawe Smart Hero Widget Styles */


.smart-hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.smart-hero-left {
    flex: 1.1;
}

.smart-hero-right {
    flex: 0.9;
}

/* Badge */


.smart-hero-badge.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 3px;
    overflow: hidden;
    color: #fff;
    background: transparent;
    border: 1px solid #eee;
    font-size: 12px;
    text-transform: uppercase;
    padding-right: 20px;
}

.smart-hero-badge .badge-icon {
    background: #c6ff4d;
    color: #1a1a1a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 3px;
}

/* Title */
.smart-hero-title {
    margin-bottom: 30px;
}

.smart-hero-title span {
    color: #FF9F67;
}

.smart-hero-title .title-inline-icon {
    color: #2D3E33;
    vertical-align: middle;
    margin: 0 10px;
    font-size: 0.8em;
}

.smart-hero-title .title-inline-image {
    display: inline-block;
    width: 70px;
    height: 45px;
    border-radius: 25px;
    overflow: hidden;
    vertical-align: middle;
    margin: 0 10px;
    border: 2px solid #fff;
}

h1.smart-hero-title {
    font-size: 70px;
}

.smart-hero-title .title-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.smart-hero-description {
    color: #ffffff;
    margin-bottom: 45px;
    max-width: 550px;
}

/* Buttons */
.smart-hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.smart-hero-btn-primary {
    background: #000 !important;
    color: #fff !important;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.smart-hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    background: transparent;
    transition: all 0.3s ease;
}

.smart-hero-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    background: #222 !important;
}

.smart-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatReverse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.smart-hero-left>* {
    opacity: 0;
    animation: fadeInLeft 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.smart-hero-left .expert-badge {
    animation-delay: 0.1s;
}

.smart-hero-left .smart-hero-title {
    animation-delay: 0.2s;
}

.smart-hero-left .smart-hero-description {
    animation-delay: 0.3s;
}

.smart-hero-left .smart-hero-buttons {
    animation-delay: 0.4s;
}

.smart-hero-left .smart-hero-social {
    animation-delay: 0.5s;
}

.smart-hero-right {
    opacity: 0;
    animation: fadeInRight 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.3s;
}

/* Floating Badges Animation */
.float-badge.float-top-left {
    animation: float 4s ease-in-out infinite;
}

.float-badge.float-top-right {
    animation: floatReverse 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.float-badge.float-bottom-left {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.float-badge.float-bottom-right {
    animation: floatReverse 4.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Parallax Effect on Image */
.main-hero-img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.smart-hero-wrapper:hover .main-hero-img {
    transform: scale(1.02);
}

/* Social Proof */
.smart-hero-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.avatar-group {
    display: flex;
}

.avatar-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #002340;
    margin-left: -15px;
    overflow: hidden;
    background: #333;
}

.avatar-item:first-child {
    margin-left: 0;
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.2px;
    opacity: 0.9;
}

/* Right Side Image */
.smart-hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
}

.main-hero-img {
    width: 100%;
    min-height: 550px;
    object-fit: cover;
    border-radius: 12px !important;
    display: block;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3) !important;
    max-height: 650px;
}

/* Floating Badges Refined */
.float-badge {
    position: absolute;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.float-top-left {
    top: -30px;
    left: -45px;
    width: 85px;
    height: 85px;
    border-radius: 20px;
    justify-content: center;
    color: #FF9F67;
    font-size: 32px;
    padding: 0;
    border: 1px solid rgba(255, 159, 103, 0.15);
}

.float-top-right {
    top: 25px;
    right: 25px;
    border-radius: 50px;
    padding: 8px 18px 8px 8px;
    gap: 12px;
}

.float-top-right .float-icon {
    width: 32px;
    height: 32px;
    background: #4ADE80;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.float-top-right .float-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
}

.float-bottom-left {
    bottom: 25px;
    left: 25px;
    border-radius: 50px;
    padding: 8px 18px 8px 8px;
    gap: 12px;
}

.float-bottom-left .float-icon {
    width: 32px;
    height: 32px;
    background: #4ADE80;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.float-bottom-left .float-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
}

.float-bottom-right {
    bottom: -30px;
    right: -40px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    justify-content: center;
    font-size: 32px;
    background: #fff;
    color: #000;
}

.float-text {
    font-size: 14px;
    font-weight: 700;
}

/* Icon Fixes */
.float-badge i,
.float-badge svg {
    width: 2em;
    height: 2em;
    display: block;
}

.float-badge.float-top-left {
    background-color: #ffffffd9;
    border-color: #01598c;
}

.float-icon i,
.float-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsiveness */
@media (max-width: 1199px) {


    .smart-hero-container {
        gap: 40px;
    }
}

@media (max-width: 991px) {


    .smart-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }



    .smart-hero-description {
        margin: 0 auto 40px;
    }

    .smart-hero-buttons {
        justify-content: center;
    }

    .smart-hero-social {
        justify-content: center;
    }

    .smart-hero-image-wrap {
        margin: 0 auto;
    }

    h1.smart-hero-title {
        font-size: 50px;
    }
}

@media (max-width: 767px) {

    h1.smart-hero-title {
        font-size: 40px;
    }

    .smart-hero-container {
        padding: 0 20px;
    }

    .smart-hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .smart-hero-btn-primary,
    .smart-hero-btn-secondary {
        width: 100%;
        padding: 16px 20px;
    }

    .float-top-left {
        top: -20px;
        left: -10px;
        padding: 15px;
        font-size: 20px;
    }

    .float-bottom-right {
        bottom: -20px;
        right: -10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .float-text {
        font-size: 12px;
    }
}

/* --- New Hero Grid Styles --- */

.smart-hero-grid-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 550px;
    /* Adjusted for 4 cols */
    margin: 0 auto;
    padding: 0;
}

.hero-grid-item {
    aspect-ratio: 1 / 1;
    perspective: 1000px;
}

.hero-grid-card {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: transparent;
    /* No fallback needed if image covers all */
}

/* Flip Animation State */
.hero-grid-card.flipped {
    transform: rotateY(360deg);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.hero-grid-card:hover .card-inner img {
    transform: scale(1.05);
}

/* Responsive Grid */
@media (max-width: 991px) {
    .smart-hero-grid-wrap {
        max-width: 400px;
    }
}

@media (max-width: 575px) {
    .smart-hero-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}