/* Leadership & Profile Page Styles */

/* General Utilities */
.bg-dark-blue {
    background-color: #0f172a;
}

.text-primary-blue {
    color: #3b82f6;
}

.bg-primary-blue {
    background-color: #3b82f6;
}

.btn-primary-blue {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.btn-primary-blue:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary-blue {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-outline-primary-blue:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
    transition: transform 0.5s ease;
}

/* Leadership Grid Cards V2 */
.leadership-card-v2 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.leadership-card-v2:hover img {
    transform: scale(1.1);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
}

/* Profile Detail Header */
.profile-detail-header {
    min-height: 450px;
    display: flex;
    align-items: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Profile Sidebar & Overlap */
.card-overlap-lg {
    position: relative;
    margin-top: -120px;
    top: auto;
    z-index: 10;
}

.profile-main-card {
    border: 8px solid white !important;
}

.profile-img-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.3), transparent);
}

/* Expertise Cards */
.expertise-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Quote Card Refinement */
.quote-card {
    background: #f8fafc !important;
    border: none !important;
    border-radius: 2rem !important;
    padding: 3rem !important;
    position: relative;
    z-index: 1;
}

.quote-icon-wrapper {
    margin-bottom: 1.5rem;
}

.quote-icon-wrapper i {
    font-size: 3rem;
    color: #3b82f6;
    opacity: 0.8;
}

.quote-text {
    font-size: 1.5rem !important;
    line-height: 1.6;
    color: #1e293b;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 0;
}

/* Profile Sidebar Enhancements */
.profile-sidebar {
    position: sticky;
    top: 100px;
}

.info-item label {
    letter-spacing: 0.05em;
    color: #64748b !important;
}

.info-item span {
    color: #0f172a !important;
}

.profile-info-card {
    padding: 1.25rem !important;
    border-radius: 1rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #eef2f7;
}

.profile-info-card h5 {
    font-size: 1.05rem;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
}

.profile-info-card .info-item {
    margin-bottom: 1rem !important;
}

.profile-info-card .info-item:last-child {
    margin-bottom: 0 !important;
}

.profile-info-card .info-item label {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em;
}

.profile-info-card .info-item span {
    font-size: 1.05rem !important;
    line-height: 1.3;
}

/* Expert Cards V3 */
.expertise-card {
    background: white;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1.25rem !important;
    padding: 2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Leadership Grid Header V6 */
.leadership-grid-header {
    background-color: #0f172a;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 8rem 0 9rem !important; /* Increased padding for better prominence */
    position: relative;
    z-index: 1;
}

.leadership-grid-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85));
    z-index: -1;
}

.leadership-grid-header h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.leadership-grid-header .lead {
    color: rgba(255, 255, 255, 0.9) !important; /* Brighter lead text for better readability */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.leadership-grid-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* Header V5: Compact & Professional */
.profile-detail-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
    padding: 5rem 0 6rem !important; /* Significantly reduced padding */
    position: relative;
    z-index: 1;
}

.profile-detail-header h1 {
    font-size: 3.5rem !important; /* More balanced size */
}

.profile-detail-header .lead {
    font-size: 1.25rem !important;
}

/* Header Buttons V5 */
.header-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem !important;
    padding: 0.6rem 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
}

.header-btn:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.header-btn i {
    font-size: 1.1rem;
}

/* Sidebar Adjustment for compact header */
.card-overlap-lg {
    margin-top: -120px !important;
    top: auto !important;
}

/* Add a subtle animation to the background overlay */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGradient 10s infinite alternate;
}

@keyframes pulseGradient {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Profile Sidebar & Overlap Fixes */
.profile-sidebar {
    position: sticky;
    top: 120px; /* Increased top offset for better spacing */
    transition: all 0.3s ease;
}

.card-overlap-lg {
    position: relative;
    margin-top: -120px;
    top: auto;
    z-index: 10;
}

/* Container Spacing */
.profile-main-content {
    padding-bottom: 5rem;
    padding-top: 1rem;
}

.bio-section, .expertise-section, .quote-card {
    margin-bottom: 4rem !important; /* Consistent spacing */
}

/* Typography & Alignment */
.bio-text {
    text-align: justify;
    color: #475569 !important;
    font-size: 1.15rem !important;
}

.expertise-card {
    border: 1px solid #f1f5f9 !important;
    background: #ffffff;
}

.expertise-card .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #f8fafc;
    margin-bottom: 1.5rem;
}

/* Mini Cards (Other Members) V4 */
.leadership-card-mini {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9 !important;
    background: #ffffff;
    border-radius: 1.5rem !important;
    overflow: hidden;
}

.leadership-card-mini:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1) !important;
    border-color: #3b82f6 !important;
}

.leadership-card-mini .card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    height: 320px !important; /* Slightly taller for better focus */
}

.leadership-card-mini:hover img {
    transform: scale(1.05);
}

.btn-profile-mini {
    background-color: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem !important;
    width: auto !important; /* Not full width for more elegance */
    display: inline-block;
}

.leadership-card-mini:hover .btn-profile-mini {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

/* Profile Main Card Enhancement */
.profile-main-card {
    border: 10px solid white !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Breadcrumb V3 */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive V3 */
@media (max-width: 991.98px) {
    .profile-detail-header {
        padding: 3rem 0 4rem !important; /* Even more compact on mobile */
        background-attachment: scroll;
    }
    .profile-detail-header h1 {
        font-size: 2.5rem !important;
    }
    .card-overlap-lg {
        margin-top: 0 !important;
        top: auto !important;
    }
    .profile-sidebar {
        position: relative;
        top: 0;
    }
    .bio-section {
        margin-top: 2rem !important;
    }
    .quote-card {
        padding: 2.5rem !important;
    }
    .quote-text {
        font-size: 1.25rem !important;
    }
    .expertise-card {
        padding: 1.5rem !important;
    }
}

.profile-content-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.profile-content-panel-square {
    border-radius: 0.75rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-accent {
    width: 40px;
    height: 6px;
    border-radius: 9999px;
    flex: 0 0 auto;
}

.bio-text {
    color: #334155 !important;
    text-align: left;
}

.landmark-project-card {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.landmark-project-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6 !important;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12) !important;
}

.landmark-project-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8fafc;
}

.landmark-project-card img {
    transition: transform 0.6s ease;
}

.landmark-project-card:hover img {
    transform: scale(1.06);
}

.landmark-project-location {
    color: #3b82f6;
    font-weight: 600;
}

.landmark-project-details {
    color: #0f172a;
}

.landmark-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.landmark-heading-row .section-heading {
    margin-bottom: 0;
}

.landmark-hidden {
    display: none !important;
}

.landmark-project-body-noimg {
    padding-top: 1.25rem !important;
}

.landmark-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 991.98px) {
    .landmark-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .landmark-projects-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.expertise-bump {
    margin-top: 1.5rem !important;
}

.expertise-card-square {
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem !important;
    padding: 1.75rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.expertise-card-square .icon-box {
    margin-bottom: 0;
}

.expertise-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.expertise-desc {
    min-height: 0;
    overflow: auto;
    white-space: normal;
}

@media (max-width: 991.98px) {
    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .expertise-card-square {
        aspect-ratio: auto;
    }
}
