html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #fafafa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
    width: 100%;
    position: static !important;
    /* Fix potential absolute positioning */
    flex-shrink: 0;
}

.navbar {
    background-color: #fff;
    border-bottom: 1px solid #dbdbdb;
}

.feed-card {
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
}

.feed-card-header {
    display: flex;
    align-items: center;
    padding: 10px;
}

.feed-card-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.feed-card-body video {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

/* Ad Overlay Styles */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-content {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: 24px;
    max-width: 90%;
    width: 500px;
    text-align: center;
}

.ad-timer {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2 50%, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 24px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Premium Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    /* Adjusted padding */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Story Card Wrapper for grouping Image + Tags */
.story-card-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* Smoother transition */
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border */
    position: relative;
    /* For focus */
    overflow: hidden;
}

.story-card-wrapper:hover {
    transform: translateY(-5px);
    /* Lift up */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    border-color: rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.5rem;
    /* Ensure large icon */
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-3deg);
}

/* Explicit Color Variants */
.feature-card.card-blue .icon-wrapper {
    background: rgba(13, 110, 253, 0.1);
    /* Bootstrap Primary Tint */
    color: #0d6efd;
}

.feature-card.card-green .icon-wrapper {
    background: rgba(25, 135, 84, 0.1);
    /* Bootstrap Success Tint */
    color: #198754;
}

.feature-card.card-red .icon-wrapper {
    background: rgba(220, 53, 69, 0.1);
    /* Bootstrap Danger Tint */
    color: #dc3545;
}

.feature-card.card-purple .icon-wrapper {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.feature-card.card-pink .icon-wrapper {
    background: rgba(214, 51, 132, 0.1);
    color: #d63384;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.feature-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Story Meta Information */
.story-meta {
    font-size: 0.85rem;
    color: #8e8e8e;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-time-badge {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Modern Mention Badge */
.story-mention-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.story-mention-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: white;
}

.story-mention-badge i {
    margin-right: 4px;
    font-size: 0.9em;
}
/* Testimonial Section Custom Styles */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    background: #ffffff;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Make indicators visually distinct */
#testimonialCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #dee2e6;
    border: none;
    opacity: 0.8;
}

#testimonialCarousel .carousel-indicators .active {
    background-color: #0d6efd;
    transform: scale(1.2);
    opacity: 1;
}

/* Control buttons style adjustments */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    opacity: 0.8;
}
#testimonialCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1 !important;
    background-color: #000 !important;
}

