/* About Us Page - Premium Interactive Stylesheet */

/* Design Tokens & Theme Colors */
:root {
    --pr-primary: #AB0100;
    --pr-primary-rgb: 114, 0, 61;
    --pr-secondary: #a21b5b;
    --pr-accent: #e40134;
    --pr-bg-light: #fdfdfd;
    --pr-bg-card: #ffffff;
    --pr-text-dark: #1e293b;
    --pr-text-muted: #64748b;
    --pr-border: #e2e8f0;
    --pr-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --pr-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --pr-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --pr-radius: 12px;
    --pr-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Typography Overrides */
.about-us-container {
    font-family: 'Open Sans', 'Montserrat', sans-serif;
    color: var(--pr-text-dark);
    line-height: 1.6;
    margin-bottom: 60px;
}

.about-us-container h3 {
    font-weight: 700;
    color: var(--pr-primary);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 1.65rem;
    letter-spacing: 0.5px;
}

.about-us-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--pr-primary);
    border-radius: 2px;
}

/* Junaid Subhani - Country Managing Partner Feature Section */
.featured-partner-card {
    background: var(--pr-bg-card);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow-lg);
    border: 1px solid var(--pr-border);
    border-top: 5px solid var(--pr-primary);
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    transition: var(--pr-transition);
}

.featured-partner-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}

.featured-img-col {
    flex: 1 1 350px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.featured-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: var(--pr-transition);
}

.featured-partner-card:hover .featured-img-col img {
    transform: scale(1.03);
}

.featured-info-col {
    flex: 1 1 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background-color: rgba(114, 0, 61, 0.1);
    color: var(--pr-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9999px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.featured-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: var(--pr-primary);
}

.featured-creds {
    font-size: 1.1rem;
    color: var(--pr-text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pr-secondary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--pr-border);
    padding-bottom: 12px;
}

.featured-bio-snippet {
    color: var(--pr-text-dark);
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: justify;
}

.featured-bio-snippet p {
    margin-bottom: 12px;
}

.btn-premium {
    background-color: var(--pr-primary);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--pr-transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(114, 0, 61, 0.2);
}

.btn-premium:hover {
    background-color: var(--pr-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(114, 0, 61, 0.3);
}

/* Interactive Branch / Cities Grid Selector */
.branch-selector-section {
    margin-bottom: 40px;
    background: #f8fafc;
    padding: 30px;
    border-radius: var(--pr-radius);
    border: 1px solid var(--pr-border);
}

.branch-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.05rem;
    color: var(--pr-text-muted);
}

.branch-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.branch-nav-card {
    background: var(--pr-bg-card);
    border: 1px solid var(--pr-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--pr-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.branch-nav-card:hover {
    transform: translateY(-3px);
    border-color: var(--pr-primary);
    box-shadow: var(--pr-shadow-md);
}

.branch-nav-card.active {
    background-color: var(--pr-primary);
    border-color: var(--pr-primary);
    color: #ffffff;
    box-shadow: var(--pr-shadow-lg);
}

.branch-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--pr-primary);
    transition: var(--pr-transition);
}

.branch-nav-card.active .branch-icon {
    color: #ffffff;
}

.branch-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.branch-badge {
    background: #f1f5f9;
    color: var(--pr-text-muted);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--pr-transition);
}

.branch-nav-card.active .branch-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Partners Dynamic Display Grid */
.branch-content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.branch-content-panel.active {
    display: block;
}

.partners-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Partner Card Premium Style */
.partner-profile-card {
    background: var(--pr-bg-card);
    border-radius: var(--pr-radius);
    border: 1px solid var(--pr-border);
    box-shadow: var(--pr-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--pr-transition);
}

.partner-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pr-shadow-lg);
    border-color: rgba(114, 0, 61, 0.2);
}

.partner-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 300px;
    background-color: #f8fafc;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--pr-transition);
}

.partner-profile-card:hover .partner-card-img-wrapper img {
    transform: scale(1.04);
}

.partner-card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.partner-card-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pr-primary);
    margin-bottom: 4px;
}

.partner-card-creds {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pr-text-muted);
    margin-bottom: 10px;
}

.partner-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pr-text-dark);
    margin-bottom: 20px;
    min-height: 42px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-card-actions {
    margin-top: auto;
}

.btn-card-action {
    width: 100%;
    background: transparent;
    color: var(--pr-primary);
    border: 2px solid var(--pr-primary);
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--pr-transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.partner-profile-card:hover .btn-card-action {
    background-color: var(--pr-primary);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(114, 0, 61, 0.15);
}

.btn-card-action:hover {
    background-color: var(--pr-secondary) !important;
    border-color: var(--pr-secondary) !important;
    color: #ffffff !important;
}

/* Premium Bio Modal Window */
.bio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.bio-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.bio-modal-window {
    background: var(--pr-bg-card);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--pr-radius);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    border: 1px solid var(--pr-border);
}

.bio-modal-overlay.open .bio-modal-window {
    transform: translateY(0);
}

/* Modal Header styling */
.bio-modal-header {
    background-color: var(--pr-primary);
    color: #ffffff;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.bio-modal-header-info {
    flex-grow: 1;
    padding-right: 20px;
}

.bio-modal-header h4 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.bio-modal-header-creds {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 600;
    margin-bottom: 4px;
}

.bio-modal-header-title {
    font-size: 1.05rem;
    font-weight: 700;
    opacity: 0.95;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 6px;
    margin-top: 6px;
}

.bio-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pr-transition);
}

.bio-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Modal Body styling */
.bio-modal-body {
    padding: 35px;
    overflow-y: auto;
    background-color: var(--pr-bg-light);
}

.bio-modal-body-content {
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.7;
    text-align: justify;
}

.bio-modal-body-content p {
    margin-bottom: 16px;
}

.bio-modal-body-content p:last-child {
    margin-bottom: 0;
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid layout for other general elements - Mission, CSR, etc. */
.about-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-section-card {
    background: var(--pr-bg-card);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius);
    padding: 30px;
    box-shadow: var(--pr-shadow-sm);
    transition: var(--pr-transition);
}

.about-section-card:hover {
    box-shadow: var(--pr-shadow-md);
    border-color: rgba(114, 0, 61, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-partner-card {
        flex-direction: column;
    }
    
    .featured-img-col {
        max-width: 100%;
        height: 350px;
    }
    
    .featured-img-col img {
        min-height: auto;
        object-position: center top;
    }
    
    .partner-card-img-wrapper {
        aspect-ratio: 1 / 1;
        max-height: 320px;
    }
    
    .featured-info-col {
        padding: 30px;
    }
    
    .bio-modal-body {
        padding: 20px;
    }
    
    .bio-modal-header {
        padding: 20px;
    }
}
