/* Template Gallery Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 0;
    margin-top: 10px;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb li i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb a {
    color: #3498db;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2980b9;
}

.breadcrumb .active {
    color: #666;
    pointer-events: none;
}

/* Hero Section */
.template-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    margin: 30px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.template-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.template-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.template-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.hero-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-search button {
    white-space: nowrap;
}

/* Categories Section */
.categories-section {
    margin: 60px 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
    text-decoration: none;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.category-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.category-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-card .count {
    display: inline-block;
    background: #f8f9fa;
    color: #3498db;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    min-width: 160px;
    cursor: pointer;
    transition: border 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
}

/* Templates Gallery */
.templates-gallery {
    margin: 40px 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.template-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.template-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.template-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-preview {
    width: 85%;
    height: 160px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.preview-header h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
}

.preview-content {
    display: flex;
    gap: 15px;
}

.preview-left, .preview-right {
    flex: 1;
}

.preview-row {
    height: 10px;
    background: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 2px;
}

.preview-row.short {
    width: 60%;
}

.preview-row.medium {
    width: 80%;
}

.template-info {
    padding: 20px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.template-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
}

.template-badge {
    background: #f8f9fa;
    color: #3498db;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #f0f7ff;
    color: #3498db;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.template-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 0.85rem;
}

.stat-item i {
    color: #3498db;
}

.template-actions .btn-primary {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
    margin: 50px 0 30px;
}

.btn-secondary {
    background: #2c3e50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.btn-secondary i {
    margin-left: 8px;
}

/* How-to Section */
.how-to-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 40px;
    border-radius: 12px;
    margin: 60px 0;
}

.how-to-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    width: 4px;
    height: calc(100% - 80px);
    background: #3498db;
    border-radius: 2px;
    z-index: 1;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.step-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    margin: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 25px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 4rem;
    color: #3498db;
    opacity: 0.2;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #3498db;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.author-info span {
    color: #777;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Template Modal */
.template-modal .modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.template-preview-large {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-preview {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: relative;
}

.large-preview .preview-header {
    margin-bottom: 20px;
}

.large-preview .preview-content {
    gap: 20px;
}

.large-preview .preview-row {
    height: 12px;
    margin-bottom: 10px;
}

.template-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 500;
    color: #555;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

/* SEO Text in Footer */
.footer .seo-text {
    font-size: 0.9rem;
    color: #95a5a6;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .modal-body {
        flex-direction: column;
    }
    
    .template-preview-large, .template-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .template-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .steps-container::before {
        left: 25px;
    }
    
    .step-number {
        margin-right: 20px;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}








/* Hide hamburger on desktop */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Mobile only */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin: 10px;
    }

    #navLinks {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 220px;
        padding: 15px;
        border-radius: 8px;
        z-index: 999;
    }

    #navLinks.show {
        display: flex;
    }
}
