/* =============================================
   HOMEPAGE STYLES - Extracted for caching
   This file contains all static CSS previously
   inlined in index.php for better performance.
   ============================================= */

/* ========================================
   GALLERY MODE - Main Rankers Grid
   ======================================== */
.mr-card-wrapper {
    animation: mrFadeInUp 0.6s ease both;
    animation-delay: var(--mr-delay, 0s);
}

@keyframes mrFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mr-gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    max-width: var(--ranker-card-width, 320px);
    margin: 0 auto;
}

.mr-gallery-card:hover {
    transform: translateY(-10px);
}

.mr-card-inner {
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mr-photo-container {
    position: relative;
    margin-bottom: 18px;
    display: inline-block;
}

.mr-photo-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--mr-grad-start), var(--mr-grad-end));
    margin: 0 auto;
    transition: all 0.4s ease;
}

.mr-gallery-card:hover .mr-photo-ring {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.mr-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.mr-rank-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--mr-grad-start), var(--mr-grad-end));
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.72rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.mr-rank-label {
    opacity: 0.85;
    font-size: 0.62rem;
    letter-spacing: 1px;
}

.mr-rank-number {
    font-size: 0.88rem;
    font-weight: 900;
}

.mr-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mr-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
}

.mr-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mr-detail-item i {
    font-size: 0.7rem;
    width: 14px;
}

/* --- Gallery Card Styles --- */
.mr-style-premium .mr-gallery-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.mr-style-premium .mr-gallery-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--mr-grad-start);
}

.mr-style-premium .mr-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mr-grad-start), var(--mr-grad-end));
    z-index: 1;
}

.mr-style-premium .mr-name {
    color: #1a1a2e;
}

.mr-style-premium .mr-details {
    color: #64748b;
}

.mr-style-premium .mr-detail-item i {
    color: var(--mr-accent);
}

.mr-style-elegant .mr-gallery-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.mr-style-elegant .mr-gallery-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.mr-style-elegant .mr-card-glow {
    display: none;
}

.mr-style-elegant .mr-photo-ring {
    background: #f1f5f9;
    padding: 5px;
}

.mr-style-elegant .mr-gallery-card:hover .mr-photo-ring {
    background: linear-gradient(135deg, var(--mr-grad-start), var(--mr-grad-end));
}

.mr-style-elegant .mr-rank-badge {
    background: #1e293b;
}

.mr-style-elegant .mr-name {
    color: #1e293b;
}

.mr-style-elegant .mr-details {
    color: #94a3b8;
}

.mr-style-elegant .mr-detail-item i {
    color: #94a3b8;
}

.mr-style-vibrant .mr-gallery-card {
    background: linear-gradient(145deg, var(--mr-grad-start), var(--mr-grad-end));
    border: none;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.mr-style-vibrant .mr-gallery-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.mr-style-vibrant .mr-card-glow {
    display: none;
}

.mr-style-vibrant .mr-photo-ring {
    background: rgba(255, 255, 255, 0.3);
}

.mr-style-vibrant .mr-photo {
    border-color: rgba(255, 255, 255, 0.9);
}

.mr-style-vibrant .mr-rank-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
}

.mr-style-vibrant .mr-rank-label {
    color: #64748b;
}

.mr-style-vibrant .mr-rank-number {
    color: #1e293b;
}

.mr-style-vibrant .mr-name {
    color: #fff;
}

.mr-style-vibrant .mr-details {
    color: rgba(255, 255, 255, 0.85);
}

.mr-style-vibrant .mr-detail-item i {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 991px) {
    .mr-photo-ring {
        width: 95px;
        height: 95px;
    }

    .mr-name {
        font-size: 0.88rem;
    }

    .mr-details {
        font-size: 0.72rem;
    }
}

@media (max-width: 575px) {
    .mr-photo-ring {
        width: 85px;
        height: 85px;
    }

    .mr-card-inner {
        padding: 22px 14px 18px;
    }
}


/* ========================================
   TOP RANKERS CAROUSEL - ALL TEMPLATES
   ======================================== */
.top-rankers-section {
    padding: var(--ranker-pad-top, 80px) 0 var(--ranker-pad-bottom, 80px);
    position: relative;
    overflow: hidden;
}

.btn-premium {
    background: var(--btn-premium-bg, var(--gradient-primary));
    color: white !important;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    background: var(--btn-premium-bg-hover, var(--btn-premium-bg, var(--gradient-primary)));
}

/* ===== CLASSIC TEMPLATE ===== */
.ranker-tpl-classic {
    background: linear-gradient(180deg, #f8f9ff 0%, #eef2ff 50%, #f8f9ff 100%);
}

.ranker-tpl-classic::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ranker-tpl-classic::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.ranker-tpl-classic .ranker-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ranker-tpl-classic .ranker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--card-grad-start);
}

