.hero {
    max-width: 1300px;
    background-color: white;
    padding: 60px 0;
    margin: 20px 0;
    border-radius: 8px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #e53935;
    color: white;
}

.btn-secondary {
    background-color: #333;
    color: white;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trending-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e53935;
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
}

.product-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 500px;
}

.product-item {
    background-color: #333;
    border-radius: 12px;
    aspect-ratio: 1;
}

.product-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.product-item:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
    aspect-ratio: 2/1;
}

.product-item:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    aspect-ratio: 2/1;
}

.product-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

.product-item:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.product-item:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
}

.product-item:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 80px;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* Tablet View (768px ) */
@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 30px 20px !important;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 15px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .feature-text {
        font-size: 13px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .features {
        /* grid-template-columns: 1fr !important; */
        gap: 15px !important;
        padding: 20px 15px !important;
    }

    .feature {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        min-height: 70px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .feature-text {
        font-size: 15px;
    }
}

/* Small Mobile View (360px ) */
@media (max-width: 360px) {
    .features {
        padding: 15px 10px !important;
    }

    .feature {
        padding: 12px;
        gap: 10px;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Section Titles */
.section-title {
    font-size: 36px;
    margin: 60px 0 40px 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-bottom: 60px;
}

.carousel-wrapper {
    overflow: hidden;
    padding: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background-color: #e53935;
    color: white;
    border-color: #e53935;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Two Column Layout */
/* .two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.column-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
}

.column-title {
    font-size: 28px;
    margin-bottom: 30px;
} */

.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 250px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
}


.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 24px;
    color: #e53935;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    margin-top: auto;
    /* 🔥 MAGIC LINE */
}


.btn-add-to-cart:hover {
    background-color: #444;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
}

/* Bestsellers */
.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bestseller-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.bestseller-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e53935;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.bestseller-content {
    text-align: center;
}

.bestseller-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bestseller-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

.bestseller-label {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

/* App Download Banner */
.app-banner {
    max-width: 1300px !important;
    background-color: #e53935;
    color: white;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.app-banner h2 {
    font-size: 32px;
}

.btn-download {
    background-color: white;
    color: #e53935;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .two-column-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 20px 0 0 0;
        flex-basis: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        min-width: 200px;
    }

    .two-column-section {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bestsellers-grid {
        grid-template-columns: 1fr;
    }

    .app-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .product-card {
        min-width: calc(100vw - 100px);
    }

    .carousel-wrapper {
        padding: 0 10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .header-nav {
        gap: 15px;
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
        margin-left: 0px !important;
    }
}

.product-image {
    width: 250px;
    height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.category-card,
.bestseller-card {
    text-decoration: none;
    color: inherit;
}


.category-card:hover,
.category-card:focus {
    text-decoration: none;
    color: inherit;
}

.two-column-section {
    display: flex;
    gap: 30px;
    padding: 30px 20px;
    max-width: 1300px !important;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.column-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    /* Important */
    min-width: 0;
    /* Important - flex item को shrink करने देता है */
}

.column-section:first-child {
    flex: 0 0 40%;
    max-width: 40%;
    overflow: hidden;
    /* Content overflow control */
}



/* Carousel/Products container को fix करें */
.column-section:last-child>* {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    /* Horizontal scroll prevent करेगा */
}





/* Mobile Responsive */
@media (max-width: 768px) {
    .two-column-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .column-section:first-child,
    .column-section:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.column-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    /* important */
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;
    /* 🔥 10% rounded corners */
    display: block;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    line-height: 1.4;
}

/* Bestsellers Carousel */
.bestsellers-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}


/* इसकी जगह ये add करें: */
.bestsellers-grid {
    display: flex;
    gap: 20px;
    flex: 1;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    /* ADD THIS - सिर्फ visible area */
    position: relative;
    width: 100%;
}

/* Scrollbar hide करें */
.bestsellers-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

/* Carousel wrapper में overflow control */
.bestsellers-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    overflow: hidden;
    /* Important - wrapper ही overflow control करेगा */
}

/* Products container fixed width रखेगा */
.column-section:last-child {
    flex: 0 0 60%;
    max-width: 60%;
    width: 60%;
    overflow: visible;
    /* Change from hidden to visible */
}





.bestsellers-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bestsellers-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}



.bestseller-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.bestseller-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.bestseller-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bestseller-image {
    width: 130px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bestseller-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    min-height: 40px;
}

.bestseller-price {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin: 10px 0;
}

.stars {
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 2px;
}

.bestseller-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bestseller-nav-btn:hover {
    background: #e53935;
    color: white;
    border-color: #e53935;
}

/* Tablet - Large (769px - 1024px) */
@media (max-width: 1024px) {
    .two-column-section {
        gap: 20px;
        padding: 20px 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .bestseller-card {
        flex: 0 0 200px;
        min-width: 200px;
    }
}

/* Tablet - Medium (769px - 992px) */
@media (max-width: 992px) {
    .two-column-section {
        flex-direction: column;
    }

    .column-section:first-child,
    .column-section:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* Mobile - Large (481px - 768px) */
@media (max-width: 768px) {
    .two-column-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .column-section {
        padding: 20px;
    }

    .column-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-name {
        font-size: 13px;
    }

    .bestseller-card {
        flex: 0 0 180px;
        min-width: 180px;
        padding: 15px;
    }

    .bestseller-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Mobile - Small (up to 480px) */
@media (max-width: 480px) {
    .two-column-section {
        padding: 15px 10px;
        gap: 20px;
    }

    .column-section {
        padding: 18px;
        border-radius: 10px;
    }

    .column-title {
        font-size: 18px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-icon {
        width: 100px;
        height: 100px;
    }

    .category-name {
        font-size: 12px;
    }

    .bestsellers-carousel-wrapper {
        gap: 10px;
    }

    .bestseller-card {
        flex: 0 0 160px;
        min-width: 160px;
        padding: 12px;
    }

    .bestseller-image {
        width: 100px;
        height: 80px;
    }

    .bestseller-name {
        font-size: 13px;
        min-height: 35px;
    }

    .bestseller-price {
        font-size: 16px;
    }

    .stars {
        font-size: 16px;
    }

    .bestseller-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .bestseller-card {
        flex: 0 0 140px;
        min-width: 140px;
    }
}

/* बेस्टसेलर्स कैरोसेल रैपर */
.bestsellers-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* नया कंटेनर जो सिर्फ visible area दिखाएगा */
.bestsellers-container {
    flex: 1;
    overflow: hidden;
    /* सिर्फ यहाँ overflow hidden */
    width: 100%;
    position: relative;
}

/* ग्रिड जो products को hold करेगा */
.bestsellers-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
    padding: 10px 5px;
    width: max-content;
    /* Content के according width */
}

/* कार्ड स्टाइल */
.bestseller-card {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    text-decoration: none;
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

/* बटन स्टाइल */
.bestseller-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
    /* बटन हमेशा ऊपर रहे */
}

/* कॉलम सेक्शन में overflow visible रखें */
.column-section:last-child {
    flex: 0 0 60%;
    max-width: 60%;
    overflow: visible !important;
    /* Important */
}

@media (max-width: 768px) {
    .bestseller-card {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .bestsellers-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bestseller-card {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .bestsellers-carousel-wrapper {
        gap: 10px;
    }
}

/* Blog Section Styles */
.blog_container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 15px;
    overflow: hidden;
}

.blog_title {
    text-align: center;
    font-size: 3rem;
    color: #333;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.blog_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e0e0e0;
}

.blog_carousel_wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    padding: 60px 0 30px;
}

.blog_carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.blog_card {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.blog_card_inner {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.blog_card_inner:hover {
    transform: translateY(-10px);
}

/* FIXED: Image height for all screens */
.blog_image {
    width: 100%;
    height: 250px;
    /* Default height - reduced from 300px */
    object-fit: cover;
    object-position: center;
}

.blog_content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog_category {
    display: inline-block;
    background: #e53935;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.blog_heading {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog_description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog_author {
    color: #888;
    font-size: 0.9rem;
}

.blog_date {
    color: #888;
    font-size: 0.9rem;
}

.blog_read_more {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: #e53935;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog_read_more:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
    background: #c62828;
}

.blog_controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
    z-index: 10;
}

.blog_btn {
    background: white;
    border: 2px solid #e53935;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #e53935;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog_btn:hover {
    background: #e53935;
    color: white;
    transform: scale(1.1);
}

.blog_dots {
    display: none;
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1023px) {
    .blog_card {
        flex: 0 0 50%;
        width: 50%;
    }

    .blog_image {
        height: 220px;
        /* Reduced for tablet */
    }

    .blog_heading {
        font-size: 1.5rem;
    }

    .blog_content {
        padding: 25px;
    }

    .blog_controls {
        padding: 0 15px;
    }

    .blog_btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Desktop View */
@media (min-width: 1024px) {
    .blog_card {
        flex: 0 0 33.333%;
        width: 33.333%;
    }

    .blog_image {
        height: 280px;
        /* Slightly reduced for desktop */
    }
}

/* Mobile View - IMAGE HEIGHT FIXED */
@media (max-width: 767px) {

    /* Card ko full width dikhane ke liye */
    .blog_card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 10px;
    }

    /* Card inner ko responsive banane ke liye */
    .blog_card_inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* Image height mobile ke liye adjust */
    .blog_image {
        height: 180px !important;
        max-height: 200px;
    }

    /* Controls mobile ke liye fix */
    .blog_controls {
        padding: 0 5px;
    }

    .blog_btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Next button right side pe */
    .blog_btn.next {
        margin-left: auto;
    }

    /* Carousel wrapper padding adjust */
    .blog_carousel_wrapper {
        padding: 40px 0 20px;
    }

    /* Title mobile ke liye */
    .blog_title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }
}

/* Extra small devices (iPhone SE etc.) */
@media (max-width: 375px) {
    .blog_image {
        height: 150px !important;
    }

    .blog_title {
        font-size: 1.5rem;
    }

    .blog_btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .blog_card_inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
}

/* Small Mobile Devices - Extra small screens */
@media (max-width: 480px) {
    .blog_container {
        padding: 20px 5px;
    }

    .blog_title {
        font-size: 1.6rem;

    }

    .blog_card {
        padding: 0 5px;
    }

    /* Even smaller image height for very small screens */
    .blog_image {
        height: 150px !important;
        /* और भी छोटी height */
    }

    .blog_heading {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .blog_content {
        padding: 15px;
    }

    .blog_description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .blog_meta {
        padding-top: 15px;
        font-size: 0.8rem;
    }

    .blog_read_more {
        padding: 8px 15px;
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .blog_controls {
        padding: 0 2px;
    }

    .blog_btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .blog_card_inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
}