/* Expert Learning - Learn with Dr. Joseph Section */
:root {
    --accent-color-rgb: 242, 201, 76; /* RGB values for F2C94C */
}

.expert-learning {
    margin: 80px auto 0;
    max-width: 1200px;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.expert-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.expert-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.expert-title::before {
    content: '✦';
    font-size: 1.5rem;
    color: var(--accent-color);
    position: absolute;
    left: -15px;
    top: 5px;
}

.expert-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    animation: expandWidth 3s ease-in-out infinite;
}

@keyframes expandWidth {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

.expert-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    line-height: 1.6;
}

.expert-subtitle::before,
.expert-subtitle::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 30px;
    background: var(--accent-color);
    opacity: 0.5;
    top: 50%;
}

.expert-subtitle::before {
    left: -15px;
}

.expert-subtitle::after {
    right: -15px;
}

/* Expert Grid Cards */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.expert-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.4s ease;
}

.expert-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(242, 201, 76, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--accent-color);
}

.expert-card:hover::before {
    height: 100%;
}

.expert-card:hover::after {
    opacity: 1;
}

.expert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(26, 93, 26, 0.25);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.expert-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expert-card:hover .expert-icon {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 93, 26, 0.35);
}

.expert-card:hover .expert-icon::before {
    opacity: 1;
}

.expert-card h4 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.expert-card:hover h4 {
    color: var(--primary-color);
}

.expert-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Expert Profile */
.expert-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.profile-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: profilePatternMove 60s linear infinite;
}

@keyframes profilePatternMove {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-placeholder {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    border: 4px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                inset 0 0 15px rgba(255, 255, 255, 0.5);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                    inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
                    inset 0 0 20px rgba(255, 255, 255, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                    inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.profile-content {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(var(--accent-color-rgb), 0.1), transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
}

.profile-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.profile-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.profile-content h5 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
    font-style: italic;
    position: relative;
    padding-bottom: 15px;
}

.profile-content h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.profile-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    text-align: justify;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(var(--accent-color-rgb), 0.1);
}

.profile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.profile-link:hover {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(26, 93, 26, 0.2);
}

.profile-link:hover::before {
    width: 100%;
    opacity: 0.2;
}

.profile-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.profile-link:hover i {
    transform: translateX(5px);
    color: var(--accent-color);
}

.profile-link:hover {
    color: var(--secondary-color);
}

.profile-link:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .expert-profile {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expert-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-title {
        font-size: 1.8rem;
    }
    
    .expert-subtitle {
        font-size: 1rem;
    }
    
    .profile-placeholder {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }
    
    .profile-content {
        padding: 30px 25px;
    }
    
    .profile-content h3 {
        font-size: 1.6rem;
    }
}
