/* assets/css/frontend-style.css */

/* General page container for better spacing and centering */
.qhse-company-page #main {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08); /* Slightly more prominent shadow */
    max-width: 1200px; /* Adjust as needed for your site's content width */
    margin: 30px auto; /* Center the content with more vertical space */
}

/* Article container for individual company entry */
.qhse-company-entry {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle inner shadow */
}


/* Company Header Section */
.company-header-section {
    display: flex;
    align-items: center;
    gap: 30px; /* Increased space between logo/badge and company name */
    padding-bottom: 25px;
    border-bottom: 2px solid #eee; /* Thicker border */
    margin-bottom: 40px; /* More space before table */
}

.company-logo-wrap {
    position: relative;
    width: 180px; /* Larger circular logo */
    height: 180px;
    flex-shrink: 0;
}

.company-main-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 4px solid #0056b3; /* Thicker blue border for emphasis */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Shadow for logo */
}

.verified-badge-large {
    position: absolute;
    bottom: 5px; /* Adjust position */
    right: 5px; /* Adjust position */
    background-color: #4CAF50; /* Green for verified */
    color: white;
    padding: 6px 12px; /* Larger padding */
    border-radius: 20px; /* More rounded pill shape */
    font-size: 1em; /* Slightly larger text */
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* Stronger shadow for badge */
}

.verified-badge-large .dashicons {
    font-size: 1.2em; /* Larger dashicon */
    margin-left: 8px; /* More space */
    color: white;
}

.company-header-section .entry-title {
    margin: 0;
    font-size: 3.2em; /* Larger company name */
    color: #222; /* Darker color */
    line-height: 1.2;
}

/* Company Details Table */
.company-details-table-wrap {
    margin-bottom: 50px; /* More space after table */
}

.company-details-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Clearer shadow */
    border-radius: 10px; /* More rounded corners */
    overflow: hidden; /* For rounded corners to apply to content */
}

.company-details-table tr:nth-child(even) {
    background-color: #f8faff; /* Lighter blue for even rows */
}

.company-details-table tr:hover {
    background-color: #eef5ff; /* Enhanced hover effect */
}

.company-details-table td {
    padding: 15px 20px; /* More padding */
    border-bottom: 1px solid #e8e8e8; /* Lighter border */
    vertical-align: middle; /* Center vertically */
    font-size: 1.1em; /* Slightly larger text in table */
}

.company-details-table tr:last-child td {
    border-bottom: none;
}

.company-details-table td.label {
    width: 25%;
    font-weight: bold;
    color: #444; /* Darker label text */
    background-color: #e6efff; /* Consistent label background */
    text-transform: capitalize; /* Ensure consistency */
}

.company-details-table td.value {
    width: 75%;
    color: #333;
}

.company-details-table td a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.company-details-table td a:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker blue on hover */
}

/* Social Media Icons */
.social-links .social-icon {
    display: inline-block;
    font-size: 2.2em; /* Even larger icons */
    margin-right: 20px; /* More space between icons */
    text-decoration: none;
    color: #777; /* Default gray */
    transition: color 0.3s ease, transform 0.2s ease;
}
.social-links .social-icon:hover {
    color: #0073aa; /* Standard hover color for all */
    transform: translateY(-2px); /* Slight lift on hover */
}
/* Specific brand colors for icons */
.social-links .facebook-icon { color: #3b5998; }
.social-links .linkedin-icon { color: #0077B5; }
.social-links .twitter-icon { color: #1DA1F2; }
.social-links .facebook-icon:hover { color: #2d4373; }
.social-links .linkedin-icon:hover { color: #005f8d; }
.social-links .twitter-icon:hover { color: #0f8ee0; }


/* Company Description Section */
.company-description-section {
    margin-bottom: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}
.company-description-section h2,
.company-products-section h2,
.company-map-section h2 {
    font-size: 2.5em; /* Larger headings for sections */
    color: #0056b3;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.company-description-section h2::after,
.company-products-section h2::after,
.company-map-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Short underline */
    height: 3px;
    background-color: #0073aa; /* Accent color underline */
    border-radius: 2px;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1em;
    color: #444;
}

/* Products Section */
.company-products-section {
    margin-bottom: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.company-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Wider product cards */
    gap: 30px; /* More space between product cards */
    list-style: none;
    margin: 0;
    padding: 0;
}

.company-products-list li {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px; /* More rounded */
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12); /* Clearer shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.company-products-list li:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 6px 18px rgba(0,0,0,0.2); /* Stronger shadow on hover */
}

.company-products-list li a {
    text-decoration: none;
    color: inherit;
    display: flex; /* Use flexbox for image and text alignment */
    flex-direction: column;
    padding: 20px; /* More internal padding */
    height: 100%; /* Ensure cards are same height */
}

.company-products-list li img {
    max-width: 100%;
    height: 150px; /* Fixed height for product images */
    object-fit: cover; /* Cover the area */
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.company-products-list li h3 {
    font-size: 1.4em; /* Larger product title */
    margin: 0 0 12px 0;
    color: #0056b3;
    min-height: 2.8em; /* Adjusted consistent height for titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Allows title to take available space */
}

.product-details-summary {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}
.product-details-summary p {
    margin-bottom: 5px;
}
.product-details-summary p:last-child {
    margin-bottom: 0;
}
.product-details-summary p strong {
    color: #333;
}


/* Google Map Section */
.company-map-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.google-map-embed-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* More prominent shadow for map */
}

.google-map-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px; /* Match container */
}

/* Placeholder Image for Products */
.company-products-list li img[src*="placeholder-product.png"] {
    opacity: 0.7;
    filter: grayscale(80%); /* Make placeholder stand out less */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .company-header-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .company-header-section .entry-title {
        font-size: 2.2em;
    }
    .company-logo-wrap {
        width: 120px;
        height: 120px;
    }
    .company-details-table td {
        display: block; /* Stack table cells */
        width: 100%;
    }
    .company-details-table td.label {
        background-color: transparent; /* Remove label background on mobile */
        font-size: 0.9em;
        padding-bottom: 0;
    }
    .company-details-table td.value {
        padding-top: 5px;
        padding-bottom: 10px;
    }
    .company-details-table tr:nth-child(even) {
        background-color: transparent;
    }
    .company-details-table tr {
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 15px;
        display: block;
        padding-bottom: 15px;
    }
    .company-details-table tr:last-child {
        border-bottom: none;
    }
    .company-products-list {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .company-description-section h2,
    .company-products-section h2,
    .company-map-section h2 {
        font-size: 2em;
    }
}