/* YouTube Importer Frontend Styles */
.yti-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile: Remove padding for full width */
@media (max-width: 768px) {
    .yti-frontend-container {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure all sections use full width with minimal padding */
    .yti-featured-section,
    .yti-featured-series-section,
    .yti-playlist-section,
    .yti-carousel-wrapper,
    .yti-search-bar-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
    
    /* Ensure video grids use full width */
    .yti-videos-grid {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
    
    /* Remove section title padding on mobile */
    .yti-section-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure carousel container uses full width */
    .yti-carousel-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure carousel track uses full width */
    .yti-carousel-track {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Template 1 (Default) - Applied when no template class or template-1 */
.yti-frontend-container .yti-section-title,
.yti-template-1 .yti-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2271b1;
    color: #333;
    font-family: "Marcellus SC", serif;
}

/* Template 2: White text, dark golden gradient background to white golden */
.yti-frontend-container.yti-template-2 .yti-section-title,
.yti-template-2 .yti-section-title {
    background: linear-gradient(90deg, #8b6914 0%, #b8941f 25%, #d4af37 50%, #e5c158 75%, #f4e4bc 100%);
    color: #fff !important;
    font-size: 36px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding: 20px 20px;
    border-bottom: none;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
}

/* Template 3: Golden text, subtle golden background */
.yti-frontend-container.yti-template-3 .yti-section-title,
.yti-template-3 .yti-section-title {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 228, 188, 0.05) 100%);
    color: #b8941f;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding: 15px 20px;
    border-left: 5px solid #d4af37;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

/* Template 4: Bold golden border */
.yti-frontend-container.yti-template-4 .yti-section-title,
.yti-template-4 .yti-section-title {
    color: #333;
    font-size: 30px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding: 15px 20px;
    border: 4px solid #d4af37;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255,255,255,1) 100%);
    text-align: center;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* Template 5: Golden underline accent */
.yti-frontend-container.yti-template-5 .yti-section-title,
.yti-template-5 .yti-section-title {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: none;
    position: relative;
}

.yti-frontend-container.yti-template-5 .yti-section-title::after,
.yti-template-5 .yti-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    border-radius: 2px;
}

/* Template 6: Golden gradient text */
.yti-frontend-container.yti-template-6 .yti-section-title,
.yti-template-6 .yti-section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    background: linear-gradient(135deg, #8b6914 0%, #b8941f 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

/* Template 7: Dark background, golden text */
.yti-frontend-container.yti-template-7 .yti-section-title,
.yti-template-7 .yti-section-title {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #d4af37;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding: 20px 20px;
    border-top: 3px solid #d4af37;
    border-bottom: 3px solid #d4af37;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
}

/* Template 8: Golden badge style */
.yti-frontend-container.yti-template-8 .yti-section-title,
.yti-template-8 .yti-section-title {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Template 9: Elegant golden frame */
.yti-frontend-container.yti-template-9 .yti-section-title,
.yti-template-9 .yti-section-title {
    color: #333;
    font-size: 30px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    border: 2px solid #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255,255,255,1) 100%);
}

.yti-frontend-container.yti-template-9 .yti-section-title::before,
.yti-template-9 .yti-section-title::before,
.yti-frontend-container.yti-template-9 .yti-section-title::after,
.yti-template-9 .yti-section-title::after {
    content: '◆';
    color: #d4af37;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.yti-frontend-container.yti-template-9 .yti-section-title::before,
.yti-template-9 .yti-section-title::before {
    left: 10px;
}

.yti-frontend-container.yti-template-9 .yti-section-title::after,
.yti-template-9 .yti-section-title::after {
    right: 10px;
}

/* Template 10: Minimal golden accent */
.yti-frontend-container.yti-template-10 .yti-section-title,
.yti-template-10 .yti-section-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding-left: 15px;
    border-left: 4px solid #d4af37;
    padding-bottom: 10px;
}

.yti-frontend-container.yti-template-10 .yti-section-title::before,
.yti-template-10 .yti-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #d4af37;
}

.yti-featured-section {
    margin-bottom: 100px;
}

.yti-featured-section .yti-section-title {
    margin-top: 0;
}

.yti-featured-series-section {
    margin-bottom: 100px;
}

.yti-playlist-section {
    margin-bottom: 100px;
}

.yti-playlist-section:last-child {
    margin-bottom: 0;
}

/* Videos Grid - 3 Columns */
.yti-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .yti-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .yti-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Video Item */
.yti-video-item {
	text-align:center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
	border-bottom: solid 1px #8e6a2a;
}

.yti-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.yti-video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.yti-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    z-index: 1;
}

.yti-video-item:hover .yti-video-thumbnail img {
    transform: scale(1.05);
}

/* Play button overlay - centered vertically and horizontally */
.yti-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default, show on hover */
    transition: opacity 0.3s;
    cursor: pointer;
    z-index: 100;
    pointer-events: auto;
}

/* Hide play icon completely when disabled */
.yti-video-item:not(:has(.yti-play-overlay)) .yti-video-thumbnail {
    cursor: pointer;
}

/* Show play icon on hover - handled by JavaScript for better control */

/* When always visible class is present, keep it visible */
.yti-play-overlay.yti-play-icon-always {
    opacity: 1 !important;
}

/* Ensure play icon is hidden by default when always-visible class is NOT present */
.yti-play-overlay:not(.yti-play-icon-always) {
    opacity: 0;
}

/* Base play icon styles - centered */
.yti-play-icon {
    font-size: 60px;
    line-height: 1;
    display: inline-block;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
    z-index: 101;
    /* Default to golden gradient if no style class is applied */
    color: #fff;
    text-shadow: 0 2px 8px rgb(209 165 47 / 50%);
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #e5c158 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Golden Gradient Style (Default) */
.yti-play-overlay.yti-play-icon-golden_gradient .yti-play-icon {
    color: #fff;
    text-shadow: 0 2px 8px rgb(209 165 47 / 50%);
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #e5c158 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Solid Gold Style */
.yti-play-overlay.yti-play-icon-solid_gold .yti-play-icon {
    color: #d4af37;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

/* Solid White Style */
.yti-play-overlay.yti-play-icon-solid_white .yti-play-icon {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.yti-play-overlay.yti-play-icon-always {
    opacity: 1 !important;
}

/* Video Info */
.yti-video-info {
    padding: 15px;
}

.yti-video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
	margin-top:10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	padding:10px;
    cursor: pointer;
    position: relative;
}

.yti-video-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.yti-watch-youtube {
	margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 20px;
    flex: 1;
    background: linear-gradient(135deg, #8b6914 0%, #b8941f 50%, #d4af37 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.yti-watch-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
    color: #fff !important;
}

/* Show More Button */
.yti-show-more-container {
    text-align: center;
    margin: 30px 0;
}

.yti-show-more-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #e5c158 100%);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.yti-show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    color: #8b6914 !important; /* Dark golden color on hover */
    opacity: 1 !important;
}

/* Video Player (inside video item) */
.yti-video-player {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.yti-video-player.yti-fullscreen {
    display: flex !important;
    z-index: 999999 !important;
    position: fixed !important;
    visibility: visible !important;
}

.yti-video-player:fullscreen {
    z-index: 999999 !important;
    background: rgba(0,0,0,1) !important;
}

.yti-video-player:-webkit-full-screen {
    z-index: 999999 !important;
    background: rgba(0,0,0,1) !important;
}

.yti-video-player:-moz-full-screen {
    z-index: 999999 !important;
    background: rgba(0,0,0,1) !important;
}

.yti-video-player:-ms-fullscreen {
    z-index: 999999 !important;
    background: rgba(0,0,0,1) !important;
}

.yti-player-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.yti-player-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 999999 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Custom player controls removed - using YouTube's default player controls */
.yti-player-controls-overlay,
.yti-player-controls-bottom,
.yti-controls-buttons,
.yti-fullscreen-btn,
.yti-seekbar-container,
.yti-seekbar,
.yti-seekbar-progress,
.yti-seekbar-handle,
.yti-close-player {
    display: none !important;
    visibility: hidden !important;
}

/* Video Player Modal */
.yti-video-player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.yti-video-player-modal.active {
    display: flex;
}

.yti-video-player-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.yti-video-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.yti-video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yti-video-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Custom player controls removed - using YouTube's default player controls */

.yti-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Hidden Videos */
.yti-video-hidden {
    display: none !important;
}

.yti-video-hidden.yti-video-visible {
    display: block !important;
}

/* Hidden Sections */
.yti-section-hidden {
    display: none !important;
}

/* Search Results Container */
.yti-search-results-container {
    margin: 30px 0;
}

.yti-search-results-container.yti-section-hidden {
    display: none !important;
}

.yti-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .yti-search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .yti-search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Search Bar Styles */
/* Carousel Styles */
.yti-carousel-wrapper {
    width: 100%;
    margin: 30px 0 40px 0;
    overflow: hidden;
    position: relative;
}

.yti-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.yti-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-x; /* Enable horizontal scrolling on mobile */
    padding: 10px;
}

.yti-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.yti-carousel-slide {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
    cursor: pointer;
    position: relative;
}

.yti-carousel-slide-inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yti-carousel-slide-inner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.yti-carousel-slide-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Template 1: Default - Overlay title on hover (white text with shadow) */
.yti-carousel-template-1 .yti-carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 15px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yti-carousel-template-1 .yti-carousel-slide:hover .yti-carousel-slide-overlay {
    opacity: 1;
}

.yti-carousel-template-1 .yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.6);
}

/* Template 2: Title below, dark gold, Montserrat */
.yti-carousel-template-2 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding-top: 0 !important;
}

.yti-carousel-template-2 .yti-carousel-slide-inner img {
    border-radius: 8px 8px 0 0;
    position: relative !important;
    padding-top: 56.25% !important;
}

.yti-carousel-template-2 .yti-carousel-slide-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #8b6914;
    text-align: center;
    margin: 0;
    padding: 12px 10px;
    line-height: 1.4;
    background: #fff;
    border-radius: 0 0 8px 8px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Template 3: Title below, golden border */
.yti-carousel-template-3 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #8b6914;
    border-radius: 10px;
    overflow: hidden;
}

.yti-carousel-template-3 .yti-carousel-slide-inner img {
    border-radius: 0;
}

.yti-carousel-template-3 .yti-carousel-slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #8b6914;
    text-align: center;
    margin: 0;
    padding: 12px 10px;
    line-height: 1.4;
    background: #fff;
}

