/* Single Company Page Styles */
.td-single-company-page {
    background: #f9fafb;
    min-height: 100vh;
}

.td-company-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.td-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.td-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.td-hero-content {
    position: relative;
    z-index: 2;
}

.td-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.td-hero-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.td-company-logo-large {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: white;
}

.td-company-logo-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.td-hero-info {
    flex: 1;
}

.td-company-title {
    color: white;
    margin: 0 0 15px 0;
    font-size: 36px;
    font-weight: 700;
}

.td-company-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.td-company-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.td-company-meta svg {
    opacity: 0.8;
}

.td-company-meta .separator {
    opacity: 0.5;
}

.td-company-content {
    padding: 40px 0;
}

.td-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.td-main-column {
    min-width: 0;
}

.td-content-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.td-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.td-section-title svg {
    color: #3b82f6;
}

.td-description {
    color: #64748b;
    line-height: 1.8;
    font-size: 16px;
}

.td-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.td-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.td-gallery-item:hover {
    transform: scale(1.05);
}

.td-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.td-gallery-item:hover .td-gallery-overlay {
    opacity: 1;
}

.td-map-wrapper {
    margin-bottom: 15px;
}

.td-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 15px;
}

.td-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.td-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.td-card-title {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.td-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.td-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.2s;
}

.td-contact-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.td-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.td-contact-info {
    flex: 1;
    min-width: 0;
}

.td-contact-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.td-contact-value {
    display: block;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.td-btn-primary {
    background: #3b82f6;
    color: white;
}

.td-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.td-btn-block {
    width: 100%;
    margin-top: 16px;
}

.td-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.td-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.td-social-link:hover {
    transform: scale(1.1);
}

.td-social-link.facebook {
    background: #1877f2;
    color: white;
}

.td-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.td-social-link.twitter {
    background: #1da1f2;
    color: white;
}

.td-social-link.linkedin {
    background: #0077b5;
    color: white;
}

.td-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.td-share-btn:hover {
    transform: translateX(4px);
}

.td-share-btn.facebook {
    background: #1877f2;
    color: white;
}

.td-share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.td-share-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Responsive */
@media (max-width: 968px) {
    .td-content-grid {
        grid-template-columns: 1fr;
    }
    
    .td-sidebar {
        position: static;
    }
    
    .td-hero-header {
        flex-direction: column;
        text-align: center;
    }
    
    .td-company-title {
        font-size: 28px;
    }
}