/* Impara Page Styles */

/* Hero Section - Using unified consulting-hero styles from styles.css */
/* Old impara-hero styles removed to use consistent styling across all pages */

/* Tutorial Categories */
.tutorial-categories {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-family: var(--font-primary);
}

.category-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Featured Tutorials */
.featured-tutorials {
    padding: var(--section-padding);
}

.featured-tutorials h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    color: #2d3748;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tutorial-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.tutorial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tutorial-card:hover .tutorial-visual-header .floating-element {
    animation: tutorialFloat 2s ease-in-out infinite;
}

.tutorial-card:hover .tutorial-gradient-bg {
    transform: scale(1.1) rotate(1deg);
}

.tutorial-card.coming-soon {
    opacity: 0.7;
}

/* Enhanced Visual Headers for Tutorial Cards */
.tutorial-visual-header {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.4s ease;
}

.tutorial-gradient-bg.writing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0066CC 100%);
}

.tutorial-gradient-bg.visual {
    background: linear-gradient(135deg, #764ba2 0%, #00CC66 50%, #667eea 100%);
}

.tutorial-gradient-bg.video {
    background: linear-gradient(135deg, #00CC66 0%, #667eea 50%, #0066CC 100%);
}

.tutorial-gradient-bg.audio {
    background: linear-gradient(135deg, #0066CC 0%, #764ba2 50%, #00CC66 100%);
}

.tutorial-gradient-bg.automation {
    background: linear-gradient(135deg, #667eea 0%, #0066CC 50%, #00CC66 100%);
}

.tutorial-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tutorial-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tutorial-icon-container {
    position: relative;
    z-index: 5;
}

.tutorial-main-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.tutorial-visual-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tutorial-visual-elements .floating-element {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tutorial-visual-elements .element-1 {
    top: 25%;
    left: 10%;
    animation-delay: 0s;
}

.tutorial-visual-elements .element-2 {
    top: 70%;
    right: 15%;
    animation-delay: 0.7s;
}

.tutorial-visual-elements .element-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 1.4s;
}

@keyframes tutorialFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-15px) rotate(10deg) scale(1.1); 
        opacity: 0.8;
    }
}

.tutorial-content {
    padding: 2rem;
}

.tutorial-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    line-height: 1.3;
}

.tutorial-content p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tutorial-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tutorial-highlights .highlight-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.tutorial-highlights .highlight-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.btn-tutorial {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-tutorial:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.coming-soon-badge {
    background: #fed7d7;
    color: #e53e3e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* CTA Section */
.cta-impara {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Removed local .btn-primary override to use consistent base styles from styles.css */
/* Original conflicting styles removed to maintain button consistency */

/* Removed local .btn-primary:hover override to use consistent base styles from styles.css */
/* Original conflicting hover styles removed to maintain button consistency */

/* JavaScript for page interactions */
.impara-js-loaded .tutorial-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.impara-js-loaded .tutorial-card:nth-child(1) { animation-delay: 0.1s; }
.impara-js-loaded .tutorial-card:nth-child(2) { animation-delay: 0.2s; }
.impara-js-loaded .tutorial-card:nth-child(3) { animation-delay: 0.3s; }
.impara-js-loaded .tutorial-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-impara {
        padding: 100px 0 60px;
    }
    
    .hero-impara h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tutorial-categories,
    .featured-tutorials {
        padding: 60px 0;
    }
    
    .categories-grid,
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card,
    .tutorial-content {
        padding: 1.5rem;
    }
    
    .featured-tutorials h2 {
        font-size: 2rem;
    }
    
    .cta-impara {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .certification-hub {
        padding: 60px 0;
    }
    
    .cert-hub-benefits {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
    
    .cert-hub-content {
        padding: 2rem;
    }
    
    .cert-hub-icon {
        font-size: 2.5rem;
    }
    
    .cert-hub-header h2 {
        font-size: 2rem;
    }
    
    .cert-hub-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   Certification Hub Styles
   ======================================== */

.certification-hub {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.certification-hub::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 100 100"><defs><pattern id="certGrain" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.2"/><circle cx="40" cy="10" r="0.5" fill="white" opacity="0.2"/><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.2"/><circle cx="10" cy="40" r="0.5" fill="white" opacity="0.2"/><circle cx="40" cy="40" r="0.5" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23certGrain)"/></svg>');
    opacity: 0.3;
}

.cert-hub-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.cert-hub-header {
    margin-bottom: 3rem;
}

.cert-hub-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.cert-hub-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cert-hub-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cert-hub-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cert-hub-benefit {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cert-hub-benefit:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.cert-hub-benefit .benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.cert-hub-benefit h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cert-hub-benefit p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.cert-hub-action {
    margin-top: 2rem;
}

.cert-hub-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.cert-hub-btn:hover {
    background: white;
    color: #38a169;
    border-color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cert-hub-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Bounce animation for certification icon */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Enhanced Tutorial Cards Responsive Design */
@media (max-width: 768px) {
    .tutorial-visual-header {
        height: 180px;
    }
    
    .tutorial-main-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    .tutorial-visual-elements .floating-element {
        font-size: 1.5rem;
    }
    
    .tutorial-content {
        padding: 1.5rem;
    }
    
    .tutorial-highlights {
        justify-content: center;
    }
    
    .tutorial-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .tutorial-category,
    .tutorial-level {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tutorial-visual-header {
        height: 150px;
    }
    
    .tutorial-main-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .tutorial-visual-elements .floating-element {
        font-size: 1.3rem;
    }
    
    .tutorial-content {
        padding: 1rem;
    }
    
    .tutorial-content h3 {
        font-size: 1.3rem;
    }
    
    .tutorial-highlights .highlight-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .tutorial-category,
    .tutorial-level {
        top: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .tutorial-level {
        right: 0.5rem;
    }
    
    .tutorial-category {
        left: 0.5rem;
    }
    
    /* Keep certification boxes in same row even on small screens */
    .cert-hub-benefits {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.8rem;
    }
    
    .cert-hub-benefit {
        padding: 1rem;
    }
    
    .cert-hub-benefit h4 {
        font-size: 1rem;
    }
    
    .cert-hub-benefit p {
        font-size: 0.85rem;
    }
}