/* Template 4: Elegant card with shadow */
.yti-carousel-template-4 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yti-carousel-template-4 .yti-carousel-slide:hover .yti-carousel-slide-inner {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.15);
}

.yti-carousel-template-4 .yti-carousel-slide-inner img {
    border-radius: 0;
}

.yti-carousel-template-4 .yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 15px 12px;
    line-height: 1.5;
    background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
    border-top: 1px solid #eee;
}

/* Template 5: Minimalist with golden accent */
.yti-carousel-template-5 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid #d4af37;
}

.yti-carousel-template-5 .yti-carousel-slide-inner img {
    border-radius: 0;
}

.yti-carousel-template-5 .yti-carousel-slide-title {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin: 0;
    padding: 10px 8px;
    line-height: 1.4;
    background: #fff;
}

/* Template 6: Gradient overlay */
.yti-carousel-template-6 .yti-carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(139, 105, 20, 0.95) 0%, rgba(212, 175, 55, 0.7) 50%, transparent 100%);
    padding: 15px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yti-carousel-template-6 .yti-carousel-slide:hover .yti-carousel-slide-overlay {
    opacity: 1;
}

.yti-carousel-template-6 .yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Template 7: Dark theme with golden text */
.yti-carousel-template-7 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.yti-carousel-template-7 .yti-carousel-slide-inner img {
    border-radius: 0;
}

