/* =========================================
   🔥 WORLD-CLASS GLOWING FACULTY UI (UPDATED SIZE) 🔥
   ========================================= */

/* Animated Gradient Background */
.expert-faculty-wrap { 
    position: relative;
    padding: 80px 0 120px; 
    background: #f4f7fb; 
    font-family: 'Poppins', sans-serif; 
    overflow: hidden;
    z-index: 1;
}

/* Background Glowing Orbs */
.expert-faculty-wrap::before {
    content: ''; position: absolute; top: -10%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    border-radius: 50%; z-index: -1; filter: blur(40px);
    animation: floatOrb 6s infinite alternate;
}
.expert-faculty-wrap::after {
    content: ''; position: absolute; bottom: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%; z-index: -1; filter: blur(50px);
    animation: floatOrb 8s infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

.fac-header { text-align: center; margin-bottom: 60px; padding: 0 20px; position: relative; z-index: 2; }
.fac-title { font-size: 40px; font-weight: 800; color: #0f172a; text-transform: uppercase; margin-bottom: 12px; letter-spacing: -0.5px; text-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.fac-title span { color: #ef4444; background: linear-gradient(90deg, #ef4444, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.fac-sub { font-size: 16px; color: #475569; max-width: 600px; margin: 0 auto; font-weight: 500; }

/* 🔥 WIDER GRID FOR BIGGER IMAGES 🔥 */
.fac-grid { 
    max-width: 1350px; /* Grid chouda kiya gaya hai */
    width: 95%; /* Screen ka 95% hissa use karega */
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; /* Cards ke beech ka gap */
    position: relative; 
    z-index: 2; 
}

/* 💎 Premium Glowing Card 💎 */
.fac-card { 
    background: #ffffff; 
    border-radius: 22px; 
    position: relative; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 5;
}

/* The Magic Hover Glow Effect */
.fac-card::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 26px;
    background: linear-gradient(45deg, #ef4444, #4361ee, #10b981, #ef4444);
    background-size: 300%;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.5s ease;
    animation: glowingEffect 4s linear infinite;
}

@keyframes glowingEffect {
    0% { background-position: 0 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.fac-card:hover::before { opacity: 0.85; }
.fac-card:hover { transform: translateY(-15px); }

/* 🔥 TALLER IMAGE BOX 🔥 */
.fac-img-box { 
    width: 100%; 
    aspect-ratio: 3/4; /* Image aur lamba aur bada dikhega */
    border-radius: 22px; 
    overflow: hidden; 
    position: relative; 
}
.fac-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s ease; }
.fac-card:hover .fac-img-box img { transform: scale(1.1); }
.fac-auto-avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #475569; font-size: 60px; font-weight: 800; }

/* 📝 Glassmorphism Floating Info Box - Adjusted Margin */
.fac-info-box { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    width: 90%; /* Box thoda chouda kiya */
    margin: -35px auto 0; /* Box ko thoda neeche kiya taaki photo zyada dikhe */
    position: relative; 
    z-index: 10; 
    border-radius: 16px; 
    padding: 20px 12px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    transition: all 0.4s ease; 
}

.fac-card:hover .fac-info-box { 
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2); 
    transform: translateY(-5px);
}

.fac-name { font-size: 19px; font-weight: 800; color: #0f172a; margin-bottom: 6px; line-height: 1.2; }
.fac-desig { font-size: 13px; font-weight: 700; color: #4361ee; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.fac-exp { display: inline-block; background: rgba(67, 97, 238, 0.1); color: #4361ee; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(67, 97, 238, 0.2); }

/* 🌐 Hover Social Icons */
.fac-social { position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(20px); transition: all 0.4s ease; }
.fac-card:hover .fac-social { opacity: 1; transform: translateX(0); }
.fac-social a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); color: #0f172a; font-size: 16px; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.15); transition: 0.3s; }
.fac-social a:hover { transform: scale(1.15); color: #fff; }
.fac-social a.fb:hover { background: #1877F2; border: none; }
.fac-social a.insta:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border: none; }

/* =========================================
   📱 PERFECT MOBILE RESPONSIVENESS 📱
   ========================================= */
@media (max-width: 1200px) { 
    .fac-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; } 
}
@media (max-width: 900px) { 
    .fac-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; } 
}
@media (max-width: 550px) { 
    .fac-grid { 
        grid-template-columns: repeat(1, 1fr); /* Mobile me 1 bada card ek line me */
        gap: 40px; 
        max-width: 380px; /* Mobile par card bohot zyada fail na jaye uske liye limit */
    } 
    .fac-title { font-size: 32px; }
}