/**
 * Home V2 Template - Modern Homepage Styles
 * Modern, responsive homepage design with engaging animations
 */

/* Container */
.ttb-home-v2-container {
    width: 100%;
    margin: 0 auto;
}

.ttb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.ttb-hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    transition: background 0.8s ease;
}


@media (max-width: 480px) {
    .ttb-hero-section {
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 60vh;
        display: flex;
        align-items: center;
        transition: background 0.8s ease;
        /* Add top padding to prevent header overlap */
        padding-top: 60px;
        /* Add bottom padding to prevent image cutoff */
        padding-bottom: 4rem;
    }
}

.ttb-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.ttb-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

.ttb-hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.ttb-hero-slide.slide-out-left {
    opacity: 0;
    transform: translateX(-30px);
    z-index: 1;
}

.ttb-hero-slide.slide-out-right {
    opacity: 0;
    transform: translateX(30px);
    z-index: 1;
}

.ttb-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
    min-height: 60vh;
}

.ttb-hero-text {
    color: white;
}

.ttb-hero-label {
    display: inline-block;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.ttb-hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ttb-hero-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.ttb-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ttb-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    text-align: center;
    justify-content: center;
}

.ttb-btn-primary {
    background: white;
    color: #333;
    border-color: white;
}

.ttb-btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ttb-btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.ttb-btn-secondary:hover {
    background: white;
    color: #333;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ttb-hero-visual {
    position: relative;
}

.ttb-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ttb-hero-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.ttb-hero-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ttb-hero-placeholder p {
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* Hero Navigation */
.ttb-hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    /* Ensure dots don't get cut off */
    margin-bottom: 0.5rem;
}

.ttb-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttb-hero-dot.active,
.ttb-hero-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Hero Controls */
.ttb-hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 10;
}

.ttb-hero-prev,
.ttb-hero-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.ttb-hero-section:hover .ttb-hero-prev,
.ttb-hero-section:hover .ttb-hero-next {
    opacity: 1;
    transform: scale(1);
}

.ttb-hero-prev:hover,
.ttb-hero-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ttb-hero-prev:active,
.ttb-hero-next:active {
    transform: scale(0.95);
}

/* Hide controls on small screens */
@media (max-width: 768px) {
    .ttb-hero-controls {
        display: none;
    }
}

/* Section Headers */
.ttb-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ttb-section-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
    color: #333;
}

.ttb-section-header p {
    font-size: var(--font-size-lg);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Cards */
.ttb-features-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.ttb-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ttb-feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.ttb-feature-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.ttb-feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-medium);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ttb-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ttb-feature-card-link:hover .ttb-feature-card::before {
    transform: scaleX(1);
}

.ttb-feature-card-link:hover .ttb-feature-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ttb-feature-card[data-color="#1E88E5"] { --card-color: #1E88E5; }
.ttb-feature-card[data-color="#43A047"] { --card-color: #43A047; }
.ttb-feature-card[data-color="#FB8C00"] { --card-color: #FB8C00; }
.ttb-feature-card[data-color="#00ACC1"] { --card-color: #00ACC1; }
.ttb-feature-card[data-color="#8E24AA"] { --card-color: #8E24AA; }
.ttb-feature-card[data-color="#D32F2F"] { --card-color: #D32F2F; }

.ttb-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--card-color, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.ttb-feature-card-link:hover .ttb-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.ttb-feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.75rem;
    color: #333;
}

.ttb-feature-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ttb-feature-count {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--card-color, #333);
    margin-top: 0.5rem;
}

/* Content Showcase */
.ttb-content-showcase {
    padding: 4rem 0;
    background: white;
}

.ttb-content-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ttb-content-card {
    background: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ttb-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ttb-content-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.ttb-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ttb-content-card:hover .ttb-content-image img {
    transform: scale(1.05);
}

.ttb-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ttb-content-card:hover .ttb-content-overlay {
    opacity: 1;
}

.ttb-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ttb-play-btn:hover {
    transform: scale(1.1);
    background: #667eea;
    color: white;
}

.ttb-content-info {
    padding: 1.5rem;
}

.ttb-content-type {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ttb-content-info h3 {
    margin-bottom: 0.5rem;
}

.ttb-content-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-content-info h3 a:hover {
    color: #667eea;
}

/* User Showcase Section */
.ttb-user-showcase-section {
    --ttb-user-showcase-primary-color: #667eea;
    --ttb-user-showcase-secondary-color: #764ba2;
    --ttb-user-showcase-accent-color: #f8f9fa;
    --ttb-user-showcase-text-color: #333;
    --ttb-user-showcase-light-text: #666;
    --ttb-user-showcase-border-color: #e9ecef;
    --ttb-user-showcase-hover-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    --ttb-user-showcase-transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    --ttb-user-showcase-nav-bg: rgba(255, 255, 255, 0.9);
    --ttb-user-showcase-nav-border: rgba(102, 126, 234, 0.2);
    --ttb-user-showcase-nav-hover-bg: rgba(255, 255, 255, 1);
    --ttb-user-showcase-nav-hover-border: rgba(102, 126, 234, 0.4);
    --ttb-user-showcase-nav-icon: #666;
    --ttb-user-showcase-nav-hover-icon: #667eea;
    --ttb-user-showcase-dot-bg: rgba(255, 255, 255, 0.6);
    --ttb-user-showcase-dot-border: rgba(102, 126, 234, 0.3);
    --ttb-user-showcase-dot-hover-bg: rgba(255, 255, 255, 0.8);
    --ttb-user-showcase-dot-hover-border: rgba(102, 126, 234, 0.5);
    --ttb-user-showcase-dot-active-bg: #667eea;
    --ttb-user-showcase-dot-active-border: #667eea;
    --ttb-user-showcase-dot-active-inner: #fff;
    
    padding: 4rem 0;
    background: white;
    position: relative;
}

.ttb-user-showcase-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 45px;
}

.ttb-user-showcase-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ttb-user-showcase-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
    padding: 12px 0px 12px 4px
}

.ttb-user-showcase-card {
    flex: 0 0 200px;
    min-width: 200px;
    width: 200px;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--ttb-user-showcase-border-color);
    transition: var(--ttb-user-showcase-transition);
    position: relative;
    overflow: visible;
    margin: 0.5rem 0;
}

.ttb-user-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: linear-gradient(90deg, var(--ttb-user-showcase-primary-color), var(--ttb-user-showcase-secondary-color));
    transform: scaleX(0);
    transition: var(--ttb-user-showcase-transition);
}

.ttb-user-showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ttb-user-showcase-hover-shadow);
    border-color: var(--ttb-user-showcase-primary-color);
    z-index: 10;
}

.ttb-user-showcase-card:hover::before {
    transform: scaleX(1);
}

.ttb-user-showcase-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.ttb-user-showcase-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ttb-user-showcase-accent-color);
    transition: var(--ttb-user-showcase-transition);
}

