/* Card Components */
.card-custom {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d4a82 100%);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1.5rem;
}

.card-body-custom {
    padding: 2rem;
}

/* Modern Member Card Styles */
/* Enhanced Tabbed Navigation Styles */
.members-navigation-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.member-tabs-wrapper {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.member-category-tabs {
    border: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-category-tabs .nav-item {
    margin-bottom: 0.5rem;
}

.member-category-tabs .nav-link {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

.member-category-tabs .nav-link:hover {
    background: #e2e8f0;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.member-category-tabs .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.member-category-tabs .nav-link.active:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
}

.member-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 1.5rem;
    text-align: center;
}

.member-category-tabs .nav-link.active .member-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.member-category-tabs .nav-link:not(.active) .member-count {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

/* Members Grid */
.modern-members-grid,
.members-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tab Content Enhancements */
.tab-content {
    /*padding-top: 2rem; */
}

.tab-pane {
    min-height: 400px;
}

/* Responsive Design for Tabs */
@media (max-width: 1200px) {
    .member-category-tabs {
        justify-content: center !important;
    }
    
    .member-category-tabs .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .member-tabs-wrapper {
        padding: 0.75rem;
    }
    
    .member-category-tabs {
        gap: 0.25rem;
    }
    
    .member-category-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .member-category-tabs .nav-link i {
        display: none;
    }
    
    .member-count {
        margin-left: 0.25rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .member-category-tabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}



.modern-member-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.member-card-content {
    padding: 1.5rem;
    position: relative;
}

.member-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.member-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto;
}

.member-info {
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.member-designation {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.member-company,
.member-location {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-company i,
.member-location i {
    width: 16px;
    text-align: center;
}

.member-type-badge {
    margin: 0.75rem 0;
    text-align: center;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.expertise-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.badge-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* Member Card Overlay */
.member-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-member-card:hover .member-card-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.view-profile-btn {
    background: white;
    color: #3b82f6;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
    transform: translateY(-2px);
}

.modern-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.modern-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #1e40af 50%, #f59e0b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-member-card:hover::before {
    opacity: 1;
}

.member-card-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    position: relative;
}

.member-profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    border: 4px solid #f1f5f9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.member-profile-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.member-designation {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-transform: capitalize;
}

.member-company {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.member-card-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.member-location {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.member-location i {
    color: #f59e0b;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.view-profile-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-profile-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}



/* Clean Search and Filter Styles */
.clean-search-section {
    background: #f8fafc;
    position: relative;
}





.premium-search-wrapper {
    position: relative;
}

.search-input-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: -1;
    border-radius: 16px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-input-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.search-input-container:focus-within::before {
    opacity: 1;
}

.search-icon-wrapper,
.select-icon-wrapper {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.search-input-container:hover .search-icon-wrapper,
.search-input-container:hover .select-icon-wrapper {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

.search-input-container:focus-within .search-icon-wrapper,
.search-input-container:focus-within .select-icon-wrapper {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

.premium-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 1.25rem 3.5rem 1.25rem 3.25rem;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.premium-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: none;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-50%) scale(1.1);
}



.premium-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 1.25rem 3rem 1.25rem 3.25rem;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Enhanced dropdown styling for modern appearance */
.premium-select {
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.premium-select:focus {
    color: #1e293b;
}

/* Custom option styling - limited browser support but enhanced where available */
.premium-select option {
    background: #ffffff;
    color: #1e293b;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    border: none;
    margin: 2px 0;
    border-radius: 8px;
}

.premium-select option:first-child {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 14px 20px;
}

.premium-select option:not(:first-child):hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.premium-select option:checked,
.premium-select option:selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
}

/* Enhanced select container styling */
.search-input-container:has(.premium-select) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-container:has(.premium-select):hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.search-input-container:has(.premium-select:focus) {
    border-color: #1d4ed8;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 0.875rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input-container:focus-within .select-arrow {
    color: #764ba2;
    transform: translateY(-50%) rotate(180deg);
}

.clear-filters-section {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding-top: 1.5rem;
    animation: fadeInUp 0.4s ease;
}

.premium-clear-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.premium-clear-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select styling for filter dropdown */
.select-arrow, .select-icon-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 0.875rem;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3;
}

.select-arrow {
    right: 0.75rem;
}

.select-icon-wrapper {
    left: 1.25rem;
    font-size: 1.1rem;
}

.search-input-container:focus-within .select-arrow {
    color: #764ba2;
    transform: translateY(-50%) rotate(180deg);
}

.search-input-container:focus-within .select-icon-wrapper {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}



.results-summary {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.results-text {
    font-weight: 500;
    color: #475569;
}

/* Loading and Empty States */
.modern-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.empty-state-container {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Member profile photo styling */
.member-profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.modern-member-card:hover .member-profile-photo {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Profile page image styling */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-members-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .modern-member-card .member-card-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modern-member-card .member-card-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    

    
    .premium-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem 3rem 1rem 3rem;
    }
    
    .premium-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem 3rem 1rem 3rem;
    }
    
    .search-icon-wrapper,
    .select-icon-wrapper {
        left: 1rem;
        font-size: 1rem;
    }
    
    .select-arrow {
        right: 1rem;
    }
    
    .clean-search-section {
        padding: 1rem 0;
    }
    
    .clean-search-section .row.g-4 {
        gap: 1rem;
    }
    
    .search-input-container {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .clean-search-section {
        padding: 0.75rem 0;
    }
    
    .clean-search-section .container {
        padding: 0 1rem;
    }
    
    .premium-search-input {
        padding: 0.875rem 2.75rem 0.875rem 2.75rem;
        font-size: 14px;
    }
    
    .premium-select {
        padding: 0.875rem 2.75rem 0.875rem 2.75rem;
        font-size: 14px;
    }
    
    .search-icon-wrapper,
    .select-icon-wrapper {
        left: 0.875rem;
        font-size: 0.9rem;
    }
    
    .select-arrow {
        right: 0.875rem;
    }
}

/* Event Card */
.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
}

.event-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.event-date {
    background: var(--accent-gold);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    min-width: 100px;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-title {
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-bottom: 0.5rem;
}

.event-location {
    color: var(--mid-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-description {
    color: var(--mid-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.event-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-upcoming {
    background: var(--emerald-green);
    color: var(--white);
}

.status-past {
    background: var(--mid-gray);
    color: var(--white);
}

.status-ongoing {
    background: var(--coral-red);
    color: var(--white);
}

/* Reference-Style Blog Grid Layout - Updated for 3 columns */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Reference-Style Blog Card Design */
.modern-blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

/* Blog Card Image Section */
.blog-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Blog Card Content Section */
.blog-card-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

/* Date and Time */
.blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-card-date i {
    color: #f97316;
    font-size: 0.8rem;
}

/* Title */
.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    min-height: 4rem;
}

.modern-blog-card:hover .blog-card-title {
    color: #1f2937;
}

/* Category Badge */
.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category-specific colors */
.blog-card-category[data-category="Technology"] {
    background: #3b82f6;
}

.blog-card-category[data-category="Industry"] {
    background: #f59e0b;
}

.blog-card-category[data-category="Agriculture"] {
    background: #10b981;
}

.blog-card-category[data-category="Events"] {
    background: #8b5cf6;
}

/* Excerpt */
.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Footer Section */
.blog-card-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Blog placeholder image */
.blog-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 3rem;
}

/* Read More Button */
.read-more-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Blog Preview Section Specific Styles */
.blog-preview .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.blog-preview .col-lg-4,
.blog-preview .col-md-6 {
    padding: 0 15px;
    margin-bottom: 2rem;
    display: flex;
}

.blog-preview .modern-blog-card {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Ensure equal height cards */
.blog-preview #blog-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-preview #blog-preview-container > div {
    flex: 1;
    min-width: 300px;
    max-width: calc(33.333% - 1.5rem);
}

/* Responsive blog grid */
@media (max-width: 1199px) {
    .blog-preview #blog-preview-container > div {
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .blog-preview #blog-preview-container {
        gap: 1.5rem;
    }
    
    .blog-preview #blog-preview-container > div {
        max-width: 100%;
    }
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 400;
}

.author-info::before {
    content: "By:";
    color: #9ca3af;
    font-weight: 400;
}

.read-more-btn {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: #059669;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Tablet responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
        margin-top: 1rem;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        min-height: 3rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .blog-card-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .blog-card-category {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        top: 0.75rem;
        left: 0.75rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .blog-card-image {
        height: 160px;
    }
    
    .blog-card-content {
        padding: 0.875rem;
    }
    
    .blog-card-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        min-height: 2.5rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .author-info {
        font-size: 0.7rem;
    }
    
    .read-more-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
}

.blog-card-author strong {
    color: #059669;
    font-weight: 500;
}

/* Read More Button */
.blog-card-read-more {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #1e40af;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.blog-card-image:hover .blog-card-read-more {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Badge on Image */
.blog-logo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-logo-badge img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.blog-logo-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Professional Blog Empty State */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.blog-empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.blog-empty-state h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-blog-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-card-image {
        flex: none;
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-date {
        font-size: 0.8rem;
    }
    
    .blog-card-excerpt {
        -webkit-line-clamp: 3;
    }
}

/* Blog Header Modern */
.blog-header-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.articles-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.articles-count {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-count::before {
    content: '📚';
    font-size: 1.2rem;
}

/* Featured Article Section Enhancement */
.featured-article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

/* ===== BLOG DETAIL PAGE STYLES ===== */
/* Article Header */
.article-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-category,
.article-date,
.article-read-time {
    background: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-title {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.2;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.image-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.content-body h3 {
    color: #059669;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.article-tags .tag-item {
    display: inline-block;
    background: #e0f2fe;
    color: #0277bd;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-tags .tag-item:hover {
    background: #059669;
    color: white;
}

.article-stats .stat-item {
    color: #6b7280;
    font-size: 0.875rem;
}

.sidebar-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 1rem;
}

.sidebar-card .card-body {
    padding: 1.5rem;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
    margin: 0 auto;
}

.related-article,
.popular-article {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.related-article:last-child,
.popular-article:last-child {
    border-bottom: none;
}

.related-article h6,
.popular-article h6 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.related-article:hover h6,
.popular-article:hover h6 {
    color: #059669;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.empty-state-title {
    color: #374151;
    margin-bottom: 1rem;
}

.empty-state-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

.featured-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Empty State Enhancement */
.empty-state {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #e5e7eb;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Modern Pagination Enhancement */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.modern-pagination .pagination {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-pagination .page-link {
    border: none;
    padding: 12px 16px;
    color: #6b7280;
    background: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-pagination .page-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.modern-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

/* Mobile Responsive Design - Updated to maintain 3 column layout on desktop */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Modern Member Cards with Categorization */
.member-type-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.member-type-section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

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

.section-header .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .section-header {
        text-align: left;
    }
    
    .section-header .d-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #6366f1;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.member-count-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.modern-member-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.modern-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.member-card-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.member-avatar {
    position: relative;
    display: inline-block;
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-card-body {
    padding: 1rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.member-designation {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-company {
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-location {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.member-location i {
    color: #10b981;
    font-size: 0.75rem;
}

.member-expertise {
    color: #4b5563;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-style: italic;
}

.member-experience {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ecfdf5;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: auto;
}

.member-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    margin-top: auto;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.member-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.member-action-btn:hover {
    color: #ffffff;
    background: #6366f1;
    border-color: #6366f1;
    transform: scale(1.1);
    text-decoration: none;
}

/* Member Profile Modal Styles */
.member-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.member-info h4 {
    color: #1f2937;
    margin: 0;
}

.member-info .member-designation {
    color: #6366f1;
    font-weight: 600;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.expertise-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.member-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.member-contact-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header {
        text-align: center;
    }
    
    .section-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .member-count-badge {
        align-self: center;
    }
    
    .modern-member-card {
        margin-bottom: 1.5rem;
    }
    
    .member-contact-actions {
        justify-content: stretch;
    }
    
    .member-contact-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* Legacy Blog Card Support */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

/* Testimonial Card */
.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--accent-gold);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    color: var(--mid-gray);
    margin: 1rem 0 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    margin-right: 1rem;
}

.testimonial-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--charcoal-gray);
}

.testimonial-info p {
    margin: 0;
    color: var(--mid-gray);
    font-size: 0.9rem;
}

/* Filter Component */
.filter-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 500;
    color: var(--charcoal-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--charcoal-gray);
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(16, 89, 155, 0.25);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-tag {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    background: #0d4a82;
}

.filter-tag.active {
    background: var(--accent-gold);
}

/* Pagination Component */
.pagination-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.pagination-custom .page-link {
    color: var(--primary-blue);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.pagination-custom .page-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Map Styling */
.map-iframe {
    position: relative;
    margin-bottom: 1rem;
}

.map-iframe iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.map-iframe iframe:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .map-iframe iframe {
        height: 250px;
    }
}

/* Form Components */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    font-weight: 500;
    color: var(--charcoal-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--charcoal-gray);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control-custom:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(16, 89, 155, 0.25);
}

.form-control-custom.is-invalid {
    border-color: var(--coral-red);
}

.form-control-custom.is-valid {
    border-color: var(--emerald-green);
}

.form-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-feedback.invalid {
    color: var(--coral-red);
}

.form-feedback.valid {
    color: var(--emerald-green);
}

/* Toast Component */
.toast-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 1rem 1.5rem;
    z-index: 1050;
    transform: translateX(100%);
    transition: var(--transition);
}

.toast-custom.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--emerald-green);
}

.toast-error {
    border-left: 4px solid var(--coral-red);
}

.toast-warning {
    border-left: 4px solid var(--accent-gold);
}

.toast-info {
    border-left: 4px solid var(--primary-blue);
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.toast-title {
    font-weight: 600;
    color: var(--charcoal-gray);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--mid-gray);
    cursor: pointer;
    font-size: 1.2rem;
}

.toast-body {
    color: var(--mid-gray);
    margin: 0;
}

/* Loading States */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--mid-gray);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-bottom: 0.5rem;
}

/* Members Directory Enhancements */
.members-header {
    background: var(--sky-blue);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.member-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Ensure proper grid layout */
#members-container.row {
    display: flex !important;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

#members-container .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 991.98px) {
    #members-container .col-lg-4 {
        width: 50%;
    }
}

@media (max-width: 767.98px) {
    #members-container .col-lg-4 {
        width: 100%;
    }
}

/* Member Profile Page Styles */
.member-profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

.profile-image-container {
    background: #f8fafc;
    padding: 40px 30px;
    text-align: center;
    /* min-height: 500px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 260px;
    height: 260px;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 600;
    color: white;
}

.profile-content {
    padding: 60px 40px 40px;
}


.info-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.info-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.info-value.business-name {
    font-size: 1.4rem;
    color: var(--text-color);
}

.contact-section {
    background: #f8f9fa;
    padding: 40px;
    border-top: 1px solid #e1e8ed;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-value.location {
    color: var(--text-color);
}

.business-description {
    padding: 30px 40px;
    border-top: 1px solid #e1e8ed;
    background: #fafbfc;
}

.business-desc-text {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.detail-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    height: 100%;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.member-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.achievement-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #666;
    border-left: 4px solid var(--primary-color);
}

.achievement-item i {
    color: #ffc107;
}

.specialization-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 8px 8px 0;
}

.action-buttons .btn {
    border-radius: 8px;
    font-weight: 600;
}

.member-stats {
    border-top: 1px solid #e1e8ed;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/*.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c6ef5 100%);
} */

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .profile-image-container {
        min-height: 300px;
        padding: 40px 20px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 36px;
    }
    
    .profile-content {
        padding: 40px 30px 30px;
    }
    
    .member-name {
        font-size: 2rem;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .profile-content {
        padding: 30px 20px 20px;
    }
    
    .member-name {
        font-size: 1.75rem;
    }
    
    .info-value.business-name {
        font-size: 1.4rem;
    }
    
    .info-value {
        font-size: 1.2rem;
    }
    
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .detail-card {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.member-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* Enhanced Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-blue);
    border: 2px solid #e9ecef;
    margin: 0 2px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.pagination .page-link:hover {
    background-color: var(--sky-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.pagination .page-item.disabled .page-link {
    color: var(--mid-gray);
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* Responsive Member Cards */
@media (max-width: 1199.98px) {
    .member-card .card-body {
        padding: 1.25rem;
    }
    
    .member-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 991.98px) {
    /* On tablets: 2 cards per row */
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    /* On mobile: 1 card per row */
    .col-lg-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .member-card .card-body {
        padding: 1rem;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .members-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .members-header > div {
        text-align: center;
    }
    
    /* Responsive pagination */
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .member-card .card-body {
        padding: 0.875rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-designation,
    .member-business {
        font-size: 0.875rem;
    }
    
    /* Compact pagination for small screens */
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        margin: 0 1px;
    }
}

/* Filter sidebar responsive */
@media (max-width: 991.98px) {
    .filter-container {
        background: var(--sky-blue);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        margin-bottom: 2rem;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
}

/* View toggle buttons */
.view-options {
    align-items: center;
}

.view-options .btn-group {
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-options .btn {
    border: none;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--mid-gray);
}

.view-options .btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* Results count styling */
#resultsCount {
    font-weight: 500;
    color: var(--charcoal-gray);
}

/* Sort dropdown */
.sort-options .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    min-width: 200px;
}

.sort-options .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(16, 89, 155, 0.25);
}
}

.empty-state-description {
    font-size: 1rem;
    color: var(--mid-gray);
    margin-bottom: 2rem;
}

/* Blog Detail Page Styles */
.article-header-professional {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.article-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 2rem;
}

.article-social-share .btn {
    width: 40px;
    height: 40px;
    border-color: #e5e7eb;
    color: #6b7280;
    transition: all 0.3s ease;
}

.article-social-share .btn:hover {
    background: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
}

.featured-image-section {
    background: #f8fafc;
    padding: 2rem 0;
}

.featured-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-meta-detailed {
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #059669;
    padding: 1.5rem;
}

.author-avatar-detailed {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.article-body {
    background: #ffffff;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-subheading {
    color: #059669;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-paragraph {
    text-align: justify;
    margin-bottom: 1.5rem;
}

.article-list {
    margin: 1rem 0 1.5rem 0;
}

.article-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.article-highlights {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 12px;
    border-left: 4px solid #0277bd;
    padding: 1.5rem;
    margin-top: 2rem;
}

.article-highlights h5 {
    color: #0277bd;
    font-weight: bold;
    margin-bottom: 1rem;
}

.article-tags .badge {
    font-size: 0.875rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.engagement-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.engagement-actions .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.sidebar-card .card-header h5 {
    color: #374151;
    font-weight: 600;
    margin: 0;
}

.sidebar-card .card-body {
    padding: 1.5rem;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.comments-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comment-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.newsletter-form .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.newsletter-form .btn {
    border-radius: 8px;
}

/* Responsive Design for Components */
@media (max-width: 767px) {
    .member-card,
    .event-card,
    .blog-card,
    .modern-blog-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .article-main-title {
        font-size: 2rem;
    }
    
    .article-meta-detailed {
        padding: 1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .engagement-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 1rem;
    }
    
    .filter-container {
        padding: 1rem;
    }
    
    .filter-tags {
        gap: 0.25rem;
    }
    
    .pagination-custom .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .toast-custom {
        left: 20px;
        right: 20px;
        transform: translateY(-100%);
    }
    
    .toast-custom.show {
        transform: translateY(0);
    }
}