.yti-carousel-template-7 .yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
    margin: 0;
    padding: 12px 10px;
    line-height: 1.4;
    background: #1a1a1a;
}

/* Template 8: Rounded corners, modern */
.yti-carousel-template-8 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.yti-carousel-template-8 .yti-carousel-slide-inner img {
    border-radius: 16px 16px 0 0;
}

.yti-carousel-template-8 .yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 12px 10px;
    line-height: 1.4;
    background: #fff;
}

/* Template 9: Classic frame style */
.yti-carousel-template-9 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
    padding: 4px;
}

.yti-carousel-template-9 .yti-carousel-slide-inner img {
    border-radius: 4px;
}

.yti-carousel-template-9 .yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    color: #8b6914;
    text-align: center;
    margin: 0;
    padding: 10px 8px;
    line-height: 1.4;
    background: #fff;
    border-top: 1px solid #d4af37;
}

/* Template 10: Bold golden badge */
.yti-carousel-template-10 .yti-carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.yti-carousel-template-10 .yti-carousel-slide-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
}

.yti-carousel-template-10 .yti-carousel-slide-inner img {
    border-radius: 0;
}

.yti-carousel-template-10 .yti-carousel-slide-title {
    font-size: 13px;
    font-weight: 700;
    color: #8b6914;
    text-align: center;
    margin: 0;
    padding: 12px 10px;
    line-height: 1.4;
    background: linear-gradient(135deg, #fff 0%, #fef9e7 100%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
	z-index:1;
	margin-bottom:4px;
}

/* Common styles for all templates */
.yti-carousel-slide-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .yti-carousel-slide {
        width: 300px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .yti-carousel-slide {
        width: 300px;
        margin-right: 10px;
    }
}

.yti-search-bar-wrapper {
    margin: 30px 0 40px 0;
    width: 100%;
}

.yti-search-bar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yti-search-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: "Marcellus SC", serif;
}

