/* Layout and Grid System */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

/* Grid System for Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Page Header / Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Tool Page Specific Layout */
.tool-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tool-layout.with-sidebar {
        grid-template-columns: 3fr 1fr; /* Main content vs sidebar (for ads/related) */
    }
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
