/* Templates Page CSS - Matching Other Pages Styling */

/* Ensure consistent body padding */
body {
    padding-top: 80px !important;
}

/* Page header styling to match other pages exactly */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 180px 0 80px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0 !important;
}

/* Add the animated background effect */
.page-header::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 1000 1000"><circle cx="200" cy="200" r="150" fill="rgba(255,255,255,0.1)" /><circle cx="800" cy="400" r="120" fill="rgba(255,255,255,0.08)" /></svg>');
    animation: float 20s ease-in-out infinite;
}

/* Header text styling */
.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Featured Template Section */
.featured-template-section {
    padding: 120px 0;
    background: white;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.featured-template {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 25px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.featured-template:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.featured-content .template-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.featured-content .category {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content .format {
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.featured-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-content p {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 30px;
}

.template-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--brand-accent);
    font-size: 16px;
}

.feature-item span {
    color: #2c3e50;
    font-weight: 500;
}

.featured-cta {
    display: flex;
    gap: 15px;
}

.featured-cta .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
}

.featured-image {
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
}

/* Categories Section */
.categories-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.category-card:hover::before {
    transform: scale(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.category-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.category-stats {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.template-count {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.category-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Popular Templates Section */
.popular-templates-section {
    padding: 120px 0;
    background: white;
}

.template-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.template-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.template-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.template-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.template-content {
    padding: 25px;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: #6c757d;
}

.template-meta .downloads {
    font-weight: 600;
}

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

.template-meta .rating .fas {
    color: #fbbf24;
    font-size: 12px;
}

.template-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.template-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.template-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.template-tags .tag {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.template-actions {
    display: flex;
    gap: 10px;
}

.template-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-section .btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* Request Section */
.request-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.request-card {
    background: white;
    border-radius: 25px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
}

.request-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}

.request-content p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
}

.request-benefits {
    list-style: none;
    padding: 0;
}

.request-benefits li {
    padding: 8px 0;
    color: #2c3e50;
    font-weight: 500;
}

.request-benefits .fa-check {
    color: var(--brand-accent);
    margin-right: 10px;
}

.request-form .form-group {
    margin-bottom: 20px;
}

.request-form .form-control,
.request-form .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.request-form .form-control:focus,
.request-form .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(44, 90, 160, 0.15);
}

.request-form .btn-block {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
}

.request-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    text-align: center;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design for Templates */
@media (max-width: 1200px) {
    .page-header h1 {
        font-size: 3.5rem;
    }
    
    .featured-content h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .page-header h1 {
        font-size: 3rem;
    }

    .page-header p {
        font-size: 1.3rem;
    }

    .header-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .featured-content h3 {
        font-size: 2rem;
    }
    
    .featured-template {
        padding: 40px;
    }
    
    .request-card {
        padding: 40px;
    }

    .template-features {
        grid-template-columns: 1fr;
    }

    .featured-cta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 150px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .category-card,
    .template-card {
        margin-bottom: 30px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .header-stats {
        gap: 20px;
    }
    
    .featured-content h3 {
        font-size: 1.8rem;
    }
    
    .featured-template {
        padding: 30px;
    }
    
    .request-card {
        padding: 30px;
    }
    
    .request-content h3 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .image-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .template-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .category-card {
        padding: 25px 20px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .featured-template {
        padding: 20px;
    }
    
    .request-card {
        padding: 20px;
    }
    
    .request-content h3 {
        font-size: 1.5rem;
    }

    .template-content {
        padding: 20px;
    }

    .template-content h3 {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .template-tags {
        flex-wrap: wrap;
    }

    .image-placeholder {
        height: 200px;
        font-size: 2.5rem;
    }

    .featured-content .template-meta {
        flex-direction: column;
        gap: 10px;
    }

    .template-image {
        height: 160px;
    }
} 2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Header Stats */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    position: relative;
    z-index:
