:root {
    --primary-color: #f39c12;
    --primary-hover: #e67e22;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --container-width: 1200px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.32)),
        url("assets/images/fundo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.manuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0 80px;
}

.manual-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.manual-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2d3748;
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.manual-card:hover .image-container img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .manuals-grid {
        grid-template-columns: 1fr;
    }
}

.botao-voltar {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1f6feb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: 0.3s;
  }

  .botao-voltar:hover {
    background-color: #1557b0;
  }