/* Video Container */
.banner-container {
    position: relative;
    background: #000;
}

/* Video Iframe */
.banner-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Controls */
.video-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.video-controls button {
    background: #dc7228;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-controls button:hover {
    transform: scale(1.1);
}

/* Search Section */
.search-section {
    position: relative;
    margin-top: -120px;
    z-index: 100;
}

.search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.search-select {
    height: 50px;
    border-radius: 50px !important;
    border: 1px solid #fb9e5d;
    background-color: #f8f9fa;
}

.location-search {
    position: relative;
}

.location-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc7228;
}

.search-btn {
    background: linear-gradient(90deg, #dc7228 50%, #000 100%);
    color: white;
    border: none;
    height: 50px;
    border-radius: 50px;
    padding: 0 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 114, 40, 0.3);
}

/* Categories Section */
.categories-section {
    background: url("https://www.finderspage.com/public/new_assets/assets/images/search-background.png");
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: #dc7228;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.category-arrow {
    color: #dc7228;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Skeleton Loader Styles */
.skeleton-loader {
    display: none; /* Hidden by default, shown when loading */
    margin-bottom: 25px;
}

.skeleton-image {
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px 8px 0 0;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-content {
    padding: 15px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.skeleton-line {
    height: 12px;
    background: #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-button {
    height: 30px;
    width: 100px;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Loading state */
body.loading .post-card {
    display: none;
}

body.loading .skeleton-loader {
    display: block;
}

/* Post Card Styles */
.post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 2px #fb9e5d;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: #fff;
    position: relative;
    height: 270px;
    border: 1px solid #fb9e5d;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.post-card .card-img-top {
    height: 140px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    position: relative;
    z-index: 1;
}

.post-card:hover .card-img-top {
    transform: scale(1.05);
}

.post-card .card-body {
    padding: 15px;
    position: relative; /* Ensure content stays above image */
    z-index: 1;
}

.post-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .posted-date {
    font-size: 12px;
    font-weight: 400;
}

.post-card .btn-view {
    background: linear-gradient(90deg, rgba(220, 114, 40, 1) 50%, #000 100%);
    height: 28px;
    padding: 4px 8px;
    border-radius: 35px;
    border: 0px;
    box-shadow: none;
    line-height: 20px;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.post-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.post-card .featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card .featured-badge::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 33px;
    top: 0;
    left: -0.5px;
    padding: 0 0 7px;
    background: inherit;
    border-radius: 5px 0 0 5px;
}

.post-card .featured-badge::after {
    content: "";
    position: absolute;
}

.bumped-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 80px;
    overflow: hidden;
    z-index: 3;
}

.ribbon-text {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #000;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    transform-origin: top right;
    transform: rotate(90deg) translateX(100%);
    text-transform: uppercase;
    white-space: nowrap;
}

.ribbon-text::before {
    content: "";
    position: absolute;
    top: 0;
    right: -6px;
    width: 6px;
    height: 100%;
    background-color: #000;
}

/* Loading State */
.loading .post-card {
    display: none;
}

.loading .skeleton-loader {
    display: block;
}

.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.calendar-card {
    background: #000;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.calendar-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.event-btn {
    height: 40px;
    background: linear-gradient(90deg, rgba(220, 114, 40, 1) 70%, #000 100%);
    border-radius: 35px;
    width: 167px;
    color: #fff !important;
    border: 0;
    outline: 0;
    line-height: 27px;
    padding: 6px 10px;
    font-size: 16px !important;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    min-height: 500px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #212529;
    font-weight: 700;
}

.testimonial-card {
    background: linear-gradient(#dc7228, #00000080);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    min-height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin: 0 15px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-icon {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    min-height: 80px;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    margin: 0 auto 1rem;
}

.testimonial-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #00000080;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #adb5bd;
    border: none;
}

.carousel-indicators button.active {
    background-color: #dc7228;
}

@media (max-width: 767.98px) {
    .video-controls {
        right: 15px;
        bottom: 10px;
    }

    .video-controls button {
        width: 30px;
        height: 30px;
    }

    .video-controls button i {
        font-size: 16px;
    }

    .search-section {
        margin: 0;
    }
    
    
    .search-card {
        padding: 1rem;
    }
    
    .search-select, .search-btn {
        height: 45px;
    }

    .event-card {
        height: 300px !important;
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }

    .post-card .featured-badge,
    .bumped-badge {
        transform: scale(0.8);
        transform-origin: top left;
    }

    .post-card .featured-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .post-card .featured-badge::before {
        width: 5px;
        height: 25px;
        left: 0;
    }

    .bumped-badge {
        top: -1px;
        right: -5px;
        width: 25px;
        height: 60px;
    }

    .ribbon-text {
        font-size: 0.7rem;
        transform: rotate(90deg) translateX(90%);
    }

    .ribbon-text::before {
        right: -4px;
        width: 4px;
    }
}

@media (max-width: 575.98px) {
    .category-card {
        padding: 1.5rem 1rem;
    }

    .btn-view {
        height: 28px;
    }
}