/* =====================================================
   BOLLARD TEAM PAGE STYLES
   ===================================================== */

/* Team Hero Section */
.team-hero {
    position: relative;
    min-height: 3vh;
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0 1.25rem;
    background: #3A84C5;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../homeslideshow/91.jpg') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 132, 197, 0.8) 0%, rgba(58, 132, 197, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    padding-top: 0.25rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #EE7527;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn, .cta-btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn {
    background: #EE7527;
    color: #ffffff;
}

.cta-btn:hover {
    background: #cc5f1e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 117, 39, 0.3);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Admin Access Button */
.admin-access {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
}

.admin-icon {
    font-size: 1.1rem;
}

/* Responsive admin button */
@media (max-width: 768px) {
    .admin-access {
        margin-left: 0.5rem;
    }
    
    .admin-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.mobile-admin-access .admin-link {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Featured Instructors Section */
.featured-instructors {
    padding: 5rem 0;
    background: #DEE2E5;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: white;
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.team-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Controls */
.team-controls {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #3A84C5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #2F6FA6;
    transform: translateY(-50%) scale(1.05);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-filters-btn {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Instructor Cards */
.instructor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.instructor-card.featured {
    border: 3px solid #EE7527;
    position: relative;
}

.instructor-card.featured::before {
    content: attr(data-featured-label);
    position: absolute;
    top: 15px;
    right: 15px;
    background: #EE7527;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.instructor-image {
    position: relative;
    height: 250px;
    background: #3A84C5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instructor-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.instructor-info {
    padding: 1.5rem;
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.instructor-position {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.instructor-bio {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.instructor-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: #DEE2E5;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-badge.experience {
    background: #dbeafe;
    color: #1e40af;
}

.stat-badge.rating {
    background: #fef3c7;
    color: #92400e;
}

.instructor-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.specialization-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.instructor-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-profile-btn {
    flex: 1;
    padding: 0.75rem;
    background: #3A84C5;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: #2F6FA6;
}

.instructor-actions .social-links {
    display: flex;
    gap: 0.5rem;
}

.instructor-actions .social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #DEE2E5;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.instructor-actions .social-link:hover {
    background: #3A84C5;
    color: white;
    transform: scale(1.1);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: #3A84C5;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #2F6FA6;
    transform: translateY(-2px);
}

/* Team Values Section */
.team-values {
    padding: 5rem 0;
    background: #DEE2E5;
}

.values-header {
    text-align: center;
    margin-bottom: 4rem;
}

.values-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.values-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #111827; /* enforce monochrome (near-black) */
}

.value-icon i {
    color: inherit;
}

.value-item:hover .value-icon,
.value-item:hover .value-icon i {
    color: #111827;
}

.value-item h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-item p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.95rem;
}

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

/* Instructor Modal */
.instructor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.instructor-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2rem;
}

/* Modal Tabs + Content */
.modal-tabs {
    margin-top: 0.5rem;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    background: #DEE2E5;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #DEE2E5;
}

.tab-btn.active {
    background: #3A84C5;
    color: #fff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.tabs-body {
    background: #ffffff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-item {
    background: #DEE2E5;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #0f172a;
    line-height: 1.6;
}

/* KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.kpi {
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}

.kpi-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e3a8a;
}

.kpi-label {
    font-size: 0.8rem;
    color: #475569;
}

/* Social + Contact CTA */
.contact-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.contact-cta .cta-primary {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: #16a34a;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.contact-cta .cta-primary:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn, .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .team-controls {
        padding: 0 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }

    /* Modal responsive grids */
    .info-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .instructor-stats {
        justify-content: center;
    }
    
    .instructor-actions {
        flex-direction: column;
    }
    
    .instructor-actions .social-links {
        justify-content: center;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}
