:root {
    --fes-primary: #1b365d;
    --fes-accent: #e63946;
    --fes-text: #333333;
    --fes-bg: #ffffff;
    --fes-radius: 12px;
}

.fes-85689cf9-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fes-text);
    background: var(--fes-bg);
    /* Border radius can be overridden by Elementor controls */
    border-radius: var(--fes-radius);
    overflow: hidden;
    /* Default shadow, can be overridden by Elementor controls */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* HERO SECTION */
.fes-hero {
    position: relative;
    /* BG properties are injected dynamically via widget settings / Elementor style tab */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* aspect-ratio / min-height set via controls */
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s ease;
}

.fes-hero-overlay {
    /* Gradient injected dynamically via Elementor controls. Default fallback below: */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.fes-badge {
    display: inline-block;
    background: var(--fes-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.fes-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.fes-desc {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 0 20px 0;
}

.fes-actions {
    display: flex;
    gap: 15px;
}

.fes-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.fes-btn-primary {
    background: var(--fes-primary);
    color: #fff;
}
.fes-btn-primary:hover {
    background: var(--fes-accent);
}

.fes-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}
.fes-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* EXPANDED SECTION */
.fes-expanded-details {
    display: none;
    padding: 40px;
    border-bottom: 1px solid #eee;
    animation: fesFadeIn 0.4s ease;
}
.fes-85689cf9-wrapper.is-expanded .fes-expanded-details {
    display: block;
}

.fes-meta-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.fes-meta-row i {
    color: var(--fes-primary);
    margin-right: 5px;
}

.fes-section {
    margin-bottom: 40px;
}
.fes-section:last-child {
    margin-bottom: 0;
}
.fes-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fes-primary);
}

.fes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.fes-card {
    background: #f9fafb;
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.fes-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.fes-card-icon {
    font-size: 24px;
    color: var(--fes-accent);
    margin-bottom: 15px;
}
.fes-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--fes-accent);
}
.fes-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
}
.fes-card p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.fes-context-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.fes-context-row h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--fes-primary);
}
.fes-context-row p {
    font-size: 15px;
    color: #444;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.fes-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}
.fes-contact-info a {
    color: var(--fes-accent);
    text-decoration: none;
    font-weight: 600;
}
.fes-contact-info a:hover {
    text-decoration: underline;
}

/* ECOSYSTEM TABS */
.fes-ecosystem {
    padding: 40px;
    background: #fafafa;
}

.fes-tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.fes-tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    outline: none;
}
.fes-tab-btn.active {
    color: var(--fes-primary);
}
.fes-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fes-primary);
}

.fes-tab-content {
    display: none;
    animation: fesFadeIn 0.3s ease;
}
.fes-tab-content.active {
    display: block;
}

.fes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fes-list-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.fes-item-poster {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.fes-item-info {
    flex-grow: 1;
}

.fes-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
}
.fes-item-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}
.fes-item-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Previous details inline */
.fes-prev-details p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.fes-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

.fes-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--fes-primary);
}
.fes-link:hover {
    text-decoration: underline;
}
.fes-link-bold {
    font-weight: 700;
    color: var(--fes-accent);
}

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

@media (max-width: 768px) {
    .fes-actions { flex-direction: column; }
    .fes-meta-row { flex-direction: column; gap: 10px; }
    .fes-context-row { grid-template-columns: 1fr; gap: 20px; }
    .fes-list-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .fes-item-actions { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
    .fes-item-poster { width: 100%; height: 160px; }
}
