/* Company Single Page Styles */

/* Header */


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    margin-left: 30px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #cccccc;
}

/* Black Header Section */
.company-header {
    background: #000000;
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    color: #ffffff;
}

.header-left {
    flex-shrink: 0;
}

.header-right {
    flex: 1;
}

.company-logo-main img {
    max-width: 250px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.company-title {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-shadow: none;
    line-height: 1.2;
}

.company-designation {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    opacity: 0.9;
}

/* 16:9 Hero Image Section */
.company-hero-image {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    height: 0;
    padding-bottom: 30%; /* Further reduced height - approximately 10:3 aspect ratio */
    background: #000;
}

.company-hero-image .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.company-hero-image .hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

/* Company Info Section */
.company-info-section {
    background: #ffffff;
}

.company-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.company-main,
.company-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.company-card h2,
.company-card h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    color: #000000;
    margin-bottom: 25px;
}

.company-card h2 {
    font-size: 32px;
}

.company-card h3 {
    font-size: 24px;
}

.company-description,
.company-bio {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    font-weight: 400;
}

.company-description p,
.company-bio {
    margin-top: 20px;
}

/* Visit Us Button */
.visit-us-button-container {
    margin-top: 30px;
    text-align: left;
}

.visit-us-btn {
    display: inline-block;
    padding: 5px 25px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.visit-us-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: #000000;
    font-size: 18px;
}

.contact-item a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #666666;
}

/* Address */
.address-info p {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

/* Social Links */
.company-social-links {
    display: flex;
    gap: 15px;
}

.company-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #020202;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.company-social-link:hover {
    background: #333333;
    transform: translateY(-3px);
}

/* Back Section */
.back-section {
    padding: 40px 0;
    background: #f8f9fa;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #000000;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
}

/* Company Directory (when no company specified) */
.page-company-directory {
    min-height: 100vh;
}

.company-directory-hero {
    background: #000000;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.company-directory-hero h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 58px;
    font-weight: 900;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    opacity: 0.9;
}

.company-directory-container {
    padding: 80px 20px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Company Not Found */
.page-company-not-found {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.page-company-not-found h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 20px;
}

.page-company-not-found p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #666666;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .company-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-content {
        gap: 40px;
    }
    
    .company-title {
        font-size: 42px;
    }
    
    .company-designation {
        font-size: 20px;
    }
    
    .company-hero-image {
        max-width: 900px;
        margin: 30px auto;
        border-radius: 15px;
    }
    
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .company-header {
        padding: 40px 0;
    }
    
    .company-title {
        font-size: 36px;
    }
    
    .company-designation {
        font-size: 18px;
    }
    
    .company-hero-image {
        max-width: 100%;
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .company-card {
        padding: 30px 25px;
    }
    
    .company-card h2 {
        font-size: 28px;
    }
    
    .company-card h3 {
        font-size: 20px;
    }
    
    .company-description,
    .company-bio {
        font-size: 16px;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
    }
    
    .company-directory-hero {
        padding: 80px 0;
    }
    
    .company-directory-hero h1 {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .company-header {
        padding: 30px 0;
    }
    
    .header-content {
        gap: 20px;
        padding: 0 10px;
    }
    
    .company-hero-image {
        max-width: 100%;
        margin: 15px auto;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .company-logo-main img {
        max-width: 200px;
        max-height: 150px;
        padding: 20px;
    }
    
    .company-title {
        font-size: 28px;
    }
    
    .company-designation {
        font-size: 16px;
    }
    
    .company-card {
        padding: 25px 20px;
    }
    
    .company-card h2 {
        font-size: 24px;
    }
    
    .company-card h3 {
        font-size: 18px;
    }
    
    .company-social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .back-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
