/* Single Company Card Fix - Enhanced for Premium Centered Look */

/* When there's only one company card, center the grid container */
.founder-companies-grid.single-company {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
}

/* The card itself - Center its content and remove side border */
.founder-companies-grid.single-company .founder-company-card {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    border-radius: 1.25rem !important;
    text-align: center !important;
    border-left: none !important;
    /* Remove the side bar */
    border-top: 5px solid #efc1a9 !important;
    /* Add top bar instead */
    background: hsla(228, 66%, 45%, .1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Center and style the icon */
.founder-companies-grid.single-company .founder-company-card__icon {
    font-size: 3rem !important;
    color: #efc1a9 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Style the name */
.founder-companies-grid.single-company .founder-company-card__name {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--title-color) !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    text-align: center !important;
}

/* Style the location */
.founder-companies-grid.single-company .founder-company-card__location {
    font-size: 1.1rem !important;
    color: #efc1a9 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    text-align: center !important;
}

/* Style the description */
.founder-companies-grid.single-company .founder-company-card__description {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--text-color) !important;
    width: 100% !important;
    text-align: center !important;
}

/* Dark theme specific adjustments */
body.dark-theme .founder-companies-grid.single-company .founder-company-card {
    background: hsla(228, 66%, 45%, .2) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Animation on hover */
.founder-companies-grid.single-company .founder-company-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(239, 193, 169, 0.15) !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .founder-companies-grid.single-company .founder-company-card {
        max-width: 100% !important;
        margin: 0 1rem !important;
    }
}