/* Homepage Specific Styles */

* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
    color: #2563eb;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-heading {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
    text-align: center;
    color: #1f2937;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Course Overview Section */
.course-overview {
    margin-bottom: 4rem;
}

.overview-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.section-heading {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.home-para {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.author-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Getting Started Section */
.getting-started {
    margin-bottom: 4rem;
}

.started-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.github-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

/* Steps Container */
.steps-container {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.step-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

.editor-link,
.video-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

/* Course Highlights Section */
.course-highlights {
    margin-bottom: 4rem;
}

.highlights-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    border: 1px solid #bae6fd;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-item h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Call to Action Section */
.cta-section {
    margin-bottom: 2rem;
}

.cta-card {
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid #6b7280;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Legacy Button Styles (for backward compatibility) */
.chapter1-btn {
    margin: 0 0 0 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chapter1-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.chapter1-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.warning-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem !important;
}

.warning {
    border: 3px solid #dc2626;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    background: #dc2626;
    font-weight: 600;
}

.access-scriptJs li {
    font-size: 1rem !important;
    margin-left: 2rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-heading {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .overview-card,
    .started-card,
    .highlights-card,
    .cta-card {
        padding: 1.5rem;
    }

    .features-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }

    .home-heading {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}