.hero-section,
.templates-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.templates-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: #8b5cf6 !important;
    color: #fff !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    color: #fff !important;
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.templates-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.template-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.template-header {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.template-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.template-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.3;
}

.template-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.template-popularity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.template-popularity i {
    color: #fbbf24;
}

.template-content {
    padding: 30px;
}

.template-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.template-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.template-card-action {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.template-card-action:hover {
    color: #7c3aed;
}

.template-card-action i {
    margin-left: 5px;
    font-size: 0.9rem;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.spinner-svg {
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

.spinner-svg path {
    fill: #8b5cf6;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Search bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Stats section */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 40px auto 0;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 10px;
}

/* Templates frontend container - main grid - 4 columns Mac style */
.templates-frontend-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 0;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Template box style - Mac minimalistic */
.template-box {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.template-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    border-color: rgba(139, 92, 246, 0.15);
}

.template-box-image {
    height: 120px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.template-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.template-box-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.template-box-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.template-category {
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-box-description {
    color: #64748b;
    line-height: 1.4;
    margin-bottom: auto;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.template-box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.template-box-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.template-box-stats i {
    margin-right: 4px;
    color: #fbbf24;
}

.template-box-action {
    color: #8b5cf6;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.template-box-action:hover {
    color: #7c3aed;
}

.template-box-action i {
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.template-box:hover .template-box-action i {
    transform: translateX(2px);
}

.template-box-action:hover {
    color: #7c3aed;
}

.template-box-action i {
    margin-left: 5px;
    font-size: 12px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .templates-layout {
        grid-template-columns: 180px 1fr;
        gap: 50px;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .templates-frontend-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .templates-grid {
        padding: 80px 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .templates-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .templates-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .templates-frontend-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .template-header,
    .template-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-input {
        padding: 15px 50px 15px 15px;
    }
    
    .templates-frontend-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .template-box {
        padding: 16px;
    }
    
    .template-box-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .template-box-title {
        font-size: 15px;
    }
    
    .template-box-description {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Templates layout */
.templates-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Templates sidebar - minimalistic design */
.templates-sidebar {
    background: transparent;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.categories-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-list-frontend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-item {
    margin-bottom: 2px;
}

.sidebar-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 14px;
    position: relative;
}

.sidebar-category-item a:hover {
    color: #374151;
    background: #f8fafc;
}

.sidebar-category-item.active a {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    font-weight: 500;
}

.sidebar-category-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 1px;
}

.category-count {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
}

.sidebar-category-item:hover .category-count {
    color: #64748b;
}

.sidebar-category-item.active .category-count {
    color: #8b5cf6;
    font-weight: 500;
}

/* Templates main content area */
.templates-main {
    min-height: 600px;
    padding-top: 20px;
}

.templates-header {
    margin-bottom: 24px;
}

.templates-frontend-container-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

/* List section spacing */
.templates-list-section {
    padding: 40px 0 60px;
}

/* Ensure proper spacing */
.templates-page .inner-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.templates-page main {
    flex: 1;
}

/* Template Detail Page Styles */
.template-detail-hero {
    background: transparent;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-back-nav {
    margin-bottom: 30px;
}

.hero-back-nav a {
    display: inline-flex;
    align-items: center;
    color: rgba(71, 85, 105, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.hero-back-nav a:hover {
    color: #8b5cf6;
}

.hero-back-nav i {
    margin-right: 8px;
}

.template-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.template-category-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-platforms {
    display: flex;
    gap: 12px;
    align-items: center;
}

.template-platforms i {
    font-size: 24px;
    color: #64748b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-platforms i:hover {
    transform: scale(1.1);
}

.template-platforms i.fa-facebook-square:hover {
    color: #1877f2;
}

.template-platforms i.fa-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.template-platforms i.fa-twitter-square:hover {
    color: #1da1f2;
}

.template-platforms i.fa-linkedin-square:hover {
    color: #0077b5;
}

.template-platforms i.fa-pinterest-square:hover {
    color: #e60023;
}

.template-platforms i.fa-youtube-square:hover {
    color: #ff0000;
}

.template-platforms i.fa-tiktok:hover {
    color: #000000;
}

.template-platforms i.fa-reddit-square:hover {
    color: #ff4500;
}

.template-platforms i.fa-snapchat-square:hover {
    color: #fffc00;
}

.template-stats {
    display: flex;
    gap: 20px;
    color: rgba(71, 85, 105, 0.7);
    font-size: 13px;
}

.template-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.template-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.template-hero-description {
    font-size: 18px;
    color: rgba(71, 85, 105, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
}

.template-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: rgba(71, 85, 105, 0.8);
    padding: 16px 32px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.template-content-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.template-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.template-content-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.template-dual-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.template-main-content {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    min-height: auto;
    height: auto;
}

.template-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
    border-radius: 20px 20px 0 0;
}

.template-sidebar {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px;
    min-height: auto;
    height: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.template-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
    border-radius: 20px 20px 0 0;
}

.content-section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.content-section:nth-child(1) { animation-delay: 0.2s; }
.content-section:nth-child(2) { animation-delay: 0.4s; }
.content-section:nth-child(3) { animation-delay: 0.6s; }

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

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

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.section-title i {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.template-preview {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    padding: 32px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #1e293b;
    white-space: pre-wrap;
    margin-bottom: 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    max-height: none;
    overflow: visible;
}

.template-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.template-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.example-text-section {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    padding: 32px;
    margin-top: 30px;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.example-text-section::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.example-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
    margin: 0;
    font-size: 15px;
    max-height: none;
    overflow: visible;
}

.example-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

@media (max-width: 1024px) {
    .template-dual-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .template-hero-title {
        font-size: 36px;
    }
    
    .template-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Visual Elements Tip Section */
.visual-elements-tip-section {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.visual-tip-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.visual-tip-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.visual-tip-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.visual-tip-header i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.visual-tip-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.visual-tip-content {
    position: relative;
    z-index: 1;
}

.visual-tip-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.visual-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.visual-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.visual-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.visual-suggestion-item i {
    color: #4ade80;
    font-size: 16px;
    flex-shrink: 0;
}

.visual-suggestion-item span {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.visual-tip-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.visual-tip-footer i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.visual-tip-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
    .visual-elements-tip-section {
        padding: 0 20px;
    }
    
    .visual-tip-container {
        padding: 24px;
    }
    
    .visual-tip-title {
        font-size: 20px;
    }
    
    .visual-suggestions-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .template-detail-hero {
        padding: 60px 0 40px;
    }
    
    .template-hero-title {
        font-size: 28px;
    }
    
    .template-hero-description {
        font-size: 16px;
    }
    
    .template-main-content {
        padding: 24px;
    }
    
    .template-content-layout {
        padding: 0 15px;
    }
}