/**
 * Modern Cards & Footer Styles
 * Consistent Premium Text & Glassmorphism
 */

/* =========================================
   Feature Cards (About Section)
   ========================================= */
.feature-card-premium {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    border: 1px solid var(--bs-gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.feature-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.feature-card-premium:hover .feature-icon-box {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-gray-900);
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--bs-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-bs-theme="dark"] .feature-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .feature-card-premium:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .feature-title {
    color: #fff;
}

[data-bs-theme="dark"] .feature-desc {
    color: var(--bs-gray-300);
}


/* =========================================
   Article Cards (Premium Blog)
   ========================================= */
.article-card-premium {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--bs-gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.article-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.article-thumb {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.article-card-premium:hover .article-overlay {
    opacity: 0.6;
}

.article-card-premium:hover .article-thumb {
    transform: scale(1.02);
    /* Slight zoom on image container logic needs wrapper */
}

/* Badge on top of image */
.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--bs-gray-900);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--bs-gray-500);
    font-weight: 500;
}

.article-meta i {
    font-size: 0.9rem;
    color: var(--bs-primary);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bs-gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.article-card-premium:hover .article-title {
    color: var(--bs-primary);
}

.article-excerpt {
    color: var(--bs-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-footer {
    padding-top: 15px;
    border-top: 1px solid var(--bs-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 10px;
}

[data-bs-theme="dark"] .article-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .article-title {
    color: #fff;
}

[data-bs-theme="dark"] .article-excerpt {
    color: var(--bs-gray-300);
}

[data-bs-theme="dark"] .article-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* =========================================
   Horizontal Article Card (List View)
   ========================================= */
.article-card-horizontal {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--bs-gray-100);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    height: 100%;
}

@media (min-width: 768px) {
    .article-card-horizontal {
        flex-direction: row;
        height: 320px;
        /* Fixed height for consistency */
    }
}

.article-card-horizontal:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: transparent;
}

.article-thumb-horizontal {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .article-thumb-horizontal {
        width: 45%;
        height: 100%;
        flex-shrink: 0;
    }
}

.article-card-horizontal:hover .article-thumb-horizontal {
    transform: scale(1.02);
    /* Apply to inner div if wrapper used, or leave as is if no zoom needed on bg */
}

.article-content-horizontal {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.article-category-badge {
    display: inline-block;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
}

.article-title-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-horizontal:hover .article-title-large {
    color: var(--bs-primary);
}

.article-excerpt-horizontal {
    color: var(--bs-gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer-horizontal {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bs-gray-100);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--bs-primary);
    border-radius: 2px;
}

.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--bs-gray-600);
    background: #fff;
    /* Reset to white for cleaner look */
    border: 1px solid var(--bs-gray-100);
    border-radius: 16px;
    margin-bottom: 8px;
    /* Slightly tighter spacing */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cat-link:hover,
.cat-link.active {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #4facfe 100%);
    color: #fff;
    border-color: transparent;
    transform: translateX(8px);
    box-shadow: 0 8px 15px rgba(var(--bs-primary-rgb), 0.25);
}

.cat-link i {
    color: inherit;
    transition: none;
}

/* Icon color inherits from parent */

[data-bs-theme="dark"] .article-card-horizontal,
[data-bs-theme="dark"] .sidebar-widget {
    background: rgba(30, 30, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .article-title-large {
    color: #fff;
}

[data-bs-theme="dark"] .sidebar-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .cat-link {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--bs-gray-400);
}

[data-bs-theme="dark"] .cat-link:hover,
[data-bs-theme="dark"] .cat-link.active {
    color: #fff;
}

/* =========================================
   Modern Footer
   ========================================= */
.modern-footer {
    background: radial-gradient(circle at 50% 0%, #2c3144 0%, #1e1e2d 100%);
    color: #fff;
    padding-top: 80px;
    padding-bottom: 40px;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--bs-primary);
    transform: translateY(-3px);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #fff;
}

/* =========================================
   Article Detail Specifics
   ========================================= */

/* Bold Breadcrumbs */
.breadcrumb-bold .breadcrumb-item {
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--bs-gray-400);
}

.breadcrumb-bold .breadcrumb-item.active {
    color: var(--bs-primary) !important;
}

.breadcrumb-bold .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 0.8;
    color: var(--bs-gray-400);
}

/* Author Widget (Sidebar) */
.author-widget-card {
    background: #f1f1f4;
    /* Light gray background like reference */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: none;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-size: cover;
    background-position: center;
    background-color: var(--bs-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 2rem;
    font-weight: bold;
}

.author-name-large {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 5px;
}

.author-role {
    color: var(--bs-gray-500);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Related Article List Item */
.related-article-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bs-gray-100);
}

.related-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-thumb-sm {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.related-title-sm {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-dark);
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-title-sm:hover {
    color: var(--bs-primary);
}

/* Detail Header Elements */
.detail-category-badge {
    display: inline-block;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bs-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--bs-gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 40px;
}

[data-bs-theme="dark"] .author-widget-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .author-name-large,
[data-bs-theme="dark"] .detail-title,
[data-bs-theme="dark"] .related-title-sm {
    color: #fff;
}

/* =========================================
   App Section Redesign (Main Container)
   ========================================= */

.app-main-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.app-header-centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.app-search-container {
    position: relative;
    max-width: 500px;
    margin: 30px auto 0;
}

.app-search-input {
    width: 100%;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 18px 25px 18px 55px;
    font-size: 1rem;
    color: var(--bs-gray-800);
    transition: all 0.3s ease;
}

.app-search-input:focus {
    background: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.1);
    outline: none;
}

.app-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--bs-gray-400);
    transition: color 0.3s ease;
}

