/* Modern Partner Institutions Screen CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #1a1a2e;
    --accent-blue: #3498db;
    --accent-orange: #ff7e5f;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.instituicoes-container {
    padding: 60px 20px;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero-partners {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-partners h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #1a1a2e 0%, #34495e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-partners .subtitle {
    color: #555;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Partner Grid */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

/* Institution Card */
.partner-card {
    background: var(--card-bg);
    border-radius: 25px;
    width: 320px;
    height: 380px;
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.8s ease-out backwards;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.logo-container {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-card:hover .logo-container {
    background: #fff;
    transform: scale(1.05);
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.partner-card:hover .logo-container img {
    filter: grayscale(0%);
}

.partner-info {
    text-align: center;
}

.partner-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partner-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Entry Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 768px) {
    .partner-card { width: 100%; height: auto; padding: 30px; }
    .hero-partners h1 { font-size: 2.2rem; }
}

/* Fox Button Override if needed */
.fox-assistant-btn {
    bottom: 30px !important;
}
