/*--------------------------------------------------------------
# MVV Section - Professional Light Redesign
--------------------------------------------------------------*/
.disha-onepage .mvv-section {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.05) 0%, rgba(56, 161, 105, 0.03) 25%, rgba(44, 82, 130, 0.02) 50%, rgba(56, 161, 105, 0.04) 75%, rgba(44, 82, 130, 0.03) 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 120px 0 !important;
}

.disha-onepage .mvv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(44, 82, 130, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 161, 105, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.disha-onepage .mvv-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    margin-top: 60px !important;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop: Display MVV cards in a horizontal row */
@media (min-width: 769px) {
    .disha-onepage .mvv-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        flex-direction: row !important;
        gap: 40px !important;
    }
}

.disha-onepage .mvv-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%) !important;
    padding: 50px 40px 40px !important;
    border-radius: 20px !important;
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    text-align: center !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08) !important;
    margin-bottom: 0 !important;
}

.disha-onepage .mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 50%, #6366F1 100%);
    z-index: 3;
}

.disha-onepage .mvv-card::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.disha-onepage .mvv-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 
        0 30px 60px rgba(59, 130, 246, 0.12),
        0 8px 30px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
}

.disha-onepage .mvv-card:hover::after {
    opacity: 0.8;
    transform: scale(1.2) rotate(45deg);
}

/* Light Professional Colors - Updated with Logo Colors */
.disha-onepage .mvv-card:nth-child(1) {
    background: linear-gradient(145deg, rgba(44, 82, 130, 0.15) 0%, rgba(56, 161, 105, 0.08) 100%) !important;
    border-color: rgba(44, 82, 130, 0.2) !important;
}

.disha-onepage .mvv-card:nth-child(1)::before {
    background: linear-gradient(90deg, #2C5282 0%, #1A365D 100%) !important;
}

.disha-onepage .mvv-card:nth-child(1)::after {
    background: radial-gradient(circle, rgba(44, 82, 130, 0.12) 0%, transparent 70%) !important;
}

.disha-onepage .mvv-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(56, 161, 105, 0.15) 0%, rgba(44, 82, 130, 0.08) 100%) !important;
    border-color: rgba(56, 161, 105, 0.2) !important;
}

.disha-onepage .mvv-card:nth-child(2)::before {
    background: linear-gradient(90deg, #38A169 0%, #2F855A 100%) !important;
}

.disha-onepage .mvv-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.12) 0%, transparent 70%) !important;
}

.disha-onepage .mvv-card:nth-child(3) {
    background: linear-gradient(145deg, rgba(44, 82, 130, 0.15) 0%, rgba(56, 161, 105, 0.08) 100%) !important;
    border-color: rgba(44, 82, 130, 0.2) !important;
}

.disha-onepage .mvv-card:nth-child(3)::before {
    background: linear-gradient(90deg, #2C5282 0%, #1A365D 100%) !important;
}

.disha-onepage .mvv-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(44, 82, 130, 0.12) 0%, transparent 70%) !important;
}

.disha-onepage .mvv-card:nth-child(4) {
    background: linear-gradient(145deg, rgba(56, 161, 105, 0.15) 0%, rgba(44, 82, 130, 0.08) 100%) !important;
    border-color: rgba(56, 161, 105, 0.2) !important;
}

.disha-onepage .mvv-card:nth-child(4)::before {
    background: linear-gradient(90deg, #38A169 0%, #2F855A 100%) !important;
}

.disha-onepage .mvv-card:nth-child(4)::after {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.12) 0%, transparent 70%) !important;
}

.disha-onepage .mvv-card:nth-child(5) {
    background: linear-gradient(145deg, rgba(44, 82, 130, 0.15) 0%, rgba(56, 161, 105, 0.08) 100%) !important;
    border-color: rgba(44, 82, 130, 0.2) !important;
}

.disha-onepage .mvv-card:nth-child(5)::before {
    background: linear-gradient(90deg, #2C5282 0%, #1A365D 100%) !important;
}

.disha-onepage .mvv-card:nth-child(5)::after {
    background: radial-gradient(circle, rgba(44, 82, 130, 0.12) 0%, transparent 70%) !important;
}

.disha-onepage .mvv-card:nth-child(6) {
    background: linear-gradient(145deg, rgba(56, 161, 105, 0.15) 0%, rgba(44, 82, 130, 0.08) 100%) !important;
    border-color: rgba(56, 161, 105, 0.2) !important;
}

.disha-onepage .mvv-card:nth-child(6)::before {
    background: linear-gradient(90deg, #38A169 0%, #2F855A 100%) !important;
}

.disha-onepage .mvv-card:nth-child(6)::after {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.12) 0%, transparent 70%) !important;
}

