/* Headquarters Page Specific Styles */

/* Hero Section */
.headquarters-hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(74, 111, 165, 0.7) 100%);
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.headquarters-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    opacity: 0.5;
}

.breadcrumb .current {
    opacity: 1;
    font-weight: 500;
}

/* Overview Section */
.company-overview-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
}

.company-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%234A6FA5" fill-opacity="0.02"%3E%3Cpath d="M50 50c0-13.807 11.193-25 25-25s25 11.193 25 25-11.193 25-25 25-25-11.193-25-25zm25-10c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.company-overview-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.overview-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FF6B35;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.overview-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A6FA5 0%, #1E3A5F 100%);
}

.overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #4A6FA5;
}

.card-icon {
    font-size: 3rem;
    color: #4A6FA5;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.overview-card:hover .card-icon {
    transform: scale(1.1) rotateY(360deg);
    color: #1E3A5F;
}

.overview-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1E3A5F;
    font-weight: 600;
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    align-items: flex-start;
    min-height: 120px;
    text-align: center;
}

/* Individual card colors */
.overview-card:nth-child(1) .card-icon {
    color: #1E3A5F;
}

.overview-card:nth-child(1)::before {
    background: linear-gradient(90deg, #1E3A5F 0%, #2c4a7f 100%);
}

.overview-card:nth-child(2) .card-icon {
    color: #4A6FA5;
}

.overview-card:nth-child(2)::before {
    background: linear-gradient(90deg, #4A6FA5 0%, #5a7fb5 100%);
}

.overview-card:nth-child(3) .card-icon {
    color: #00804d;
}

.overview-card:nth-child(3)::before {
    background: linear-gradient(90deg, #00804d 0%, #00a05d 100%);
}

.overview-card:nth-child(4) .card-icon {
    color: #FF6B35;
}

.overview-card:nth-child(4)::before {
    background: linear-gradient(90deg, #FF6B35 0%, #ff7b45 100%);
}

/* Headquarters Info Section */
.headquarters-info {
    background: #f8f9fa;
    padding: 80px 0;
}

.info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.info-content .section-title::after {
    left: 0;
    transform: none;
}

.info-details {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item h4 {
    font-size: 1.1rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item p {
    color: #666;
    line-height: 1.6;
    margin-left: 1.5rem;
}

.info-image {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, #4A6FA5 0%, #1E3A5F 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-image::before {
    content: '';
    display: none;
}

.info-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 1;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.info-image img[src]:not([src=""]) {
    display: block;
}

.info-image img[src]:not([src=""]) ~ ::before,
.info-image img[src]:not([src=""]) ~ ::after {
    display: none;
}

/* Leadership Section */
.leadership-section {
    padding: 80px 0;
    background: white;
}

.leadership-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.leader-card {
    text-align: center;
    max-width: 400px;
    padding: 20px;
    transition: transform 0.3s;
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-image {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f0f0f0;
    background: linear-gradient(135deg, #4A6FA5 0%, #1E3A5F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.leader-image::before {
    content: '';
    display: none;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.leader-image img[src]:not([src=""]) {
    display: block;
}

.leader-image img[src]:not([src=""]) ~ ::before {
    display: none;
}

.leader-info h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.leader-info .position {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 1rem;
}

.leader-info .bio {
    color: #666;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Organization Chart */
.organization-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.org-chart {
    margin-top: 3rem;
    text-align: center;
}

.org-level {
    margin-bottom: 3rem;
    position: relative;
}

.org-level.departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.org-box {
    background: white;
    color: #333;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.org-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A6FA5 0%, #1E3A5F 100%);
}

.org-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #4A6FA5;
}

.org-box h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #1E3A5F;
    font-weight: 600;
}

.org-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.org-level.executive .org-box {
    background: #1E3A5F;
    color: white;
    max-width: 350px;
    margin: 0 auto;
    border: none;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
}

.org-level.executive .org-box::before {
    background: linear-gradient(90deg, #FF6B35 0%, #FFA500 100%);
    height: 5px;
}

.org-level.executive .org-box h4 {
    color: white;
    font-size: 1.3rem;
}

.org-level.executive .org-box p {
    color: rgba(255, 255, 255, 0.9);
}

/* Subsidiary boxes */
.org-box.subsidiary {
    background: #4A6FA5;
    color: white;
    max-width: 450px;
    border: none;
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.3);
}

.org-box.subsidiary::before {
    background: linear-gradient(90deg, #00804d 0%, #00b366 100%);
}

.org-box.subsidiary h4 {
    color: white;
    font-size: 1.2rem;
}

.org-box.subsidiary p {
    color: rgba(255, 255, 255, 0.9);
}

/* Connecting lines between levels */
.org-level.executive::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: #ddd;
}

.org-level.departments:first-of-type::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
}

/* Branch details section */
.branch-details {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.branch-details h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #1E3A5F;
    position: relative;
    display: inline-block;
}

.branch-details h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #FF6B35;
    border-radius: 2px;
}

.branch-details .org-box {
    background: #f0f4f8;
    border-color: #d0d8e0;
}

.branch-details .org-box::before {
    background: linear-gradient(90deg, #FF6B35 0%, #FFA500 100%);
}

.branch-details .org-box h4 {
    color: #1E3A5F;
    font-size: 1.1rem;
}

.branch-details .org-box p {
    color: #555;
}

/* Branch executives section */
.branch-executives {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.branch-executives h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.executive-section {
    margin-bottom: 2rem;
}

.executive-section h4 {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 1rem;
    text-align: center;
}

.executive-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.executive-item {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

.executive-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.executive-item strong {
    color: #333;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 280px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M0 0h20v20H0V0zm20 20h20v20H20V20z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Location Section */
.location-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.directions-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.direction-item {
    margin-bottom: 1.5rem;
}

.direction-item h4 {
    font-size: 1.1rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.direction-item p {
    color: #666;
    line-height: 1.6;
    margin-left: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .overview-card {
        padding: 1.8rem 1.2rem;
        min-height: 250px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        height: 60px;
    }
    
    .info-wrapper {
        grid-template-columns: 1fr;
    }
    
    .info-image {
        height: 350px;
        order: -1;
    }
    
    .location-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .org-level.departments {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leadership-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .overview-card {
        padding: 1.5rem 1rem;
        height: 280px;
    }
    
    .overview-card h3 {
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .overview-card p {
        font-size: 0.85rem;
        min-height: 100px;
    }
    
    .card-icon {
        height: 70px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .overview-card {
        padding: 1.8rem 1.5rem;
        height: 320px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .overview-card h3 {
        font-size: 1.2rem;
        min-height: 50px;
    }
    
    .overview-card p {
        font-size: 0.9rem;
        min-height: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-image {
        width: 180px;
        height: 180px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .org-level.departments {
        grid-template-columns: 1fr;
    }
    
    .org-box {
        padding: 1.5rem 1rem;
    }
    
    .org-box h4 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .executive-list {
        flex-direction: column;
    }
    
    .gallery-item {
        height: 220px;
    }
}

@media (max-width: 400px) {
    .overview-grid {
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1.5rem 1.2rem;
    }
    
    .card-icon {
        font-size: 2.2rem;
        height: 55px;
    }
    
    .overview-card h3 {
        font-size: 1.1rem;
    }
    
    .overview-card p {
        font-size: 0.85rem;
    }
}