/* --- COMPACT 3-COLUMN GRID --- */
.corp-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Responsive collapse for smaller screens */
@media (max-width: 900px) {
    .corp-compact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .corp-compact-grid { grid-template-columns: 1fr; }
}

.corp-tab-compact {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.corp-tab-compact:hover {
    background: #1a1a1a;
    border-color: #ffd700;
}

.corp-tab-compact img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 15px;
}

.corp-tab-compact span {
    color: #eee;
    font-weight: bold;
    font-size: 0.8rem;
}

/* --- SPLIT MODAL DESIGN --- */
.corp-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.corp-modal-content {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    width: 90%;
    max-width: 800px; /* Increased slightly to comfortably fit the wider image */
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: modalFadeIn 0.3s ease-out;
}

.close-corp-modal {
    color: #888;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-corp-modal:hover { color: #ff4d4d; }

.corp-modal-body {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .corp-modal-body { flex-direction: column; align-items: center; }
    .corp-modal-left { flex: none; margin-bottom: 20px; }
}

/* Left Side: CEO Frame */
.corp-modal-left {
    flex: 0 0 260px; /* 250px image width + 10px total padding */
}

.ceo-frame {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
    width: fit-content;
    margin: 0 auto; /* Centers it nicely if it stacks on mobile */
}

.ceo-frame img {
    width: 250px;
    height: 512px;
    object-fit: cover; /* Crops the image to fit exactly 250x512 without squishing */
    border-radius: 2px;
    display: block;
}

.ceo-label {
    background: #333;
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 0;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Side: Corp Info */
.corp-modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.corp-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.corp-header-row img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
}

.corp-header-row h3 {
    margin: 0 0 5px 0;
    color: #eee;
    font-size: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-open { background: #1a4a1a; color: #4dff4d; border: 1px solid #2d8a2d; }
.status-closed { background: #4a1a1a; color: #ff4d4d; border: 1px solid #8a2d2d; }
.status-selective { background: #4a441a; color: #ffea4d; border: 1px solid #8a872d; }

.corp-desc-container p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}