.disha-onepage .mvv-icon {
    font-size: 3.5rem !important;
    margin-bottom: 25px !important;
    display: block !important;
    transition: all 0.4s ease !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
    position: relative !important;
    z-index: 1 !important;
    /* Prevent icon from going beyond card boundaries */
    max-width: 100% !important;
    text-align: center !important;
}

.disha-onepage .mvv-card:nth-child(1) .mvv-icon {
    color: #2C5282 !important;
}

.disha-onepage .mvv-card:nth-child(2) .mvv-icon {
    color: #38A169 !important;
}

.disha-onepage .mvv-card:nth-child(3) .mvv-icon {
    color: #2C5282 !important;
}

.disha-onepage .mvv-card:nth-child(4) .mvv-icon {
    color: #38A169 !important;
}

.disha-onepage .mvv-card:nth-child(5) .mvv-icon {
    color: #2C5282 !important;
}

.disha-onepage .mvv-card:nth-child(6) .mvv-icon {
    color: #38A169 !important;
}

.disha-onepage .mvv-card {
    overflow: hidden !important;
    position: relative !important;
    /* Ensure content stays within card boundaries */
    contain: layout !important;
}

.disha-onepage .mvv-card:hover .mvv-icon {
    transform: scale(1.05) !important; /* Reduced from 1.1 to prevent overflow */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15)) !important;
    /* Ensure icon stays within boundaries */
    transform-origin: center !important;
}

.disha-onepage .mvv-card h3 {
    font-size: 2rem !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
}

.disha-onepage .mvv-card:nth-child(1) h3 {
    color: #2C5282 !important;
}

.disha-onepage .mvv-card:nth-child(2) h3 {
    color: #38A169 !important;
}

.disha-onepage .mvv-card:nth-child(3) h3 {
    color: #2C5282 !important;
}

.disha-onepage .mvv-card:nth-child(4) h3 {
    color: #38A169 !important;
}

.disha-onepage .mvv-card:nth-child(5) h3 {
    color: #2C5282 !important;
}

.disha-onepage .mvv-card:nth-child(6) h3 {
    color: #38A169 !important;
}

.disha-onepage .mvv-card .mvv-description {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #64748B !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/*--------------------------------------------------------------
# Guidance Section - Professional Light Redesign
--------------------------------------------------------------*/
.guidance-section {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.guidance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.guidance-item {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 45px 35px 35px;
    border-radius: 18px;
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.04),
        0 3px 15px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.06);
    text-align: center;
}

.guidance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 50%, #64748B 100%);
    z-index: 3;
    transition: all 0.3s ease;
}

.guidance-item::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.guidance-item:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.08),
        0 6px 25px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.12);
}

.guidance-item:hover::before {
    height: 6px;
}

.guidance-item:hover::after {
    opacity: 0.8;
    transform: scale(1.3) rotate(30deg);
}

/* Professional Logo Colors Pattern - Blue/Green alternating */
.guidance-item:nth-child(1) {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    border-color: rgba(44, 82, 130, 0.08);
}