.ttb-user-showcase-card:hover .ttb-user-showcase-avatar img {
    border-color: var(--ttb-user-showcase-primary-color);
    transform: scale(1.05);
}

.ttb-user-showcase-activity-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid white;
    animation: ttb-user-showcase-pulse 2s infinite;
}

@keyframes ttb-user-showcase-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.ttb-user-showcase-info {
    text-align: center;
}

.ttb-user-showcase-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--ttb-user-showcase-text-color);
}

.ttb-user-showcase-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--ttb-user-showcase-transition);
}

.ttb-user-showcase-name a:hover {
    color: var(--ttb-user-showcase-primary-color);
}

.ttb-user-showcase-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ttb-user-showcase-primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ttb-user-showcase-bio {
    font-size: 0.8rem;
    color: var(--ttb-user-showcase-light-text);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.ttb-user-showcase-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ttb-user-showcase-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--ttb-user-showcase-light-text);
    background: var(--ttb-user-showcase-accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.ttb-user-showcase-stat i {
    font-size: 0.7rem;
    color: var(--ttb-user-showcase-primary-color);
}

.ttb-user-showcase-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
    z-index: 20;
}

.ttb-user-showcase-prev,
.ttb-user-showcase-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--ttb-user-showcase-border-color);
    color: var(--ttb-user-showcase-text-color);
    cursor: pointer;
    transition: var(--ttb-user-showcase-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.ttb-user-showcase-section:hover .ttb-user-showcase-prev,
.ttb-user-showcase-section:hover .ttb-user-showcase-next {
    opacity: 1;
}

.ttb-user-showcase-prev:hover,
.ttb-user-showcase-next:hover {
    background: var(--ttb-user-showcase-primary-color);
    color: white;
    border-color: var(--ttb-user-showcase-primary-color);
    transform: scale(1.05);
}

.ttb-user-showcase-prev:active,
.ttb-user-showcase-next:active {
    transform: scale(0.95);
}

/* User Showcase Navigation Controls - positioned outside slider */
.ttb-user-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ttb-user-showcase-nav-bg);
    border: 2px solid var(--ttb-user-showcase-nav-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ttb-user-showcase-nav:hover {
    background: var(--ttb-user-showcase-nav-hover-bg);
    border-color: var(--ttb-user-showcase-nav-hover-border);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ttb-user-showcase-nav-prev {
    left: -60px;
}

.ttb-user-showcase-nav-next {
    right: -60px;
}

.ttb-user-showcase-nav svg {
    width: 20px;
    height: 20px;
    fill: var(--ttb-user-showcase-nav-icon);
    transition: fill 0.3s ease;
}

.ttb-user-showcase-nav:hover svg {
    fill: var(--ttb-user-showcase-nav-hover-icon);
}

/* Navigation Dots */
.ttb-user-showcase-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 12px;
}

.ttb-user-showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ttb-user-showcase-dot-bg);
    border: 2px solid var(--ttb-user-showcase-dot-border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ttb-user-showcase-dot:hover {
    background: var(--ttb-user-showcase-dot-hover-bg);
    border-color: var(--ttb-user-showcase-dot-hover-border);
    transform: scale(1.2);
}

.ttb-user-showcase-dot.active {
    background: var(--ttb-user-showcase-dot-active-bg);
    border-color: var(--ttb-user-showcase-dot-active-border);
    transform: scale(1.3);
}

.ttb-user-showcase-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--ttb-user-showcase-dot-active-inner);
    border-radius: 50%;
}

