*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Professional Templates Page Styles */
.templates-showcase-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section - Single H1 */
.templates-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.templates-hero h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-sub-description {
    font-size: 16px;
    color: #4f46e5;
    font-weight: 500;
}

/* Section Headers */
.section-header-centered {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    color: #4f46e5;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-header-centered h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-header-centered p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-section {
    margin-bottom: 80px;
}

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

.feature-card {
    background: white;
    padding: 30px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Templates Grid */
.templates-section {
    margin-bottom: 80px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

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

.template-preview {
    background: #f1f5f9;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 48px;
    padding: 30px;
    border-radius: 16px;
    background: white;
}

.preview-placeholder.classic {
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-placeholder.modern {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.preview-placeholder.minimal {
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.preview-placeholder.construction {
    border-top: 4px solid #f97316;
    background: #fef2e8;
}

.preview-placeholder.freelance {
    border: 1px dashed #8b5cf6;
    background: #faf5ff;
}

.preview-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.template-content {
    padding: 24px;
}

.template-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.template-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.template-best-for {
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.template-best-for strong {
    color: #0f172a;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #4338ca;
    gap: 12px;
}

/* Online Generator Section */
.online-generator-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 40px;
    overflow: hidden;
    margin-bottom: 80px;
}

.generator-content {
    padding: 48px 40px;
    color: white;
}

.generator-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.generator-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.generator-content p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 24px;
}

.generator-features {
    list-style: none;
    margin-bottom: 32px;
}

.generator-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-primary {
    display: inline-block;
    background: white;
    color: #4f46e5;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.generator-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.image-placeholder {
    font-size: 120px;
    text-align: center;
}

/* Explore Section */
.explore-section {
    margin-top: 20px;
}

.explore-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.explore-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.explore-card p {
    color: #64748b;
    margin-bottom: 24px;
}

.explore-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.explore-btn:hover {
    background: #4f46e5;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {

    .features-grid,
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .online-generator-section {
        grid-template-columns: 1fr;
    }

    .generator-image {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .templates-hero h1 {
        font-size: 32px;
    }

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

    .section-header-centered h2 {
        font-size: 28px;
    }

    .generator-content {
        padding: 32px 24px;
    }

    .generator-content h2 {
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }
}