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

body {
    background: linear-gradient(135deg, #eef2f7, #dfe9f3);
    color: #333;
}


.container {
    padding: 100px 30px 30px;
    margin: auto;
    max-width: 80%;
}

.carousel-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0 50px;
}

.grid {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 10px;

    scrollbar-width: none;
    pointer-events: auto;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.grid::-webkit-scrollbar {
    display: none;
}

.grid::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.card {
    height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 auto;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition: transform 0.2s, box-shadow 0.2s;

    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    will-change: transform, opacity;
}

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

.card-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.card-corpo {
    padding: 10px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    overflow: hidden;
}

.card-texto {
    flex: 1;
    overflow: hidden;
    margin-bottom: 8px;
}

.card h2 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #0d47a1;
}

.card p {
    font-size: 0.85rem;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.card button {
    background: #0d47a1;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.card button:hover {
    background: #1565c0;
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #777;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    position: relative;
    padding: 0 40px;
}

.carousel-controls button {
    background: #0d47a1;
    color: white;
    border: none;
    margin-left: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.carousel-controls button:hover {
    background: #1565c0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: clamp(40px, 5vw, 60px);
    height: clamp(40px, 5vw, 60px);
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0d47a1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;

    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: #1565c0;
}

.carousel-btn.left {
    left: 5px;
}

.carousel-btn.right {
    right: 5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-description {
    padding: 0 50px 20px;
    margin: 0;
}

.site-description p {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.site-description strong {
    color: #0d47a1;
}

.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 50px 25px;
}

.search-container form {
    display: flex;
    width: 100%;
    max-width: 800px;
}

.search-container input {
    flex: 1;
    padding: 18px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px 0 0 10px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-container button {
    padding: 0 25px;
    font-size: 1.1rem;
    border: none;
    background: #0d47a1;
    color: white;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    transition: 0.3s;
}

.search-container button:hover {
    background: #1565c0;
}

.search-container button {
    padding: 0 25px;
    font-size: 1.1rem;
    border: none;
    background: #0d47a1;
    color: white;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    transition: 0.3s;
}

.search-container button:hover {
    background: #1565c0;
}

.home-button {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.home-button:hover {
    text-decoration: underline;
}