/* Qlik Beginners Website Styles */

:root {
    --primary: #009845;
    --secondary: #507C5C;
    --accent: #4BD964;
    --light: #F8F9FA;
    --dark: #212529;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)" /></svg>');
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    transition: opacity 0.3s;
    opacity: 0.9;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 1.5rem 1rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    padding: 1rem 0 1.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

main {
    padding: 3rem 0;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Feedback Section */
.feedback-section {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feedback-section p {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.embed-container {
    position: relative;
    padding-bottom: 500px;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* About Section */
.about-section {
    margin-top: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Newsletter */
.newsletter {
    background: var(--gradient);
    padding: 3rem;
    border-radius: 10px;
    color: white;
    margin-top: 4rem;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1.5rem;
}

.newsletter p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter-form button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
}

/* Learn Page Styles */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Chapter Cards */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.chapter-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.chapter-image {
    height: 160px;
    background-color: #E9ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
}

.chapter-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chapter-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    margin-bottom: 0.8rem;
}

.chapter-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.chapter-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.chapter-card a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

.chapter-card a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.chapter-card a:hover::after {
    width: 100%;
}

/* Learning Path */
.learning-path {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.learning-path h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.path-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.path-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.path-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.path-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.path-step h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Resources Section */
.resources {
    background: var(--gradient);
    padding: 3rem;
    border-radius: 10px;
    color: white;
    margin-top: 2rem;
    text-align: center;
}

.resources h2 {
    margin-bottom: 1.5rem;
}

.resources p {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.resource-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resource-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: background 0.3s;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Chapter Content Styles */
.chapter-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.chapter-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.chapter-content h2:first-child {
    margin-top: 0;
}

.chapter-content h3 {
    color: var(--secondary);
    margin: 1.5rem 0 0.75rem;
}

.chapter-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.chapter-content ul, 
.chapter-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.chapter-content li {
    margin-bottom: 0.5rem;
}

.chapter-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.chapter-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.chapter-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
}

.note-box {
    background-color: rgba(0, 152, 69, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.note-box p:last-child {
    margin-bottom: 0;
}

.caution-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.step-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step-box h4 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-box h4 .step-number {
    background: var(--gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.9rem;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.nav-prev, .nav-next {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-prev:hover, .nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-prev i {
    margin-right: 8px;
}

.nav-next i {
    margin-left: 8px;
}

.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-disabled:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.image-container {
    text-align: center;
    margin: 2rem 0;
}

.image-container img {
    margin: 0.5rem;
    max-width: 100%;
}

.image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--primary);
    color: white;
    text-align: left;
    padding: 0.75rem 1rem;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

.toc {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc ul ul {
    padding-left: 1.5rem;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: var(--dark);
    display: inline-block;
    padding: 0.2rem 0;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--primary);
}

/* Subscription Indicators */
.subscription-badge {
    display: inline-block;
    background: #f8d7da;
    color: #721c24;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    margin-bottom: 0.8rem;
}

.subscription-link {
    display: inline-block;
    color: #721c24;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

.subscription-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #721c24;
    transition: width 0.3s;
}

.subscription-link:hover::after {
    width: 100%;
}
@media (max-width: 768px) {
    .hero h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 30px;
        width: 100%;
        padding: 0.8rem;
    }
    
    .path-steps::before {
        left: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .path-step {
        padding-left: 40px;
    }
    
    .resources {
        padding: 2rem 1rem;
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-prev, .nav-next {
        width: 100%;
        justify-content: center;
    }
    
    .table-container {
        margin: 1rem 0;
    }
}