.ranker-tpl-classic .ranker-name {
    color: #1a1a2e;
}

.ranker-tpl-classic .ranker-exam-badge {
    background: linear-gradient(135deg, #f0f4ff, #fef3f2);
    color: #4b5563;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

/* ===== GLASSMORPHISM TEMPLATE ===== */
.ranker-tpl-glass {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
}

.ranker-tpl-glass::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.ranker-tpl-glass::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.ranker-tpl-glass .ranker-badge {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.ranker-tpl-glass .ranker-heading {
    color: #f1f5f9;
}

.ranker-tpl-glass .ranker-highlight {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranker-tpl-glass .ranker-subheading {
    color: #94a3b8;
}

.ranker-tpl-glass .ranker-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ranker-tpl-glass .ranker-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.ranker-tpl-glass .ranker-glow {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-grad-start), var(--card-grad-end), transparent);
}

.ranker-tpl-glass .ranker-name {
    color: #f1f5f9;
}

.ranker-tpl-glass .ranker-details {
    color: #94a3b8;
}

.ranker-tpl-glass .ranker-details i {
    color: #64748b;
}

.ranker-tpl-glass .ranker-exam-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranker-tpl-glass .ranker-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranker-tpl-glass .ranker-nav-btn:hover {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.ranker-tpl-glass .ranker-dot {
    background: rgba(255, 255, 255, 0.2);
}

.ranker-tpl-glass .ranker-dot.active {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.5);
}

/* ===== NEON TEMPLATE ===== */
.ranker-tpl-neon {
    background: linear-gradient(180deg, #0a0a1a 0%, #111128 50%, #0a0a1a 100%);
}

.ranker-tpl-neon::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
}

.ranker-tpl-neon .ranker-badge {
    background: transparent;
    border: 1px solid #f43f5e;
    color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3), inset 0 0 20px rgba(244, 63, 94, 0.05);
}

.ranker-tpl-neon .ranker-heading {
    color: #f1f5f9;
}

.ranker-tpl-neon .ranker-highlight {
    background: linear-gradient(135deg, #f43f5e, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranker-tpl-neon .ranker-subheading {
    color: #64748b;
}

.ranker-tpl-neon .ranker-card {
    background: linear-gradient(145deg, #111128, #1a1a3e);
    border-radius: 20px;
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ranker-tpl-neon .ranker-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-grad-start);
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.2), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ranker-tpl-neon .ranker-glow {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-grad-start), var(--card-grad-end), transparent);
    box-shadow: 0 0 15px var(--card-grad-start);
}

.ranker-tpl-neon .ranker-photo-ring {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(244, 63, 94, 0.6), 0 0 60px rgba(244, 63, 94, 0.2);
    }
}

.ranker-tpl-neon .ranker-name {
    color: #f1f5f9;
}

.ranker-tpl-neon .ranker-institute {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.ranker-tpl-neon .ranker-details {
    color: #64748b;
}

.ranker-tpl-neon .ranker-details i {
    color: #475569;
}

.ranker-tpl-neon .ranker-exam-badge {
    background: rgba(244, 63, 94, 0.1);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.ranker-tpl-neon .ranker-rank-badge {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.5);
}

.ranker-tpl-neon .ranker-nav-btn {
    background: rgba(244, 63, 94, 0.1);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.ranker-tpl-neon .ranker-nav-btn:hover {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
}

.ranker-tpl-neon .ranker-dot {
    background: rgba(244, 63, 94, 0.2);
}

.ranker-tpl-neon .ranker-dot.active {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.6);
}

/* ===== SHARED RANKER STYLES ===== */
.ranker-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ranker-heading {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ranker-highlight {
    background: linear-gradient(135deg, #667eea 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranker-subheading {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.rankers-carousel-wrapper {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
}

.rankers-carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.rankers-carousel-track {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.rankers-carousel-track.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

.rankers-carousel-track.is-dragging .ranker-card-item {
    pointer-events: none;
}

.ranker-card-item {
    flex: 0 0 calc((100% - (var(--ranker-gap, 20px) * (var(--ranker-visible, 4) - 1))) / var(--ranker-visible, 4));
    transition: all 0.4s ease;
}

.ranker-card {
    max-width: var(--ranker-card-width, 320px);
    margin: 0 auto;
}

.ranker-card-item img {
    -webkit-user-drag: none;
    pointer-events: none;
}

@media (max-width: 991px) {
    .ranker-card-item {
        flex: 0 0 calc((100% - (var(--ranker-gap, 20px) * (var(--ranker-visible-md, 2) - 1))) / var(--ranker-visible-md, 2));
    }
}

@media (max-width: 575px) {
    .ranker-card-item {
        flex: 0 0 100%;
    }
}

.ranker-glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-grad-start), var(--card-grad-end));
    border-radius: 20px 20px 0 0;
}

.ranker-photo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.ranker-photo-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.3);
    }
}

