/* TTM Company Profile Grid */
.ttm-company-profile-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 24px;
    margin: 40px 0;
}

/* Individual Card Styling - Flat Premium Look */
.ttm-cp-card {
    position: relative;
    background: #fdfdfd;
    border: 1px solid #f2f2f2;
    border-radius: 0; /* Flat style often uses less or no radius */
    padding: 50px 40px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ttm-cp-card:hover {
    background: #fff;
    border-color: #d4af37;
}

/* Card Header Stylings - Professional & Spaced */
.ttm-cp-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: #d4af37; /* Using Gold for labels in flat style */
    margin-bottom: 25px;
    display: block;
}

.ttm-cp-card-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ttm-cp-card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Specific Card Layouts (Bento Span) */
.ttm-cp-card.span-12 { grid-column: span 12; }
.ttm-cp-card.span-8  { grid-column: span 8; }
.ttm-cp-card.span-6  { grid-column: span 6; }
.ttm-cp-card.span-4  { grid-column: span 4; }
.ttm-cp-card.span-3  { grid-column: span 3; }

/* Grid for Stats inside Card */
.ttm-cp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.ttm-cp-stat-item {
    display: flex;
    flex-direction: column;
}

.ttm-cp-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.ttm-cp-stat-label {
    font-size: 14px;
    color: #777;
    font-weight: 600;
}

/* List Items (Products/Listing) */
.ttm-cp-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.ttm-cp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
    font-weight: 600;
    color: #333;
}

.ttm-cp-list li:last-child {
    border-bottom: none;
}

.ttm-cp-list li i {
    color: #d4af37; /* Gold accent */
    font-size: 14px;
}

/* Financials Layout - Crisp Lines */
.ttm-cp-finance-box {
    background: transparent;
    border-top: 1px solid #eee;
    padding: 10px 0;
    margin-top: 20px;
}

.ttm-cp-finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ttm-cp-finance-item:last-child {
    border-bottom: none;
}

.ttm-cp-finance-label {
    font-weight: 600;
    color: #666;
}

.ttm-cp-finance-value {
    font-weight: 800;
    color: #1a1a1a;
}

/* Shareholding Progress */
.ttm-cp-share-bar-wrap {
    margin-top: 15px;
}

.ttm-cp-share-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.ttm-cp-share-track {
    height: 4px;
    background: #f0f0f0;
    border-radius: 0;
    overflow: hidden;
}

.ttm-cp-share-fill {
    height: 100%;
    background: #1a1a1a;
    border-radius: 0;
}

/* Background Card with Image */
.ttm-cp-card.has-bg {
    color: #fff;
    border: none;
}

.ttm-cp-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 1;
}

.ttm-cp-card.has-bg .ttm-cp-content-inner {
    position: relative;
    z-index: 2;
}

.ttm-cp-card.has-bg .ttm-cp-card-title,
.ttm-cp-card.has-bg .ttm-cp-card-desc,
.ttm-cp-card.has-bg .ttm-cp-card-label {
    color: #fff;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .ttm-cp-card.span-8, 
    .ttm-cp-card.span-4,
    .ttm-cp-card.span-6 {
        grid-column: span 6;
    }
    .ttm-cp-card.span-3 {
        grid-column: span 6;
    }
}

@media (max-width: 767px) {
    .ttm-company-profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ttm-cp-card {
        grid-column: span 1 !important;
        padding: 25px;
    }
    .ttm-cp-card-title {
        font-size: 22px;
    }
}