.yti-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.yti-search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.yti-search-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.yti-search-button {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.yti-search-button:hover {
    transform: scale(1.1);
}

.yti-search-icon {
    font-size: 20px;
    color: #666;
    transition: color 0.2s;
}

.yti-search-input:focus + .yti-search-button .yti-search-icon {
    color: #d4af37;
}

/* Search Bar Template 1 (Default - Simple) */
.yti-search-template-1 .yti-search-input {
    border: 2px solid #ddd;
    border-radius: 8px;
}

.yti-search-template-1 .yti-search-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Search Bar Template 2 (Golden gradient background) */
.yti-search-template-2 .yti-search-input-wrapper {
    background: linear-gradient(135deg, #8b6914 0%, #b8941f 50%, #d4af37 100%);
    padding: 4px;
    border-radius: 12px;
}

.yti-search-template-2 .yti-search-input {
    border: none;
    background: #fff;
    border-radius: 8px;
}

.yti-search-template-2 .yti-search-label {
    color: #d4af37;
    font-weight: 700;
}

/* Search Bar Template 3 (Golden border focus) */
.yti-search-template-3 .yti-search-input {
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.yti-search-template-3 .yti-search-input:focus {
    border-color: #d4af37;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2);
}

.yti-search-template-3 .yti-search-label {
    color: #b8941f;
}

/* Search Bar Template 4 (Rounded with shadow) */
.yti-search-template-4 .yti-search-input {
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 16px 55px 16px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.yti-search-template-4 .yti-search-input:focus {
    border-color: #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.yti-search-template-4 .yti-search-button {
    right: 12px;
}

/* Search Bar Template 5 (Minimalist line) */
.yti-search-template-5 .yti-search-input {
    border: none;
    border-bottom: 3px solid #ddd;
    border-radius: 0;
    padding: 12px 50px 12px 0;
    background: transparent;
    font-size: 18px;
    color: #8b6914;
}

.yti-search-template-5 .yti-search-input::placeholder {
    color: #8b6914;
    opacity: 0.8;
    font-size: 18px;
}

.yti-search-template-5 .yti-search-input:focus {
    border-bottom-color: #8b6914;
    box-shadow: none;
    outline: none;
    color: #8b6914;
}

.yti-search-template-5 .yti-search-input:focus::placeholder {
    color: #8b6914;
    opacity: 0.6;
}

.yti-search-template-5 .yti-search-label {
    margin-bottom: 15px;
    color: #8b6914;
    font-size: 22px;
    font-weight: 600;
}

/* Search Bar Template 6 (Golden badge style) */
.yti-search-template-6 .yti-search-input-wrapper {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 228, 188, 0.05) 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 4px;
}

.yti-search-template-6 .yti-search-input {
    border: none;
    background: #fff;
    border-radius: 8px;
}

.yti-search-template-6 .yti-search-label {
    color: #b8941f;
    font-weight: 700;
}

/* Search Bar Template 7 (Dark theme) */
.yti-search-template-7 .yti-search-input-wrapper {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 4px;
}

.yti-search-template-7 .yti-search-input {
    border: none;
    background: #333;
    color: #fff;
    border-radius: 6px;
}

.yti-search-template-7 .yti-search-input::placeholder {
    color: #999;
}

.yti-search-template-7 .yti-search-label {
    color: #d4af37;
}

.yti-search-template-7 .yti-search-icon {
    color: #d4af37;
}

/* Search Bar Template 8 (Elegant frame) */
.yti-search-template-8 .yti-search-input-wrapper {
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255,255,255,1) 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.yti-search-template-8 .yti-search-input {
    border: none;
    background: #fff;
    border-radius: 4px;
}

.yti-search-template-8 .yti-search-label {
    color: #b8941f;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

/* Search Bar Template 9 (Full-width golden) */
.yti-search-template-9 .yti-search-bar-container {
    background: linear-gradient(90deg, #8b6914 0%, #b8941f 25%, #d4af37 50%, #e5c158 75%, #f4e4bc 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.yti-search-template-9 .yti-search-label {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
}

.yti-search-template-9 .yti-search-input {
    border: none;
    background: linear-gradient(90deg, #8b6914 0%, #b8941f 25%, #d4af37 50%, #e5c158 75%, #f4e4bc 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.yti-search-template-9 .yti-search-input::placeholder {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    opacity: 1;
}

.yti-search-template-9 .yti-search-input:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    color: #fff !important;
}

.yti-search-template-9 .yti-search-input::-webkit-input-placeholder {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    opacity: 1;
}

.yti-search-template-9 .yti-search-input::-moz-placeholder {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    opacity: 1;
}

.yti-search-template-9 .yti-search-input:-ms-input-placeholder {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    opacity: 1;
}

.yti-search-template-9 .yti-search-icon {
    color: #d4af37;
}

/* Search Bar Template 10 (Modern card) */
.yti-search-template-10 .yti-search-bar-container {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
}

.yti-search-template-10 .yti-search-input {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 55px 16px 25px;
    transition: all 0.3s;
}

.yti-search-template-10 .yti-search-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 4px 12px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.yti-search-template-10 .yti-search-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .yti-search-bar-wrapper {
        margin: 20px 0 30px 0;
    }
    
    .yti-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .yti-search-label {
        font-size: 16px;
    }
}