/* Responsive adjustments for navigation */
@media (max-width: 1200px) {
    .ttb-user-showcase-nav-prev {
        left: -60px;
    }
    
    .ttb-user-showcase-nav-next {
        right: -60px;
    }
    
    .ttb-user-showcase-nav {
        width: 45px;
        height: 45px;
    }
    
    .ttb-user-showcase-nav svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .ttb-user-showcase-nav-prev {
        left: -45px;
    }
    
    .ttb-user-showcase-nav-next {
        right: -45px;
    }
    
    .ttb-user-showcase-nav {
        width: 40px;
        height: 40px;
    }
    
    .ttb-user-showcase-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .ttb-user-showcase-dots {
        margin-top: 20px;
        gap: 8px;
    }
    
    .ttb-user-showcase-dot {
        width: 10px;
        height: 10px;
    }
    
    .ttb-user-showcase-dot.active::after {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .ttb-user-showcase-nav-prev {
        left: -35px;
    }
    
    .ttb-user-showcase-nav-next {
        right: -35px;
    }
    
    .ttb-user-showcase-nav {
        width: 35px;
        height: 35px;
    }
    
    .ttb-user-showcase-nav svg {
        width: 14px;
        height: 14px;
    }
}

/* Memorials Section */
.ttb-memorials-section {
    background: linear-gradient(135deg, #c9a9dd 0%, #9bb5e4 100%);
    padding: 4rem 0;
    color: white;
}

.ttb-memorials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ttb-memorials-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.ttb-memorials-header p {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.ttb-btn-memorial {
    background: white;
    color: #8E24AA;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.ttb-btn-memorial:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ttb-memorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ttb-memorial-card {
    background: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ttb-memorial-card:hover {
    transform: translateY(-5px);
}

.ttb-memorial-image {
    height: 300px; /* Increased from 200px to 300px for taller images */
    overflow: hidden;
    position: relative;
}

.ttb-memorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ttb-memorial-card:hover .ttb-memorial-image img {
    transform: scale(1.05);
}

.ttb-memorial-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Placeholder styling for when no memorials exist */
.ttb-memorial-placeholder .ttb-memorial-image {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-memorial-placeholder .ttb-memorial-image img {
    opacity: 0.6;
    filter: grayscale(20%);
}

.ttb-memorial-info {
    padding: 1.5rem;
    text-align: center;
}

.ttb-memorial-info h3 {
    margin-bottom: 0.5rem;
}

.ttb-memorial-info h3 a {
    color: #333;
    text-decoration: none;
}

.ttb-memorial-info p {
    color: #666;
    font-size: var(--font-size-sm);
}

/* CTA Section */
.ttb-cta-section {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 4rem 0;
    color: white;
}

.ttb-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ttb-cta-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.ttb-cta-text p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.ttb-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Name row with two fields side by side */
.ttb-name-row {
    display: flex;
    gap: 1rem;
}

.ttb-input {
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-base);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
}

.ttb-input-half {
    flex: 1;
}

.ttb-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* MailChimp specific styling */
#mc_embed_shell,
#mc_embed_signup {
    width: 100%;
}

#mc_embed_signup_scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hide MailChimp default styling */
#mc_embed_signup .indicates-required,
#mc_embed_signup h2 {
    display: none;
}

/* MailChimp response messages */
#mce-responses {
    margin-top: 0.5rem;
}

#mce-error-response,
#mce-success-response {
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
}

#mce-error-response {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

#mce-success-response {
    background-color: #efe;
    color: #060;
    border: 1px solid #cfc;
}

