/* ==============================================================================
   HUB INOVA TECH - PHASE 2
   Institutional Pages (About, News, Partners) Component Stylesheet
   ============================================================================== */

/* ==============================================================================
   1. OVERALL LAYOUT CONFIGURATIONS
   ============================================================================== */
.inst-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 8rem 2rem 5rem;
    flex-grow: 1;
}

.inst-header {
    text-align: center;
    margin-bottom: 4rem;
}

.inst-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px #007bff;
    -webkit-text-stroke: 1px #121212;
    paint-order: stroke fill;
    margin-bottom: 1rem;
}

.inst-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ==============================================================================
   2. SOBRE NÓS (ABOUT US) TIMELINE & SPLIT LAYOUT
   ============================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

/* History Text & Vertical Timeline */
.about-history h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.about-history p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: justify;
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-accent) 100%);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    transition: all 0.2s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent);
    transform: scale(1.2);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
    display: block;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==============================================================================
   3. NOVIDADES (NEWS) BLOG GRID
   ============================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--color-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-focus);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.news-media-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-media-wrapper img,
.news-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
}

.news-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 102, 204, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-readmore {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.news-readmore:hover {
    color: var(--color-accent);
}

/* ==============================================================================
   4. PARCEIROS (PARTNERS) GRID & GRAYSCALE EFFECTS
   ============================================================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--color-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem; /* Maximize available space */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 130px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-focus);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.04);
}

/* ==============================================================================
   5. RESPONSIVE MEDIA QUERIES
   ============================================================================== */
@media (max-width: 992px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .inst-container {
        padding-top: 6.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .inst-header h1 {
        font-size: 2.25rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}
