/* Templates page specific styles */

/* Templates Hero */
.templates-hero {
    background-color: var(--light-bg);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.templates-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0) 70%);
    z-index: 0;
}

.templates-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.templates-hero h1 {
    font-size: 3.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.templates-hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero Benefits */
.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.benefit-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    border-color: var(--primary-color);
}

.benefit-badge i {
    color: var(--primary-color);
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Benefits Section */
.templates-benefits {
    padding: 4rem 0;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: calc(50% - 1rem);
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.benefit-item:hover {
    background-color: var(--light-bg);
    transform: translateY(-5px);
}

.benefit-icon {
    background: var(--primary-gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
}

.benefit-content h3 {
    font-size: 1.35rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Templates Library */
.templates-library {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.templates-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-button {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.95rem;
    background-color: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.9rem;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.template-card {
    background-color: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(79, 70, 229, 0.2);
}

.template-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.template-badge.premium {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

.template-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.template-icon {
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.template-card:hover .template-icon {
    transform: scale(1.1) rotate(5deg);
}

.template-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.template-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.template-downloads {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.template-card h3 {
    font-size: 1.35rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.template-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.template-card:hover .tag {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.template-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.template-download-btn,
.template-preview-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.template-download-btn {
    background: var(--primary-gradient);
    color: white;
    flex-grow: 1;
    justify-content: center;
}

.template-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.template-download-btn.disabled {
    background: #9ca3af;
    color: #6b7280;
    cursor: not-allowed;
    pointer-events: none;
}

.template-download-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.template-preview-btn {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.template-preview-btn:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Pagination */
.templates-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-button.next {
    font-size: 0.8rem;
}

/* How to Use Section */
.how-to-use {
    padding: 6rem 0;
    background-color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background-color: var(--light-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    background-color: white;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.step-content h3 {
    font-size: 1.35rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.step-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-image {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.step-card:hover .step-image {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

/* Create & Share Section */
.create-share {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.create-share-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.create-share-text h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.create-share-text p {
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.create-share-text .benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.create-share-text .benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-color);
}

.create-share-text .benefits-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.create-share-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.create-share-image:hover img {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-10deg);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: white;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cta-section .primary-button {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .primary-button:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-section .secondary-outline-button {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta-section .secondary-outline-button:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Modal and Notification Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #333;
    background: #e9ecef;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-section p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.notification-success .notification-content {
    background: #10b981;
}

.notification-error .notification-content {
    background: #ef4444;
}

.notification.slide-out {
    animation: slideOut 0.3s ease-in;
}

/* Error States */
.no-templates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-templates i {
    font-size: 3em;
    color: #9ca3af;
    margin-bottom: 20px;
}

.no-templates h3 {
    color: #374151;
    margin-bottom: 10px;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-content i {
    font-size: 3em;
    color: #f59e0b;
    margin-bottom: 20px;
}

.error-content h3 {
    color: #374151;
    margin-bottom: 15px;
}

.error-details {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 14px;
    color: #6b7280;
}

.error-details code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn.primary-button {
    background: #667eea;
    color: white;
}

.btn.primary-button:hover {
    background: #5a6fd8;
}

.btn.secondary-button {
    background: #6c757d;
    color: white;
}

.btn.secondary-button:hover {
    background: #5a6268;
}

/* Loading States */
.template-download-btn[style*="pointer-events: none"] {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .templates-hero h1 {
        font-size: 3rem;
    }
    
    .create-share-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .create-share-text {
        order: 2;
    }
    
    .create-share-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .templates-hero h1 {
        font-size: 2.5rem;
    }
    
    .benefit-item {
        width: 100%;
    }
    
    .templates-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .pagination-button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .templates-hero h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta a {
        width: 100%;
    }
    
    .template-actions {
        flex-direction: column;
    }
}

/* Custom Template CTA Section */
.custom-template-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.custom-template-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, rgba(79, 70, 229, 0) 70%);
    z-index: 1;
}

.custom-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.custom-cta-text h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.custom-cta-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.custom-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.custom-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.price-header h3 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.price-amount .currency {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.price-amount .amount {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.price-amount .period {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.price-feature i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Responsive adjustments for custom CTA */
@media (max-width: 1024px) {
    .custom-cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .custom-cta-text {
        order: 2;
        text-align: center;
    }
    
    .custom-cta-visual {
        order: 1;
    }
}

@media (max-width: 768px) {
    .custom-template-cta {
        padding: 4rem 0;
    }
    
    .custom-cta-text h2 {
        font-size: 2rem;
    }
    
    .custom-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .custom-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-cta-buttons a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-benefits {
        gap: 0.75rem;
    }
    
    .benefit-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* Quick Start Timeline */
.quick-start-timeline {
    padding: 4rem 0;
    background-color: white;
}

.timeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 3rem auto 2rem auto;
    position: relative;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.timeline-connector {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), rgba(79, 70, 229, 0.3));
    flex: 1;
    margin: 0 -1rem;
    position: relative;
    top: -30px;
    z-index: 1;
}

.timeline-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Services & Community Section */
.custom-services-community {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.section-image {
    text-align: center;
    margin: 1.5rem 0;
}

.section-image img {
    max-width: 60%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.section-image:hover img {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .section-image img {
        max-width: 80%;
    }
}

.services-community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-card,
.community-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.service-header h3,
.community-header h3 {
    font-size: 1.75rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-header p,
.community-header p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-features .feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.service-cta {
    margin-bottom: 1.5rem;
}

.community-image {
    text-align: center;
    margin-top: 1rem;
}

.community-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.community-card:hover .community-image img {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
    .services-community-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .timeline-step {
        width: 100%;
        max-width: 300px;
    }
    
    .service-features,
    .community-benefits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .service-card,
    .community-card {
        padding: 2rem;
    }
    
    .quick-start-timeline {
        padding: 3rem 0;
    }
    
    .custom-services-community {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-header h3,
    .community-header h3 {
        font-size: 1.5rem;
    }
}