.app-search-input:focus+.app-search-icon {
    color: var(--bs-primary);
}

/* Dark Mode - App Search */
[data-bs-theme="dark"] .app-search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .app-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

[data-bs-theme="dark"] .app-search-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .app-search-icon {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-bs-theme="dark"] .app-search-input:focus+.app-search-icon {
    color: var(--bs-primary) !important;
}



/* Modern App Card */
.app-card-modern {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.app-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.app-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-card-modern:hover .app-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.app-title-modern {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 12px;
}

.app-desc-modern {
    font-size: 0.95rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.app-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bs-gray-100);
    color: var(--bs-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: flex-start;
    /* Left aligned as per typical design, or flex-end for right? Ref image had it maybe right or left. Let's stick left or right based on flow. */
}

.app-card-modern:hover .app-action-btn {
    background: var(--bs-primary);
    color: #fff;
    transform: rotate(-45deg);
    /* Arrow effect */
}

/* Dark Mode Overrides */

[data-bs-theme="dark"] .app-main-card {
    background: rgba(30, 30, 45, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .app-search-input {
    background: #151521;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .app-card-modern {
    background: #2b2b40;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .app-title-modern {
    color: #fff;
}

[data-bs-theme="dark"] .app-desc-modern {
    color: var(--bs-gray-300);
}

[data-bs-theme="dark"] .app-action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-bs-theme="dark"] .app-card-modern:hover .app-action-btn {
    background: var(--bs-primary);
}

/* =========================================
   Hero Section Redesign (Soft Blobs)
   ========================================= */

/* =========================================
   Hero Section Redesign (Dynamic Animated Blobs)
   ========================================= */

#hero {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Base Blob Style */
.hero-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.7;
    animation: float 10s infinite ease-in-out;
}

/* Animations */
@keyframes floatOne {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes floatTwo {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-30px, 50px) rotate(-10deg) scale(0.9);
    }

    66% {
        transform: translate(20px, -30px) rotate(5deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes floatThree {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, -20px) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Specific Blobs */
.hero-blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 221, 225, 0.8) 0%, rgba(238, 156, 167, 0.4) 100%);
    animation: floatOne 15s infinite ease-in-out;
}

.hero-blob-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 195, 252, 0.8) 0%, rgba(142, 197, 252, 0.4) 100%);
    animation: floatTwo 18s infinite ease-in-out;
}

.hero-blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0.4;
    filter: blur(60px);
    animation: floatThree 20s infinite ease-in-out;
}

/* Mesh Gradient Overlay (Optional dynamic texture) */
.hero-background-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 255, 255, 0.5) 0px, transparent 50%);
    pointer-events: none;
}

/* Dark Mode Overrides for Hero */
[data-bs-theme="dark"] #hero {
    background: transparent;
}

[data-bs-theme="dark"] .hero-blob {
    opacity: 0.3;
    /* Reduce opacity for dark mode */
}

[data-bs-theme="dark"] .hero-blob-1 {
    background: radial-gradient(circle, #ff0055 0%, #550022 100%);
}

[data-bs-theme="dark"] .hero-blob-2 {
    background: radial-gradient(circle, #5500ff 0%, #220055 100%);
}

[data-bs-theme="dark"] .hero-blob-3 {
    background: radial-gradient(circle, #00ffff 0%, transparent 100%);
}

[data-bs-theme="dark"] .hero-subtitle {
    color: #fff !important;
}

/* =========================================
   Glass Section & Simple Carousel
   ========================================= */

.glass-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10;
}

[data-bs-theme="dark"] .glass-section {
    background: rgba(30, 30, 45, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.carousel-snap {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Hide scrollbar for clean look but allow scroll */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    margin: 0 -15px;
    /* Negative margin to allow full bleed scroll on mobile */
    padding: 0 15px 20px 15px;
    /* Padding to compensate interaction */
}

.carousel-snap::-webkit-scrollbar {
    display: none;
}

.carousel-item-snap {
    min-width: 280px;
    width: 300px;
    /* Default width */
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .carousel-item-snap {
        width: 350px;
        scroll-snap-align: start;
    }

    /* On desktop, maybe standard grid? User asked for carousel. 
       Let's keep carousel but maybe align start. */
    .carousel-snap {
        scroll-padding-left: 0;
    }
}