/* --- Global Styles & Resets --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --secondary-color: #10B981; /* Green */
    --background-color: #F9FAFB; /* Very light gray */
    --surface-color: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.25rem; font-weight: 700; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--surface-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn {
    display: inline-block;
    background-color: var(--surface-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* --- Workflow Section --- */
#workflow-container {
    margin-top: 2rem;
}

.workflow-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.workflow-card.active {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
}

.expand-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.workflow-card.active .expand-icon {
    transform: rotate(180deg);
}

.workflow-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0 2rem;
}

.workflow-card.active .workflow-details {
    max-height: 1000px; /* A large enough value */
    padding: 0 2rem 2rem 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.875rem;
}

.step-content p {
    font-size: 0.95rem;
}

.tool-links {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* --- Tools Section --- */
.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto 3rem auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--primary-hover);
}

#tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tool-card img {
    height: 50px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
}

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

.tool-tag {
    background-color: #EDE9FE;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

/* --- Academy Section --- */
.academy-container {
    max-width: 800px;
    margin: 0 auto;
}

.academy-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.academy-item summary {
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    list-style: none; /* Hides the default triangle */
    position: relative;
    padding-left: 25px;
}

.academy-item summary::-webkit-details-marker {
    display: none; /* Hides the default triangle in Chrome/Safari */
}

.academy-item summary::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.academy-item[open] summary::before {
    transform: rotate(90deg);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-primary);
    color: var(--background-color);
    text-align: center;
    padding: 40px 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--background-color);
    margin: 0 1rem;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
    }

    .hero {
        padding: 60px 0;
    }

    section {
        padding: 60px 0;
    }

    .workflow-header {
        padding: 1.25rem 1.5rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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