.ttb-btn-accent {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttb-btn-accent:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Articles Section */
.ttb-recent-articles {
    background: #f8f9fa;
    padding: 4rem 0;
}

.ttb-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ttb-article-card {
    background: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ttb-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ttb-article-image {
    height: 200px;
    overflow: hidden;
}

.ttb-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ttb-article-card:hover .ttb-article-image img {
    transform: scale(1.05);
}

.ttb-article-content {
    padding: 1.5rem;
}

.ttb-article-content h3 {
    margin-bottom: 0.75rem;
}

.ttb-article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-article-content h3 a:hover {
    color: #667eea;
}

.ttb-article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ttb-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.ttb-article-date {
    color: #888;
    font-size: var(--font-size-sm);
}

.ttb-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.ttb-read-more:hover {
    color: #5a67d8;
}

/* Legacy Widgets */
.ttb-legacy-widgets {
    background: white;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ttb-hero-content {
        gap: 2rem;
    }
    
    .ttb-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .ttb-content-slider {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .ttb-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .ttb-hero-actions {
        justify-content: center;
    }
    
    .ttb-btn {
        min-width: 200px;
    }
    
    /* Ensure hero dots maintain circular shape on mobile */
    .ttb-hero-nav .ttb-hero-dot {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        flex-shrink: 0;
        min-width: 12px;
        min-height: 12px;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Mobile hero section adjustments */
    .ttb-hero-section {
        min-height: 70vh; /* Increase height on mobile */
        padding-top: 80px; /* More padding for mobile header */
        padding-bottom: 5rem; /* More space to prevent image cutoff */
    }
    
    /* Adjust hero nav position on mobile */
    .ttb-hero-nav {
        bottom: 1rem; /* Bring dots closer to prevent cutoff */
        margin-bottom: 1rem;
    }
    
    .ttb-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ttb-content-slider {
        grid-template-columns: 1fr;
    }
    
    .ttb-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Add vertical margins to key sections on mobile */
    .ttb-features-section {
        margin: 3rem 0;
    }
    
    .ttb-cta-section {
        margin: 3rem 0;
    }
    
    .ttb-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .ttb-memorials-grid {
        grid-template-columns: 1fr;
    }
    
    .ttb-section-header {
        margin-bottom: 2rem;
    }
    
    .ttb-hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .ttb-hero-description {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .ttb-hero-content {
        padding: 1rem;
    }
    
    .ttb-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .ttb-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    /* Additional mobile adjustments for very small screens */
    .ttb-hero-section {
        min-height: 80vh; /* Even more height on very small screens */
        padding-top: 100px; /* Account for larger mobile headers */
        padding-bottom: 6rem; /* Maximum space to prevent image cutoff */
    }
    
    .ttb-hero-nav {
        bottom: 0.5rem; /* Bring dots even closer on small screens */
        margin-bottom: 1.5rem;
    }
    
    .ttb-newsletter-form {
        width: 100%;
    }
    
    .ttb-input {
        width: 100%;
    }
    
    /* Mobile responsiveness for name row */
    .ttb-name-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ttb-input-half {
        flex: none;
        width: 100%;
    }
    
    .ttb-feature-card {
        padding: 1.5rem;
    }
    
    /* Increase vertical margins for very small screens */
    .ttb-features-section {
        margin: 4rem 0;
    }
    
    .ttb-cta-section {
        margin: 4rem 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.ttb-btn:focus,
.ttb-input:focus,
.ttb-hero-dot:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Form Messages */
.ttb-form-message {
    padding: 1rem;
    border-radius: var(--border-radius-small);
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.ttb-form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ttb-form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Input Focus States */
.input-focused .ttb-input {
    border-color: var(--ttb-accent, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Print Styles */
@media print {
    .ttb-hero-section,
    .ttb-cta-section {
        background: white !important;
        color: black !important;
    }
    
    .ttb-btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}

/* Responsive Design for User Showcase */
@media (max-width: 1024px) {
    .ttb-user-showcase-card {
        flex: 0 0 180px; /* 4 cards */
        min-width: 180px;
        width: 180px;
    }

    .ttb-user-showcase-avatar img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .ttb-user-showcase-container {
        padding: 0 60px;
    }
    
    .ttb-user-showcase-card {
        flex: 0 0 200px; /* 3 cards */
        min-width: 200px;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .ttb-user-showcase-container {
        padding: 0 40px;
    }
    
    .ttb-user-showcase-card {
        flex: 0 0 250px; /* 2 cards */
        min-width: 250px;
        width: 250px;
        min-height: 320px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .ttb-user-showcase-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .ttb-user-showcase-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .ttb-user-showcase-stats {
        margin-top: auto; /* Push to bottom on mobile */
    }
}

@media (max-width: 360px) {
    .ttb-user-showcase-container {
        padding: 0 20px;
    }
    
    .ttb-user-showcase-card {
        flex: 0 0 300px; /* 1 card */
        min-width: 300px;
        width: 300px;
    }
}

/* User Showcase CTA Card */
.ttb-user-showcase-cta-card {
    flex: 0 0 100%; /* Full width when visible */
    min-width: 100%;
    width: 100%;
    background: linear-gradient(135deg, var(--cta-color, #667eea), #764ba2);
    border: none;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-user-showcase-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

.ttb-user-showcase-cta-card::before {
    display: none; /* Remove the gradient top border */
}

.ttb-user-showcase-cta-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-user-showcase-cta-content {
    text-align: center;
    max-width: 400px;
}

.ttb-user-showcase-cta-icon {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ttb-user-showcase-cta-icon svg {
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ttb-user-showcase-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.ttb-user-showcase-cta-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    color: white;
}

.ttb-user-showcase-cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ttb-user-showcase-cta-card:hover .ttb-user-showcase-cta-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== PODCAST SLIDER STYLES ===== */

.ttb-podcast-slider-section {
    background: var(--ttb-podcast-slider-bg, #ffffff);
    position: relative;
    overflow: hidden;
}

.ttb-podcast-slider-container {
    position: relative;
    padding: 0 35px;
    margin: 0 auto;
    max-width: 1200px; /* Adjusted for 3 cards at 300px each + gaps */
}

.ttb-podcast-slider-slider {
    overflow: hidden;
    position: relative;
}

.ttb-podcast-slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding: 20px 10px;
}

.ttb-podcast-slider-card {
    flex: 0 0 350px;
    min-width: 350px;
    width: 350px;
    background: var(--ttb-podcast-slider-card-bg, #ffffff);
    border-radius: var(--ttb-podcast-slider-border-radius, 12px);
    box-shadow: var(--ttb-podcast-slider-card-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    padding: 1.5rem;
    border: var(--ttb-podcast-slider-card-border, 1px solid #f0f0f0);
}

.ttb-podcast-slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ttb-podcast-slider-primary-color, #8E24AA), var(--ttb-podcast-slider-secondary-color, #AB47BC));
    border-radius: var(--ttb-podcast-slider-border-radius, 12px) var(--ttb-podcast-slider-border-radius, 12px) 0 0;
    opacity: 0.8;
}

.ttb-podcast-slider-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ttb-podcast-slider-card-hover-shadow, 0 12px 24px rgba(0, 0, 0, 0.12));
    z-index: 10;
}

.ttb-podcast-slider-card:hover::before {
    opacity: 1;
    height: 6px;
}

.ttb-podcast-slider-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--ttb-podcast-slider-image-radius, 8px);
    overflow: hidden;
    aspect-ratio: 1;
}

.ttb-podcast-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: var(--ttb-podcast-slider-image-radius, 8px);
}

.ttb-podcast-slider-card:hover .ttb-podcast-slider-image img {
    transform: scale(1.05);
}

.ttb-podcast-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--ttb-podcast-slider-image-radius, 8px);
}

.ttb-podcast-slider-card:hover .ttb-podcast-slider-overlay {
    opacity: 1;
}

.ttb-podcast-slider-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ttb-podcast-slider-primary-color, #8E24AA);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ttb-podcast-slider-play-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ttb-podcast-slider-info {
    text-align: left;
}

.ttb-podcast-slider-show {
    display: inline-block;
    background: var(--ttb-podcast-slider-show-bg, #f3e5f5);
    color: var(--ttb-podcast-slider-primary-color, #8E24AA);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttb-podcast-slider-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--ttb-podcast-slider-title-color, #333333);
}

.ttb-podcast-slider-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-podcast-slider-title a:hover {
    color: var(--ttb-podcast-slider-primary-color, #8E24AA);
}

.ttb-podcast-slider-author {
    font-size: 0.875rem;
    color: var(--ttb-podcast-slider-meta-color, #666666);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.ttb-podcast-slider-author a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-podcast-slider-author a:hover {
    color: var(--ttb-podcast-slider-primary-color, #8E24AA);
}

.ttb-podcast-slider-date {
    font-size: 0.75rem;
    color: var(--ttb-podcast-slider-date-color, #999999);
    margin: 0;
    line-height: 1.4;
}

/* Navigation Controls */
.ttb-podcast-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--ttb-podcast-slider-nav-bg, #ffffff);
    border: var(--ttb-podcast-slider-nav-border, 2px solid #f0f0f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: var(--ttb-podcast-slider-nav-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
    /* opacity: 0;
    visibility: hidden; */
}

.ttb-podcast-slider-section:hover .ttb-podcast-slider-nav {
    opacity: 1;
    visibility: visible;
}

.ttb-podcast-slider-nav:hover {
    background: var(--ttb-podcast-slider-primary-color, #8E24AA);
    border-color: var(--ttb-podcast-slider-primary-color, #8E24AA);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--ttb-podcast-slider-nav-hover-shadow, 0 6px 16px rgba(142, 36, 170, 0.3));
}

.ttb-podcast-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.ttb-podcast-slider-nav-prev {
    left: -75px;
}

.ttb-podcast-slider-nav-next {
    right: -75px;
}

.ttb-podcast-slider-nav svg {
    fill: var(--ttb-podcast-slider-nav-icon-color, #666666);
    transition: fill 0.3s ease;
}

.ttb-podcast-slider-nav:hover svg {
    fill: white;
}

/* Dots Navigation */
.ttb-podcast-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0;
}

.ttb-podcast-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ttb-podcast-slider-dot-bg, #e0e0e0);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ttb-podcast-slider-dot:hover {
    background: var(--ttb-podcast-slider-dot-hover-bg, #bdbdbd);
    transform: scale(1.2);
}

.ttb-podcast-slider-dot.active {
    background: var(--ttb-podcast-slider-primary-color, #8E24AA);
    transform: scale(1.3);
}

.ttb-podcast-slider-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--ttb-podcast-slider-primary-color, #8E24AA);
    border-radius: 50%;
    opacity: 0.3;
}

/* CTA Card Styles */
.ttb-podcast-slider-cta-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--cta-color, #8E24AA), #AB47BC);
    border: none;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.ttb-podcast-slider-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(142, 36, 170, 0.3);
}

.ttb-podcast-slider-cta-card::before {
    display: none;
}

.ttb-podcast-slider-cta-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-podcast-slider-cta-content {
    text-align: center;
    max-width: 400px;
}

.ttb-podcast-slider-cta-icon {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ttb-podcast-slider-cta-icon svg {
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ttb-podcast-slider-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.ttb-podcast-slider-cta-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    color: white;
}

.ttb-podcast-slider-cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ttb-podcast-slider-cta-card:hover .ttb-podcast-slider-cta-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design for Podcast Slider */
@media (max-width: 1200px) {
    .ttb-podcast-slider-card:not(.ttb-podcast-slider-cta-card) {
        flex: 0 0 280px;
        min-width: 280px;
        width: 280px;
    }
    
    .ttb-podcast-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .ttb-podcast-slider-nav-prev {
        left: -60px;
    }
    
    .ttb-podcast-slider-nav-next {
        right: -60px;
    }
    
    .ttb-podcast-slider-nav {
        width: 45px;
        height: 45px;
    }
    
    .ttb-podcast-slider-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1024px) {
    .ttb-podcast-slider-card:not(.ttb-podcast-slider-cta-card) {
        flex: 0 0 350px; /* 2 cards visible */
        min-width: 350px;
        width: 350px;
    }
    
    .ttb-podcast-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .ttb-podcast-slider-card:not(.ttb-podcast-slider-cta-card) {
        flex: 0 0 400px; /* 1 card visible */
        min-width: 400px;
        width: 400px;
    }
    
    .ttb-podcast-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .ttb-podcast-slider-nav-prev {
        left: -50px;
    }
    
    .ttb-podcast-slider-nav-next {
        right: -50px;
    }
    
    .ttb-podcast-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .ttb-podcast-slider-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .ttb-podcast-slider-dots {
        margin-top: 1.5rem;
    }
    
    .ttb-podcast-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .ttb-podcast-slider-dot.active::after {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .ttb-podcast-slider-card:not(.ttb-podcast-slider-cta-card) {
        flex: 0 0 320px; /* 1 card visible on mobile */
        min-width: 320px;
        width: 320px;
        padding: 1rem;
    }
    
    .ttb-podcast-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .ttb-podcast-slider-nav-prev {
        left: -40px;
    }
    
    .ttb-podcast-slider-nav-next {
        right: -40px;
    }
    
    .ttb-podcast-slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .ttb-podcast-slider-nav svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== ARTICLE SLIDER STYLES ===== */

.ttb-article-slider-section {
    background: var(--ttb-article-slider-bg, #ffffff);
    position: relative;
    overflow: hidden;
}

.ttb-article-slider-container {
    position: relative;
    padding: 0 35px;
    margin: 0 auto;
    max-width: 1200px;
}

.ttb-article-slider-slider {
    overflow: hidden;
    position: relative;
}

.ttb-article-slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding: 20px 10px;
}

.ttb-article-slider-card {
    flex: 0 0 350px;
    min-width: 350px;
    width: 350px;
    background: var(--ttb-article-slider-card-bg, #ffffff);
    border-radius: var(--ttb-article-slider-border-radius, 12px);
    box-shadow: var(--ttb-article-slider-card-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    padding: 1.5rem;
    border: var(--ttb-article-slider-card-border, 1px solid #f0f0f0);
}

.ttb-article-slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ttb-article-slider-primary-color, #00ACC1), var(--ttb-article-slider-secondary-color, #00BCD4));
    border-radius: var(--ttb-article-slider-border-radius, 12px) var(--ttb-article-slider-border-radius, 12px) 0 0;
    opacity: 0.8;
}

.ttb-article-slider-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ttb-article-slider-card-hover-shadow, 0 12px 24px rgba(0, 0, 0, 0.12));
    z-index: 10;
}

.ttb-article-slider-card:hover::before {
    opacity: 1;
    height: 6px;
}

.ttb-article-slider-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--ttb-article-slider-image-radius, 8px);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.ttb-article-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: var(--ttb-article-slider-image-radius, 8px);
}

.ttb-article-slider-card:hover .ttb-article-slider-image img {
    transform: scale(1.05);
}

.ttb-article-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--ttb-article-slider-image-radius, 8px);
}

.ttb-article-slider-card:hover .ttb-article-slider-overlay {
    opacity: 1;
}

.ttb-article-slider-read-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ttb-article-slider-primary-color, #00ACC1);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ttb-article-slider-read-btn:hover {
    background: white;
    transform: scale(1.1);
}

.ttb-article-slider-info {
    padding: 0;
}

.ttb-article-slider-category {
    display: inline-block;
    background: var(--ttb-article-slider-primary-color, #00ACC1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.ttb-article-slider-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.ttb-article-slider-title a {
    color: var(--ttb-article-slider-title-color, #333333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-article-slider-title a:hover {
    color: var(--ttb-article-slider-primary-color, #00ACC1);
}

.ttb-article-slider-excerpt {
    font-size: 0.9rem;
    color: var(--ttb-article-slider-text-color, #666666);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ttb-article-slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--ttb-article-slider-meta-color, #999999);
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.ttb-article-slider-author a {
    color: var(--ttb-article-slider-primary-color, #00ACC1);
    text-decoration: none;
    font-weight: 500;
}

.ttb-article-slider-author a:hover {
    text-decoration: underline;
}

.ttb-article-slider-date {
    font-style: italic;
}

.ttb-article-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ttb-article-slider-primary-color, #00ACC1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
}

.ttb-article-slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ttb-article-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.ttb-article-slider-nav-prev {
    left: -75px;
}

.ttb-article-slider-nav-next {
    right: -75px;
}

.ttb-article-slider-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ttb-article-slider-nav:hover svg {
    transform: scale(1.1);
}

.ttb-article-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.ttb-article-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 172, 193, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ttb-article-slider-dot:hover {
    background: rgba(0, 172, 193, 0.6);
    transform: scale(1.2);
}

.ttb-article-slider-dot.active {
    background: var(--ttb-article-slider-primary-color, #00ACC1);
    transform: scale(1.3);
}

.ttb-article-slider-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--ttb-article-slider-primary-color, #00ACC1);
    border-radius: 50%;
    opacity: 0.3;
}

/* CTA Card Styles */
.ttb-article-slider-cta-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--cta-color, #00ACC1), #00BCD4);
    border: none;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.ttb-article-slider-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 172, 193, 0.3);
}

.ttb-article-slider-cta-card::before {
    display: none;
}

.ttb-article-slider-cta-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-article-slider-cta-content {
    text-align: center;
    max-width: 400px;
}

.ttb-article-slider-cta-icon {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ttb-article-slider-cta-icon svg {
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ttb-article-slider-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.ttb-article-slider-cta-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    color: white;
}

.ttb-article-slider-cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ttb-article-slider-cta-card:hover .ttb-article-slider-cta-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design for Article Slider */
@media (max-width: 1200px) {
    .ttb-article-slider-card:not(.ttb-article-slider-cta-card) {
        flex: 0 0 280px;
        min-width: 280px;
        width: 280px;
    }
    
    .ttb-article-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .ttb-article-slider-nav-prev {
        left: -60px;
    }
    
    .ttb-article-slider-nav-next {
        right: -60px;
    }
    
    .ttb-article-slider-nav {
        width: 45px;
        height: 45px;
    }
    
    .ttb-article-slider-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1024px) {
    .ttb-article-slider-card:not(.ttb-article-slider-cta-card) {
        flex: 0 0 350px; /* 2 cards visible */
        min-width: 350px;
        width: 350px;
    }
    
    .ttb-article-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .ttb-article-slider-card:not(.ttb-article-slider-cta-card) {
        flex: 0 0 400px; /* 1 card visible */
        min-width: 400px;
        width: 400px;
    }
    
    .ttb-article-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .ttb-article-slider-nav-prev {
        left: -50px;
    }
    
    .ttb-article-slider-nav-next {
        right: -50px;
    }
    
    .ttb-article-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .ttb-article-slider-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .ttb-article-slider-dots {
        margin-top: 1.5rem;
    }
    
    .ttb-article-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .ttb-article-slider-dot.active::after {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .ttb-article-slider-card:not(.ttb-article-slider-cta-card) {
        flex: 0 0 320px; /* 1 card visible on mobile */
        min-width: 320px;
        width: 320px;
        padding: 1rem;
    }
    
    .ttb-article-slider-cta-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .ttb-article-slider-nav-prev {
        left: -40px;
    }
    
    .ttb-article-slider-nav-next {
        right: -40px;
    }
    
    .ttb-article-slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .ttb-article-slider-nav svg {
        width: 16px;
        height: 16px;
    }
} 

/* Mobile Optimizations for All Sliders */

/* Container padding adjustments for mobile */
@media (max-width: 768px) {
    .ttb-container {
        padding: 0 0.75rem; /* Tighter padding for mobile */
    }
}

@media (max-width: 480px) {
    .ttb-container {
        padding: 0 0.5rem; /* Even tighter for small mobile */
    }
}

/* User Showcase Slider Mobile Optimizations */
@media (max-width: 768px) {
    .ttb-user-showcase-container {
        padding: 0 2rem; /* Space for arrows */
    }
    
    .ttb-user-showcase-nav-prev {
        left: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .ttb-user-showcase-nav-next {
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .ttb-user-showcase-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .ttb-user-showcase-dots {
        margin-top: 2rem; /* Increased spacing */
        margin-bottom: 1rem; /* Add bottom spacing */
    }
    
    .ttb-user-showcase-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    /* Single card display - perfectly centered */
    .ttb-user-showcase-container {
        padding: 0 3rem; /* More space for arrows */
    }
    
    .ttb-user-showcase-track {
        justify-content: center; /* Center single card */
    }
    
    .ttb-user-showcase-card {
        width: 280px !important; /* Fixed width for single card */
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .ttb-user-showcase-nav-prev {
        left: 0.25rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .ttb-user-showcase-nav-next {
        right: 0.25rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .ttb-user-showcase-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .ttb-user-showcase-dots {
        margin-top: 1.5rem; /* Extra spacing for mobile */
        margin-bottom: 1.5rem;
    }
}

/* Podcast Slider Mobile Optimizations */
@media (max-width: 768px) {
    .ttb-podcast-slider-container {
        padding: 0 2rem; /* Space for arrows */
    }
    
    .ttb-podcast-slider-nav-prev {
        left: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .ttb-podcast-slider-nav-next {
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .ttb-podcast-slider-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .ttb-podcast-slider-dots {
        margin-top: 2rem; /* Increased spacing */
        margin-bottom: 1rem; /* Add bottom spacing */
    }
    
    .ttb-podcast-slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    /* Single card display - perfectly centered */
    .ttb-podcast-slider-container {
        padding: 0 1.75rem; /* More space for arrows */
    }
    
    .ttb-podcast-slider-track {
        justify-content: center; /* Center single card */
    }
    
    .ttb-podcast-slider-card:not(.ttb-podcast-slider-cta-card) {
        width: 280px !important; /* Fixed width for single card */
        min-width: 280px;
        flex-shrink: 0;
        min-height: 450px; /* Increased to match actual content height */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .ttb-podcast-slider-cta-card {
        width: 280px !important; /* Match regular cards on mobile */
        min-width: 280px;
        max-width: 280px;
        min-height: 450px; /* Match podcast card height */
    }
    
    .ttb-podcast-slider-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .ttb-podcast-slider-nav-prev {
        left: 0.25rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .ttb-podcast-slider-nav-next {
        right: 0.25rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .ttb-podcast-slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .ttb-podcast-slider-dots {
        margin-top: 2.5rem; /* Extra spacing for mobile */
        margin-bottom: 1.5rem;
    }
}

/* Article Slider Mobile Optimizations */
@media (max-width: 768px) {
    .ttb-article-slider-container {
        padding: 0 2rem; /* Space for arrows */
    }
    
    .ttb-article-slider-nav-prev {
        left: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .ttb-article-slider-nav-next {
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .ttb-article-slider-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .ttb-article-slider-dots {
        margin-top: 2rem; /* Increased spacing */
        margin-bottom: 1rem; /* Add bottom spacing */
    }
    
    .ttb-article-slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    /* Single card display - perfectly centered */
    .ttb-article-slider-container {
        padding: 0 1.75rem; /* More space for arrows */
    }
    
    .ttb-article-slider-track {
        justify-content: center; /* Center single card */
    }
    
    .ttb-article-slider-card:not(.ttb-article-slider-cta-card) {
        width: 280px !important; /* Fixed width for single card */
        min-width: 280px;
        flex-shrink: 0;
        min-height: 450px; /* Increased to match podcast cards */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .ttb-article-slider-cta-card {
        width: 280px !important; /* Match regular cards on mobile */
        min-width: 280px;
        max-width: 280px;
        min-height: 450px; /* Match article card height */
    }
    
    .ttb-article-slider-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .ttb-article-slider-nav-prev {
        left: 0.25rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .ttb-article-slider-nav-next {
        right: 0.25rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .ttb-article-slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .ttb-article-slider-dots {
        margin-top: 2.5rem; /* Extra spacing for mobile */
        margin-bottom: 1.5rem;
    }
} 

/* Additional Mobile Fixes */
@media (max-width: 480px) {
    /* Ensure all slider tracks are properly aligned for single card display */
    .ttb-user-showcase-track,
    .ttb-podcast-slider-track,
    .ttb-article-slider-track {
        align-items: center !important;
        justify-content: flex-start !important; /* Override center from above */
        padding: 0 !important;
    }
    
    /* Ensure proper spacing between slider sections */
    .ttb-user-showcase-section,
    .ttb-podcast-slider-section,
    .ttb-article-slider-section {
        margin-bottom: 3rem; /* Extra spacing between sections */
    }
    
    /* Make sure navigation arrows are always visible on mobile */
    .ttb-user-showcase-nav,
    .ttb-podcast-slider-nav,
    .ttb-article-slider-nav {
        opacity: 1 !important;
        display: flex !important;
    }
    
    /* Ensure CTA cards behave properly on mobile */
    .ttb-user-showcase-cta-card,
    .ttb-podcast-slider-cta-card,
    .ttb-article-slider-cta-card {
        flex-shrink: 0 !important;
    }
    
    /* Improve touch targets for dots */
    .ttb-user-showcase-dot,
    .ttb-podcast-slider-dot,
    .ttb-article-slider-dot {
        min-width: 8px !important; /* Reduced from 44px */
        min-height: 8px !important; /* Reduced from 44px */
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .ttb-user-showcase-dot::after,
    .ttb-podcast-slider-dot::after,
    .ttb-article-slider-dot::after {
        width: 6px;
        height: 6px;
    }
}

/* Memorial Section Mobile Responsive Styles */
@media (max-width: 768px) {
    .ttb-memorial-image {
        height: 250px; /* Slightly shorter on mobile */
    }
}

@media (max-width: 480px) {
    .ttb-memorial-image {
        height: 220px; /* Even shorter on very small screens */
    }
}

/* Courses Section */
.ttb-courses-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.ttb-courses-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ttb-courses-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
}

.ttb-courses-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.ttb-btn-course {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.ttb-btn-course:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    color: white;
    text-decoration: none;
}

.ttb-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ttb-course-card {
    background: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.ttb-course-card:hover {
    transform: translateY(-5px);
}

.ttb-course-image {
    height: 300px; /* Same as memorials for consistency */
    overflow: hidden;
    position: relative;
}

.ttb-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ttb-course-card:hover .ttb-course-image img {
    transform: scale(1.05);
}

.ttb-course-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ttb-course-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

/* Placeholder styling for when no courses exist */
.ttb-course-placeholder .ttb-course-image {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-course-placeholder .ttb-course-image img {
    opacity: 0.6;
    filter: grayscale(20%);
}

.ttb-course-info {
    padding: 1.5rem;
}

.ttb-course-info h3 {
    margin-bottom: 0.75rem;
}

.ttb-course-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.ttb-course-info h3 a:hover {
    color: #4CAF50;
}

.ttb-course-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ttb-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ttb-course-lessons {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

/* Courses Section Mobile Responsive Styles */
@media (max-width: 768px) {
    .ttb-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .ttb-course-image {
        height: 250px; /* Slightly shorter on mobile */
    }
}

@media (max-width: 480px) {
    .ttb-course-image {
        height: 220px; /* Even shorter on very small screens */
    }
    
    .ttb-courses-section {
        margin: 3rem 0; /* Add vertical margins like other sections */
    }
}

/* Book Shelf Section */
.ttb-bookshelf-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    /* padding: 5rem 0; */
    position: relative;
    overflow: hidden;
}

.ttb-bookshelf-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="books" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="none"/><rect x="2" y="8" width="3" height="12" fill="rgba(255,255,255,0.03)"/><rect x="6" y="6" width="3" height="14" fill="rgba(255,255,255,0.02)"/><rect x="10" y="7" width="3" height="13" fill="rgba(255,255,255,0.03)"/><rect x="14" y="5" width="3" height="15" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23books)"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.ttb-bookshelf-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.ttb-bookshelf-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ttb-bookshelf-header p {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.ttb-bookshelf-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ttb-btn-bookshelf {
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.ttb-btn-bookshelf.ttb-btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.ttb-btn-bookshelf.ttb-btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

.ttb-btn-bookshelf.ttb-btn-secondary {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.ttb-btn-bookshelf.ttb-btn-secondary:hover {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
    color: white;
    text-decoration: none;
}

.ttb-bookshelf-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.ttb-bookshelf-slider {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.ttb-bookshelf-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.ttb-book-card {
    flex: 0 0 200px;
    min-width: 200px;
    margin-right: 1.5rem;
    perspective: 1000px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttb-book-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

.ttb-book-cover-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ttb-book-cover-link:hover {
    text-decoration: none;
    color: inherit;
}

.ttb-book-cover {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.ttb-book-card:hover .ttb-book-cover {
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.ttb-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ttb-book-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
}

.ttb-book-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.ttb-book-placeholder span {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.ttb-book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.ttb-book-card:hover .ttb-book-overlay {
    opacity: 1;
}

.ttb-book-quick-info {
    width: 100%;
}

.ttb-book-genre {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.ttb-book-rating {
    display: flex;
    gap: 0.25rem;
}

.ttb-book-rating i {
    color: #f39c12;
    font-size: 0.875rem;
}

.ttb-book-rating i:not(.filled) {
    color: rgba(255,255,255,0.3);
}

.ttb-book-info {
    padding: 1rem 0;
    text-align: center;
}

.ttb-book-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.ttb-book-info h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-book-info h3 a:hover {
    color: #e74c3c;
}

.ttb-book-author {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.ttb-book-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Navigation */
.ttb-bookshelf-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.ttb-bookshelf-nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ttb-bookshelf-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.ttb-bookshelf-nav-btn i {
    color: #2c3e50;
    font-size: 1.2rem;
}

.ttb-bookshelf-prev {
    margin-left: -25px;
}

.ttb-bookshelf-next {
    margin-right: -25px;
}

/* Dots */
.ttb-bookshelf-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.ttb-bookshelf-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttb-bookshelf-dot.active,
.ttb-bookshelf-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Book Shelf Mobile Styles */
.ttb-bookshelf-section {
    padding: 3rem 0;
    /* margin: 3rem 0; */
}

.ttb-bookshelf-header h2 {
    font-size: var(--font-size-2xl);
}

    .ttb-bookshelf-header p {
        font-size: var(--font-size-base);
        padding: 0 1rem;
    }

    .ttb-bookshelf-buttons {
        gap: 0.75rem;
    }

    .ttb-btn-bookshelf {
        min-width: 180px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .ttb-bookshelf-track {
        padding: 1rem;
    }

    .ttb-book-card {
        flex: 0 0 160px;
        min-width: 160px;
        margin-right: 1rem;
    }

.ttb-book-cover {
    height: 220px;
}

.ttb-book-info h3 {
    font-size: 0.875rem;
}

.ttb-book-author {
    font-size: 0.75rem;
}

.ttb-bookshelf-nav-btn {
    width: 40px;
    height: 40px;
}

.ttb-bookshelf-nav-btn i {
    font-size: 1rem;
}

.ttb-bookshelf-prev {
    margin-left: -20px;
}

.ttb-bookshelf-next {
    margin-right: -20px;
}

@media (max-width: 480px) {
    .ttb-bookshelf-section {
        padding: 2rem 0;
        margin: 4rem 0;
    }

    .ttb-bookshelf-header {
        margin-bottom: 2rem;
    }

    .ttb-bookshelf-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .ttb-btn-bookshelf {
        min-width: 200px;
        width: 100%;
        max-width: 280px;
    }

    .ttb-bookshelf-track {
        padding: 0.5rem;
    }

    .ttb-book-card {
        flex: 0 0 140px;
        min-width: 140px;
        margin-right: 0.75rem;
    }

    .ttb-book-cover {
        height: 200px;
    }

    .ttb-book-info {
        padding: 0.75rem 0;
    }

    .ttb-bookshelf-nav {
        display: none; /* Hide navigation on very small screens */
    }
}

/* Responsive fix: ensure hero section tall enough on short screens */
@media (max-height: 700px) {
  .ttb-hero-section {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 4rem;
  }
}