.blog-content h3,
.blog-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-section {
    padding: 2rem 1rem;
    background: #f8f9fa;
    min-height: 100vh;
}

    .products-section h2 {
        text-align: center;
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 3rem;
        font-weight: 700;
        position: relative;
    }

        .products-section h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(45deg, #e91e63, #ff5722);
            border-radius: 2px;
        }

.updates-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: 0.4s;
    cursor: pointer;
    position: relative;
    height: fit-content;
}

    .blog-card.grid-card {
        width: 100%;
        padding: 1rem;
    }

    .blog-card:not(.grid-card) {
        min-width: 260px;
        max-width: 260px;
        padding: 10px;
    }

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

    .blog-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .blog-card:hover::before {
        opacity: 1;
    }

    .blog-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.4s;
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: 1.5s infinite loading;
    }

    .blog-card:hover img {
        transform: scale(1.05);
    }

.blog-content {
    padding: 0;
    position: relative;
}

    .blog-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: #2c3e50;
        line-height: 1.4;
        font-weight: 600;
        min-height: 2.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .blog-content p {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        min-height: 4.8rem;
    }

.read-more-link {
    color: #ff7961;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

    .read-more-link::after {
        content: "→";
        transition: transform 0.3s;
    }

    .read-more-link:hover {
        color: #ff7961;
    }

        .read-more-link:hover::after {
            transform: translateX(5px);
        }

.store-logo {
    margin: 8px 0px 5px 30px;
}

#blog-header {
    margin: 20px 0px 0px 22px;
}

@media (max-width: 1400px) {
    .updates-scroll {
        max-width: 1200px;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 1199px) {
    .updates-scroll {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        gap: 1.5rem;
    }

    .products-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .updates-scroll {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 1.2rem;
        padding: 1rem;
    }

    .products-section {
        padding: 1.5rem 0.5rem;
    }

        .products-section h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
        }

    .blog-content {
        padding: 1.5rem;
    }

        .blog-content h3 {
            font-size: 1.2rem;
        }
}

@media (max-width: 767px) {
    .updates-scroll {
        gap: 1rem;
        padding: 0.5rem;
    }

    .blog-card img {
        height: 180px;
    }

    .blog-content {
        padding: 1.2rem;
    }

        .blog-content h3 {
            font-size: 1.1rem;
            min-height: 2.2rem;
        }

        .blog-content p {
            font-size: 0.9rem;
            min-height: 4rem;
        }
}

@media (max-width: 575px) {
    .updates-scroll {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1.5rem;
        padding: 1rem;
    }

    .products-section {
        padding: 1rem 0.5rem;
    }

        .products-section h2 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

    .blog-card {
        max-width: 100%;
    }

        .blog-card img {
            height: 200px;
        }

    .blog-content {
        padding: 1.5rem;
    }

        .blog-content h3 {
            font-size: 1.2rem;
            min-height: auto;
            -webkit-line-clamp: unset;
            line-clamp: unset;
        }

        .blog-content p {
            font-size: 0.95rem;
            min-height: auto;
            -webkit-line-clamp: unset;
            line-clamp: unset;
        }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.blog-card:focus {
    outline: #ff7961 solid 3px;
    outline-offset: 2px;
}

.read-more-link:focus {
    outline: #ff7961 solid 2px;
    outline-offset: 2px;
    border-radius: 3px;
}

@media print {
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

        .blog-card:hover {
            transform: none;
        }
}
/* Blog page action buttons */
.nav-container {
    position: relative;
    min-height: 74px;
}

.nav-right {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.top-action-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef4ff 0%, #e7f0ff 100%);
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

    .view-details-btn i {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        background: rgba(255, 255, 255, 0.92);
        color: #2563eb;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        transition: transform 0.25s ease;
    }

    .view-details-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    }

        .view-details-btn:hover i {
            transform: scale(1.05);
        }

    .view-details-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        left: -120%;
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100% );
        transform: skewX(-18deg);
        transition: left 0.7s ease;
    }

    .view-details-btn:hover::before {
        left: 140%;
    }

#viewwebsitebtn {
    background: linear-gradient(135deg, #eafaf3 0%, #ddf7e8 100%);
    color: #16a34a;
}

    #viewwebsitebtn i {
        color: #16a34a;
    }

.action-icons {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

    .action-icons .icon-btn {
        background: transparent;
        border: none;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        position: relative;
        overflow: visible;
        color: #666;
        box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
    }

        .action-icons .icon-btn i {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            font-size: 18px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06);
            color: inherit;
        }

        .action-icons .icon-btn:hover {
            transform: translateX(-6px) scale(1.03);
            box-shadow: 0 14px 30px rgba(16, 24, 40, 0.1);
        }

        .action-icons .icon-btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -110%;
            width: 70%;
            height: 100%;
            background: linear-gradient( 120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100% );
            transform: skewX(-18deg);
            transition: 0.7s;
        }

        .action-icons .icon-btn:hover::before {
            left: 140%;
        }

        .action-icons .icon-btn:nth-child(1) {
            background: #e7f8ef;
            color: #16a34a;
        }

        .action-icons .icon-btn:nth-child(2) {
            background: #eef2ff;
            color: #4f46e5;
        }

        .action-icons .icon-btn:nth-child(3) {
            background: #fdeef5;
            color: #db2777;
        }

        .action-icons .icon-btn:nth-child(4) {
            background: #eafaf9;
            color: #0891b2;
        }

        .action-icons .icon-btn:nth-child(5) {
            background: #fff4e8;
            color: #ea580c;
        }

.mobile-call-btn {
    display: none;
}

.profile-name {
    padding: 0 95px 0 20px;
}


@media (max-width: 768px) {
    .profile-name {
        display: none;
    }

    .nav-right {
        top: 12px;
        right: 10px;
        gap: 6px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .top-action-links {
        gap: 6px;
        flex-wrap: wrap;
    }

    .view-details-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .view-details-btn {
        padding: 7px 10px;
        font-size: 11px;
    }

        .view-details-btn i {
            width: 20px;
            height: 20px;
            font-size: 10px;
        }

    .action-icons {
        display: none !important;
    }

        .action-icons .icon-btn {
            width: 56px;
            height: 56px;
        }

            .action-icons .icon-btn i {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

    .mobile-call-btn {
        position: fixed;
        bottom: 22px;
        right: 20px;
        width: 72px;
        height: 72px;
        border: none;
        border-radius: 50%;
        background: #e7f8ef;
        color: #16a34a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        cursor: pointer;
        z-index: 999999;
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px rgba(34,197,94,0.22), inset 0 1px 0 rgba(255,255,255,0.9);
        transition: all 0.35s ease;
        animation: softPulse 2s infinite;
    }

        .mobile-call-btn i {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg,#16a34a,#22c55e);
            color: #fff;
            box-shadow: 0 6px 18px rgba(34,197,94,0.35);
            animation: shakePhone 1.4s infinite;
        }

    .store-logo {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        object-fit: contain;
        border: 2px solid #eee;
        float: left;
        margin: 0px 0px 0px 0px;
    }

    #blog-header {
        margin: 0px 0px 0px 22px;
    }
}
