﻿/* ================= Default Page Scoped CSS ================= */
.default-page-wrapper .top-section {
    margin-top: 5px;
}

/* Carousel */
/* Hero gradient same rakh lo */

/* Top Section Row - Equal Height */
.top-section.equal-height-row {
    min-height: 350px; /* Fixed height for consistency */
    margin-top: 1rem !important; /* Kam spacing */
}

#freshCarousel {
    border-radius: 12px;
    overflow: hidden;
    height: 350px !important; /* Exact match ads se */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

    #freshCarousel:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 30px rgba(0,0,0,0.25) !important;
    }

    #freshCarousel img {
        object-fit: cover;
        height: 350px !important;
        width: 100%;
        transition: transform 0.6s ease;
    }

    #freshCarousel:hover img {
        transform: scale(1.1); /* Zoom hover effect */
    }

.carousel-indicators {
    bottom: 15px;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.7);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .carousel-indicators button.active {
            background: #2e7d32;
            transform: scale(1.3);
        }

/* Ads Column */
.ads-fixed-right-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 350px; /* Match carousel */
}

.ads-card {
    flex: 1; /* Equal height sab cards */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

    .ads-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

    .ads-card img {
        height: 45%; /* Flexible */
        object-fit: cover;
    }

.card-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-success {
    background: #2e7d32;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-success:hover {
        background: #1b5e20;
        transform: scale(1.05);
    }

/* MOBILE - Wider & Compact */
@media (max-width: 991px) {
    .top-section.equal-height-row {
        min-height: 280px; /* Compact mobile */
        margin-top: 0.5rem !important;
    }

    #freshCarousel,
    #freshCarousel img {
        height: 280px !important;
    }

    .ads-fixed-right-wrapper {
        height: 280px;
        flex-direction: row; /* Mobile pe side-by-side */
        gap: 0.75rem;
    }

    .ads-card {
        flex: 1;
        min-height: 280px;
    }

        .ads-card img {
            height: 40%;
        }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem; /* Wider mobile */
    }

    .top-section.equal-height-row {
        min-height: 250px;
    }

    #freshCarousel,
    #freshCarousel img {
        height: 250px !important;
        border-radius: 8px;
    }
}


/* Ads - Complete Fixed */
.default-page-wrapper .ads-fixed-right-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .default-page-wrapper .ads-fixed-right-wrapper .ads-card {
        height: 350px; /* Fixed height */
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 12px;
        background: #fff;
        transition: all 0.3s ease;
    }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card img {
            height: 200px; /* Desktop bara image */
            object-fit: cover;
            width: 100%;
            flex-shrink: 0;
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .card-body {
            flex: 1;
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 150px;
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .card-text {
            font-size: 0.9rem;
            color: #555;
            flex-grow: 1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .btn {
            width: 100%;
            padding: 10px;
            font-size: 0.9rem;
            border-radius: 8px;
            flex-shrink: 0; /* Button kabhi shrink nahi hoga */
        }

/* MOBILE - Fixed Button Issue */
@media (max-width: 991px) {
    .default-page-wrapper .ads-fixed-right-wrapper .ads-card {
        height: 280px !important;
    }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card img {
            height: 130px !important; /* Mobile chota image */
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .card-body {
            padding: 10px !important;
            min-height: 150px !important;
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .card-text {
            font-size: 0.85rem !important;
            -webkit-line-clamp: 1 !important;
        }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card .btn {
            padding: 8px 12px !important;
            font-size: 0.88rem !important;
            min-height: 36px !important; /* Fixed button height */
        }
}

@media (max-width: 576px) {
    .default-page-wrapper .ads-fixed-right-wrapper {
        gap: 10px;
    }

        .default-page-wrapper .ads-fixed-right-wrapper .ads-card {
            height: 260px !important;
        }

            .default-page-wrapper .ads-fixed-right-wrapper .ads-card img {
                height: 120px !important;
            }
}




/* Blog Cards */
.default-page-wrapper .blog-wrapper .blog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.85rem;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
}

    .default-page-wrapper .blog-wrapper .blog-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        z-index: 2;
    }

.default-page-wrapper .blog-wrapper .blog-img-wrapper {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.default-page-wrapper .blog-wrapper .blog-card:hover .blog-img-wrapper {
    transform: scale(1.05);
}

.default-page-wrapper .blog-wrapper .blog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.default-page-wrapper .blog-wrapper .card-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.default-page-wrapper .blog-wrapper .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.default-page-wrapper .blog-wrapper .blog-card:hover .card-title {
    color: #198754; /* subtle green on hover */
}

.default-page-wrapper .blog-wrapper .card-text {
    font-size: 0.75rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.default-page-wrapper .blog-wrapper .btn {
    margin-top: auto;
    background-color: #28a745;
    border-color: #28a745;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .default-page-wrapper .blog-wrapper .btn:hover {
        background-color: white;
        color: #198754;
        border-color: #198754;
    }

.default-page-wrapper .video-icon {
    pointer-events: none;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.default-page-wrapper .blog-card:hover .video-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Desktop: row layout */
@media (min-width: 992px) {
    .default-page-wrapper .blog-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

        .default-page-wrapper .blog-wrapper .blog-card {
            flex: 0 0 calc(20% - 8px);
            max-width: calc(20% - 8px);
        }
}

/* Mobile: horizontal scroll + peek */
@media (max-width: 991px) {
    .default-page-wrapper .blog-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding-bottom: 10px;
    }

        .default-page-wrapper .blog-wrapper .blog-card {
            flex: 0 0 90%;
            scroll-snap-align: start;
            border: 2px solid #007bff;
            border-radius: 10px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

            .default-page-wrapper .blog-wrapper .blog-card:hover {
                transform: translateY(-3px) scale(1.02);
                box-shadow: 0 6px 15px rgba(0,0,0,0.2);
            }

            .default-page-wrapper .blog-wrapper .blog-card img {
                height: 200px;
                object-fit: cover;
            }

        .default-page-wrapper .blog-wrapper .card-body {
            padding: 0.4rem;
        }

        .default-page-wrapper .blog-wrapper .card-text {
            display: block;
            -webkit-line-clamp: unset;
            overflow: visible;
        }

        .default-page-wrapper .blog-wrapper .btn {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }

        .default-page-wrapper .blog-wrapper::-webkit-scrollbar {
            display: block;
            height: 8px;
        }

        .default-page-wrapper .blog-wrapper::-webkit-scrollbar-thumb {
            background-color: rgba(0,0,0,0.3);
            border-radius: 4px;
        }

        .default-page-wrapper .blog-wrapper::-webkit-scrollbar-track {
            background-color: rgba(0,0,0,0.1);
            border-radius: 4px;
        }
}
/* Section Heading */
.default-page-wrapper .section-title.stylish-heading {
    font-size: 1.75rem; /* heading size */
    font-weight: 700; /* bold */
    position: relative;
    display: inline-block;
    color: #198754; /* green color like nav/footer */
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

    /* Underline line below heading */
    .default-page-wrapper .section-title.stylish-heading::after {
        content: '';
        display: block;
        width: 50px; /* line width */
        height: 3px; /* line thickness */
        background-color: #198754; /* same green */
        margin-top: 5px;
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    /* Hover effect */
    .default-page-wrapper .section-title.stylish-heading:hover {
        color: #28a745; /* slightly lighter green on hover */
    }

        .default-page-wrapper .section-title.stylish-heading:hover::after {
            width: 70px; /* line grows on hover */
        }