.guidance-item:nth-child(1)::before {
    background: linear-gradient(90deg, #2C5282 0%, #1A365D 100%);
}

.guidance-item:nth-child(1)::after {
    background: radial-gradient(circle, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
}

.guidance-item:nth-child(2) {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    border-color: rgba(56, 161, 105, 0.08);
}

.guidance-item:nth-child(2)::before {
    background: linear-gradient(90deg, #38A169 0%, #2F855A 100%);
}

.guidance-item:nth-child(2)::after {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.06) 0%, transparent 70%);
}

.guidance-item:nth-child(3) {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    border-color: rgba(44, 82, 130, 0.08);
}

.guidance-item:nth-child(3)::before {
    background: linear-gradient(90deg, #2C5282 0%, #1A365D 100%);
}

.guidance-item:nth-child(3)::after {
    background: radial-gradient(circle, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
}

.guidance-item:nth-child(4) {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    border-color: rgba(56, 161, 105, 0.08);
}

.guidance-item:nth-child(4)::before {
    background: linear-gradient(90deg, #38A169 0%, #2F855A 100%);
}

.guidance-item:nth-child(4)::after {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.06) 0%, transparent 70%);
}

.guidance-item:nth-child(5) {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    border-color: rgba(44, 82, 130, 0.08);
}

.guidance-item:nth-child(5)::before {
    background: linear-gradient(90deg, #2C5282 0%, #1A365D 100%);
}

.guidance-item:nth-child(5)::after {
    background: radial-gradient(circle, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
}

.guidance-icon {
    font-size: 3.2rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.guidance-item:nth-child(1) .guidance-icon {
    color: #2C5282;
}

.guidance-item:nth-child(2) .guidance-icon {
    color: #38A169;
}

.guidance-item:nth-child(3) .guidance-icon {
    color: #2C5282;
}

.guidance-item:nth-child(4) .guidance-icon {
    color: #38A169;
}

.guidance-item:nth-child(5) .guidance-icon {
    color: #2C5282;
}

.guidance-item:hover .guidance-icon {
    transform: scale(1.1) rotateY(15deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.guidance-item h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.guidance-item h4 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 500;
    opacity: 0.8;
    font-style: italic;
}

/* Light professional colors for headings */
.guidance-item:nth-child(1) h3 {
    color: #1E40AF;
}

.guidance-item:nth-child(1) h4 {
    color: #3B82F6;
}

.guidance-item:nth-child(2) h3 {
    color: #047857;
}

.guidance-item:nth-child(2) h4 {
    color: #10B981;
}

.guidance-item:nth-child(3) h3 {
    color: #1E40AF;
}

.guidance-item:nth-child(3) h4 {
    color: #3B82F6;
}

.guidance-item:nth-child(4) h3 {
    color: #047857;
}

.guidance-item:nth-child(4) h4 {
    color: #10B981;
}

.guidance-item:nth-child(5) h3 {
    color: #1E40AF;
}

.guidance-item:nth-child(5) h4 {
    color: #3B82F6;
}

.guidance-item p {
    color: #64748B;
    line-height: 1.7;
    margin: 0;
    text-align: center;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Programs Section
--------------------------------------------------------------*/
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.program-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.program-image {
    position: relative;
}

.program-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 69, 19, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-item:hover .program-overlay {
    opacity: 1;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 600;
}

.program-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/*--------------------------------------------------------------
# About & Gallery Section
--------------------------------------------------------------*/
.about-content-wrapper {
    display: block;
    text-align: center;
}

.about-text {
    margin-bottom: 50px;
}

/* Gallery Section Enhancements */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-content {
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.gallery-fallback {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 600px;
}

.gallery-fallback p {
    color: #64748B;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.about-gallery {
    margin-top: 40px;
}

.about-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-details h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-teams {
    margin-bottom: 30px;
}

.team-highlight {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.team-highlight h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-highlight h4 i {
    color: var(--secondary-color);
}

.team-highlight p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 10px;
}

.stat-item strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team-section {
    background-color: var(--accent-color);
}

/* WP Team Plugin Uniform Sizing */
/* Override WP Team plugin styles for uniform photo sizing */
.wpteam-members,
.wpteam-member,
.team-content .wpteam-members {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}

.wpteam-member {
    width: 280px !important;
    max-width: 280px !important;
    text-align: center !important;
    background: #fff !important;
    border-radius: 15px !important;
    padding: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.wpteam-member:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Uniform team member photo sizing */
.wpteam-member img,
.wpteam-member .wpteam-member-photo img,
.wpteam-member .wpteam-member-image img {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important; /* Changed from center top to center center */
    display: block !important;
    margin: 0 auto 20px auto !important;
    border: 4px solid #fff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

/* Fix for individual team member pages */
.single-wpteam_member .wpteam-member img,
.single-wpteam_member .wpteam-member-photo img,
.single-wpteam_member .wpteam-member-image img,
.single-wpteam_member .entry-content img {
    width: 250px !important;
    height: 250px !important;
    object-position: center center !important;
    margin: 20px auto !important;
}

/* Mobile fixes for team photos */
@media (max-width: 768px) {
    .wpteam-member img,
    .wpteam-member .wpteam-member-photo img,
    .wpteam-member .wpteam-member-image img {
        width: 150px !important;
        height: 150px !important;
        object-position: center center !important;
    }
    
    .single-wpteam_member .wpteam-member img,
    .single-wpteam_member .wpteam-member-photo img,
    .single-wpteam_member .wpteam-member-image img,
    .single-wpteam_member .entry-content img {
        width: 200px !important;
        height: 200px !important;
        object-position: center center !important;
    }
}

.wpteam-member:hover img {
    transform: scale(1.05) !important;
}

/* Uniform text styling */
.wpteam-member .wpteam-member-name,
.wpteam-member h3,
.wpteam-member h2 {
    font-family: var(--heading-font) !important;
    color: var(--primary-color) !important;
    font-size: 1.3rem !important;
    margin: 10px 0 8px 0 !important;
    font-weight: 600 !important;
}

.wpteam-member .wpteam-member-designation,
.wpteam-member .wpteam-member-position {
    color: var(--secondary-color) !important;
    font-style: italic !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    font-size: 1rem !important;
}

.wpteam-member .wpteam-member-description,
.wpteam-member p {
    color: #1a202c !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Social links styling for WP Team */
.wpteam-member .wpteam-member-social,
.wpteam-member .wpteam-social {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
    position: relative !important;
    z-index: 1 !important;
}

.wpteam-member .wpteam-member-social a,
.wpteam-member .wpteam-social a {
    width: 35px !important;
    height: 35px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
    position: relative !important;
    z-index: 2 !important;
}

.wpteam-member .wpteam-member-social a:hover,
.wpteam-member .wpteam-social a:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1) !important;
}

/* Fix for individual team member pages - prevent social icons from attaching to header */
.single-wpteam_member .wpteam-member-social,
.single-wpteam_member .wpteam-social,
.single-wpteam_member .entry-content .wpteam-member-social,
.single-wpteam_member .entry-content .wpteam-social {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    position: static !important;
    clear: both !important;
}

/* Ensure proper spacing on individual team pages */
.single-wpteam_member .entry-content {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

.single-wpteam_member .entry-header {
    margin-bottom: 30px !important;
}

/* Custom team member styling (fallback) */
.team-member {
    text-align: center;
}

.team-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #fff;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Changed from top to center */
    transition: transform 0.3s ease;
}

/* Additional fixes for single team member pages */
.single-wpteam_member {
    padding-top: 40px !important;
}

.single-wpteam_member .site-main {
    padding-top: 20px !important;
}

/* Prevent any floating issues that might cause social icons to attach to header */
.single-wpteam_member .entry-content::before,
.single-wpteam_member .entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 82, 130, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.team-info h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin: 10px 0 5px;
    font-size: 1.3rem;
}

.team-info .team-role {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-info .team-bio {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/*--------------------------------------------------------------
# Events Section
--------------------------------------------------------------*/
.events-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f8fafc 100%);
}

/* Basic styling for The Events Calendar list view */
.events-content .tribe-events-calendar-list__event-title a {
    color: var(--secondary-color);
    font-family: var(--heading-font);
}

.events-content .tribe-events-calendar-list__event-datetime {
    color: var(--primary-color);
    font-weight: bold;
}

/* Events Calendar Templates styling */
.events-content .ect-list-posts {
    margin: 0 !important;
    padding: 0 !important;
}

.events-content .ect-list-post {
    margin-bottom: 20px !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    background: #fff !important;
}

/* Fix mobile events header cutoff */
.events-content .ect-header-text,
.events-content .ect-list-header,
.events-content .tribe-events-header {
    padding: 15px 20px !important;
    margin: 90px -20px 20px !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    position: relative !important;
    z-index: 10 !important;
}

.events-content .ect-header-text h3,
.events-content .ect-list-header h3,
.events-content .tribe-events-header h1 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Fallback events styling */
.events-list,
.events-fallback {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-item h3 {
    color: var(--primary-color);
    font-family: var(--heading-font);
    margin-bottom: 10px;
}

.event-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.event-item p:not(.event-date) {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/*--------------------------------------------------------------
# Impact Section
--------------------------------------------------------------*/
.impact-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    justify-content: center;
}

.impact-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(44, 82, 130, 0.1);
}

/* Counter animations for functional teams in about section */
.stat-item .counter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: inline;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.counter-plus {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 10px;
}

/*--------------------------------------------------------------
# Get Involved Section
--------------------------------------------------------------*/
.get-involved-section {
    background-color: var(--accent-color);
}

.involvement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.involvement-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 400px;
    position: relative;
}

.involvement-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.involvement-card h3 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.involvement-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

.involvement-card .btn {
    margin: 20px auto 0;
    width: 100%;
    max-width: 220px;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    align-self: center;
    text-overflow: clip;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.3;
    min-height: 50px;
    vertical-align: top;
    position: relative;
}

/* Unified button styling for Get Involved section */
.involvement-card .btn,
.involvement-card .btn-primary,
.involvement-card .btn-secondary,
.involvement-card button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.2);
    margin-top: 20px;
    width: 100%;
    max-width: 220px;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.3;
    min-height: 50px;
    vertical-align: top;
    position: relative;
}

.involvement-card .btn:hover,
.involvement-card .btn-primary:hover,
.involvement-card .btn-secondary:hover,
.involvement-card button:hover {
    background: linear-gradient(135deg, var(--hover-color) 0%, #2f855a 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.3);
    color: #fff !important;
    text-decoration: none;
}