.ranker-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #f0f0f0;
}

.ranker-rank-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rb-badge-bg, #000000);
    color: var(--rb-badge-color, #ffffff);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 50px;
    border: 2.5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranker-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ranker-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.ranker-institute {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.15);
    }
}

.ranker-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b7280;
}

.ranker-details i {
    color: #9ca3af;
    width: 16px;
    margin-right: 4px;
    font-size: 0.75rem;
}

.ranker-exam-badge {
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
}

.ranker-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #374151;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 5;
}

.ranker-nav-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ranker-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.ranker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.ranker-dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* ===== MINIMAL TEMPLATE ===== */
.ranker-tpl-minimal {
    background: #f8fafc;
}

.ranker-tpl-minimal .ranker-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.ranker-tpl-minimal .ranker-heading {
    color: #1e293b;
}

.ranker-tpl-minimal .ranker-highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranker-tpl-minimal .ranker-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 20px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--card-grad-start);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ranker-tpl-minimal .ranker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ranker-tpl-minimal .ranker-glow {
    display: none;
}

.ranker-tpl-minimal .ranker-name {
    color: #334155;
}

.ranker-tpl-minimal .ranker-photo-ring {
    animation: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ranker-tpl-minimal .ranker-exam-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ranker-tpl-minimal .ranker-dot.active {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.ranker-tpl-minimal .ranker-nav-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* ===== VIBRANT TEMPLATE ===== */
.ranker-tpl-vibrant {
    background: linear-gradient(180deg, #fffbeb 0%, #fff1f2 50%, #fffbeb 100%);
}

.ranker-tpl-vibrant::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ranker-tpl-vibrant .ranker-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.ranker-tpl-vibrant .ranker-highlight {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranker-tpl-vibrant .ranker-card {
    background: linear-gradient(145deg, var(--card-grad-start), var(--card-grad-end));
    border-radius: 20px;
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.ranker-tpl-vibrant .ranker-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.ranker-tpl-vibrant .ranker-glow {
    display: none;
}

.ranker-tpl-vibrant .ranker-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ranker-tpl-vibrant .ranker-photo {
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.ranker-tpl-vibrant .ranker-photo-ring {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ranker-tpl-vibrant .ranker-institute {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ranker-tpl-vibrant .ranker-details {
    color: rgba(255, 255, 255, 0.85);
}

.ranker-tpl-vibrant .ranker-details i {
    color: rgba(255, 255, 255, 0.6);
}

.ranker-tpl-vibrant .ranker-exam-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ranker-tpl-vibrant .ranker-rank-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.ranker-tpl-vibrant .ranker-dot.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.ranker-tpl-vibrant .ranker-nav-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* ===== PASTEL TEMPLATE ===== */
.ranker-tpl-pastel {
    background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 50%, #f5f3ff 100%);
}

.ranker-tpl-pastel::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ranker-tpl-pastel .ranker-badge {
    background: linear-gradient(135deg, #c084fc, #f9a8d4);
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.3);
}

.ranker-tpl-pastel .ranker-heading {
    color: #581c87;
}

.ranker-tpl-pastel .ranker-highlight {
    background: linear-gradient(135deg, #c084fc, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranker-tpl-pastel .ranker-subheading {
    color: #7e22ce;
    opacity: 0.6;
}

.ranker-tpl-pastel .ranker-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(192, 132, 252, 0.15);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.06);
}

.ranker-tpl-pastel .ranker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.3);
}

.ranker-tpl-pastel .ranker-glow {
    height: 3px;
    background: linear-gradient(90deg, var(--card-grad-start), var(--card-grad-end));
    border-radius: 24px 24px 0 0;
    opacity: 0.6;
}

.ranker-tpl-pastel .ranker-name {
    color: #581c87;
}

.ranker-tpl-pastel .ranker-photo-ring {
    box-shadow: 0 6px 18px rgba(192, 132, 252, 0.15);
}

.ranker-tpl-pastel .ranker-exam-badge {
    background: #faf5ff;
    color: #9333ea;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.ranker-tpl-pastel .ranker-dot.active {
    background: linear-gradient(135deg, #c084fc, #f9a8d4);
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.4);
}

.ranker-tpl-pastel .ranker-nav-btn:hover {
    background: linear-gradient(135deg, #c084fc, #f9a8d4);
    box-shadow: 0 8px 25px rgba(192, 132, 252, 0.3);
}

/* ===== VERTICAL SPACING MODES ===== */
.ranker-space-default {
    padding: var(--section-padding-top) 0 var(--section-padding-bottom);
}

.ranker-space-compact {
    padding: calc(var(--section-padding-top) / 2) 0 calc(var(--section-padding-bottom) / 2);
}

.ranker-space-compact .mb-5 {
    margin-bottom: 1.5rem !important;
}

.ranker-space-spacious {
    padding: calc(var(--section-padding-top) * 1.5) 0 calc(var(--section-padding-bottom) * 1.5);
}

.ranker-space-spacious .mb-5 {
    margin-bottom: 4rem !important;
}

/* ===== CONTINUOUS SCROLLING (MARQUEE) ===== */
.rankers-carousel-track.continuous-scroll {
    animation: marqueeScroll var(--scroll-duration, 30s) linear infinite;
    transition: none !important;
}

.rankers-carousel-track.continuous-scroll:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.rankers-carousel-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Animation transitions */
.rankers-carousel-track[data-anim="slide"] {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rankers-carousel-track[data-anim="fade"] {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.rankers-carousel-track[data-anim="zoom"] {
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rankers-carousel-track[data-anim="bounce"] {
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive */
@media (max-width: 991px) {
    .ranker-heading {
        font-size: 1.8rem;
    }

    .ranker-space-default {
        padding: 50px 0 40px;
    }

    .ranker-space-compact {
        padding: 30px 0 20px;
    }

    .ranker-space-spacious {
        padding: 80px 0 60px;
    }
}

@media (max-width: 575px) {
    .ranker-heading {
        font-size: 1.4rem;
    }

    .ranker-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .ranker-prev {
        left: -10px !important;
    }

    .ranker-next {
        right: -10px !important;
    }

    .ranker-photo-ring {
        width: 90px;
        height: 90px;
    }
}


/* ========================================
   BEST COURSES SECTION
   ======================================== */
@keyframes courseFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.vit-course-card {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: none;
    transition: all .4s cubic-bezier(.25, .8, .25, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.vit-course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.vit-course-header {
    padding: 30px 24px 24px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.vit-course-title {
    color: #fff;
    font-weight: 900;
    font-size: 1.65rem;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vit-course-body {
    padding: 22px 24px 24px;
}

.vit-btn-primary {
    background: linear-gradient(135deg, var(--bc1), var(--bc2));
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 11px 18px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all .3s;
    text-decoration: none;
    text-align: center;
}

.vit-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.vit-btn-call {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 11px 18px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
    transition: all .3s;
    text-decoration: none;
    text-align: center;
}

.vit-btn-call:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

@media(max-width:767px) {
    .vit-course-title {
        font-size: 1.4rem;
    }

    .vit-course-header {
        min-height: 150px;
        padding: 24px 20px 20px;
    }

    .vit-course-body {
        padding: 18px 20px 20px;
    }
}


/* ========================================
   OUR DIRECTORS SECTION
   ======================================== */
@keyframes dirFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.dir-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dir-style-dark {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dir-style-dark:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-color: var(--dg1) !important;
}

.dir-style-light {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.dir-style-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #c7d2fe !important;
}

.dir-style-gradient {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.dir-style-gradient:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dir-card:hover .dir-photo-ring {
    transform: scale(1.08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.dir-card:hover .dir-card-top-line {
    height: 6px;
}

.dir-card-top-line {
    transition: height .3s ease;
}

/* Director Carousel */
.dir-carousel-wrapper {
    position: relative;
}

.dir-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all .3s;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dir-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.dir-prev {
    left: -20px;
}

.dir-next {
    right: -20px;
}

@media(max-width:991px) {
    .dir-prev {
        left: 5px;
    }

    .dir-next {
        right: 5px;
    }

    .dir-carousel-btn {
        width: 34px;
        height: 34px;
        font-size: .85rem;
    }
}

@media(max-width:575px) {
    .dir-carousel-slide {
        min-width: 80% !important;
    }
}


/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testi-style-premium .testimonial-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.testi-style-flat .testimonial-card {
    box-shadow: none;
    border: 2px solid #e2e8f0;
    background: #fff;
}

.testi-style-gradient .testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f8faff);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}


/* ========================================
   BRANCHES / CAMPUSES SECTION
   ======================================== */
.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
}

.branches-swiper {
    padding: 15px 15px 60px !important;
}

.branches-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    transition: 0.3s;
    margin: 0 6px !important;
}

.branches-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 4px;
}

.branches-swiper-container {
    position: relative;
}

.branches-swiper-container .swiper-button-next,
.branches-swiper-container .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 10;
}

.branches-swiper-container .swiper-button-next:after,
.branches-swiper-container .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.branches-swiper-container .swiper-button-next:hover,
.branches-swiper-container .swiper-button-prev:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 767px) {

    .branches-swiper-container .swiper-button-next,
    .branches-swiper-container .swiper-button-prev {
        display: none;
    }
}