/* =========================================
   World Class Affiliation Section - v3
   ========================================= */

.affiliation-section {
    /* 🚀 Faltu gap kam kiya par padding rakhi taki zoom effect na kate */
    padding: 30px 0 60px 0; 
    
    /* 🚀 Wapas wahi premium background add kar diya gaya hai */
    background: #f4f7fe; 
    
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
}

.title-wrapper {
    margin-bottom: 20px; 
    position: relative;
}

.affiliation-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.affiliation-title span { color: #4361ee; }

.affiliation-subtitle {
    color: #475569;
    font-size: 16px;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: #4361ee;
    margin: 15px auto 0;
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    background: #ef4444;
    top: 0; left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- 🖼️ THE TIGHT WOODEN FRAME --- */
.affiliation-slider .item {
    /* Top & bottom padding badhayi hai taki zoom hone par image kate nahi */
    padding: 40px 15px; 
}

.certificate-frame {
    position: relative;
    background: #fff;
    padding: 4px; /* Bilkul sat-ta hua white mount */
    
    /* Premium 3D Wooden Border */
    border: 16px solid #4a2a17;
    border-style: ridge;
    border-color: #63361a #3a1e0d #241106 #542d15;
    
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    border-radius: 2px;
    
    /* 🚀 Zoom and Pop Smooth Transition */
    transform: translateZ(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    z-index: 1;
    overflow: hidden; /* Shine effect ko frame ke andar rakhne ke liye */
}

.certificate-frame img {
    width: 100%;
    height: auto;
    display: block; 
    border: 1px solid #d1d5db; 
}

/* --- 🌟 HOVER ZOOM & POP EFFECT --- */
.affiliation-slider .item:hover .certificate-frame {
    /* Hover karne par image thodi upar jayegi aur 1.12 times badi ho jayegi */
    transform: translateY(-10px) scale(1.12);
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    z-index: 10; /* Dusre certificates ke aage lane ke liye */
}

/* --- ✨ CHAMAK (GLASS SHINE) EFFECT --- */
.certificate-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    /* Shishe (glass) jaisi chamak */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); /* Angle par chamak */
    animation: shine-effect 3.5s infinite; /* Har 3.5 second me chamkega */
    pointer-events: none; /* Taki click me koi disturb na ho */
    z-index: 5;
}

@keyframes shine-effect {
    0% { left: -150%; }
    20% { left: 200%; } /* Teji se chamak niklegi */
    100% { left: 200%; } /* Fir thodi der rukegi */
}

/* --- 🎛️ Navigation Dots --- */
.affiliation-slider .owl-dots {
    margin-top: 0px;
    text-align: center;
}

.affiliation-slider .owl-dot { outline: none; }

.affiliation-slider .owl-dot span {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    display: block;
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.affiliation-slider .owl-dot.active span {
    background: #4361ee;
    width: 24px;
    border-radius: 5px;
}

/* --- 📱 Mobile Responsiveness --- */
@media(max-width: 768px) {
    .affiliation-section { padding: 25px 0 40px 0; }
    .affiliation-title { font-size: 30px; }
    
    .affiliation-slider .item { padding: 30px 10px; } /* Mobile pe zoom hone ki jagah */
    
    .certificate-frame { 
        padding: 3px; 
        border-width: 12px; 
    }
}