/* =============================================
   CAMPUS PAGE STYLES
   Shared styles for Bahawalpur & Islamabad pages
   ============================================= */

/* ========== ISLAMABAD GRADIENT ========== */
.gradient-text-isb {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-isb {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-isb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ========== CAMPUS HERO ========== */
.campus-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.bahawalpur-hero {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(139, 92, 246, 0.06) 30%,
        rgba(6, 182, 212, 0.04) 60%,
        var(--bg-secondary) 100%
    );
}

.islamabad-hero {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(6, 182, 212, 0.06) 30%,
        rgba(59, 130, 246, 0.04) 60%,
        var(--bg-secondary) 100%
    );
}

.campus-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Hero Particles */
.hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.4;
    animation: particle-float 8s ease-in-out infinite;
}

.bahawalpur-hero .hero-particles span {
    background: var(--primary);
}

.islamabad-hero .hero-particles span {
    background: #10b981;
}

.hero-particles span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 6s; }
.hero-particles span:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; animation-duration: 8s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; animation-duration: 7s; width: 8px; height: 8px; }
.hero-particles span:nth-child(4) { top: 80%; left: 70%; animation-delay: 0.5s; animation-duration: 9s; }
.hero-particles span:nth-child(5) { top: 40%; left: 50%; animation-delay: 3s; animation-duration: 6s; width: 5px; height: 5px; }
.hero-particles span:nth-child(6) { top: 15%; left: 40%; animation-delay: 1.5s; animation-duration: 10s; }
.hero-particles span:nth-child(7) { top: 70%; left: 30%; animation-delay: 2.5s; animation-duration: 7s; width: 4px; height: 4px; }
.hero-particles span:nth-child(8) { top: 50%; left: 90%; animation-delay: 0.8s; animation-duration: 8s; }
.hero-particles span:nth-child(9) { top: 90%; left: 55%; animation-delay: 3.5s; animation-duration: 6s; width: 7px; height: 7px; }
.hero-particles span:nth-child(10) { top: 30%; left: 20%; animation-delay: 4s; animation-duration: 9s; }

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -40px) scale(1.3); opacity: 0.6; }
    50% { transform: translate(-20px, -60px) scale(1); opacity: 0.4; }
    75% { transform: translate(40px, -20px) scale(1.2); opacity: 0.5; }
}

.campus-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Location Badge */
.campus-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.bahawalpur-hero .campus-location-badge {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.islamabad-hero .campus-location-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.campus-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.campus-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Mini Stats */
.campus-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    min-width: 0;
}

.mini-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bahawalpur-hero .mini-stat i,
.bahawalpur-hero .mini-stat strong {
    color: var(--primary);
}

.islamabad-hero .mini-stat i,
.islamabad-hero .mini-stat strong {
    color: #10b981;
}

.mini-stat i {
    font-size: 1.3rem;
}

.mini-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.mini-stat strong::after {
    content: '+';
    font-size: 0.9rem;
}

.mini-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campus-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* ========== CAMPUS INFO CARD ========== */
.campus-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: fadeInRight 0.8s ease 0.3s both;
    transition: var(--transition);
}

.campus-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.info-card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: var(--gradient-primary);
}

.isb-header {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.info-card-header i {
    font-size: 1.3rem;
}

.info-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.info-card-body {
    padding: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.info-row i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.isb-card .info-row i {
    color: #10b981;
}

.info-social-row {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    justify-content: flex-start;
    gap: 10px;
}

.info-social-row .social-link {
    width: 42px;
    height: 42px;
    margin-top: 0;
}

.info-card-footer {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.campus-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

.campus-status i {
    font-size: 0.5rem;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== CATEGORY CARDS ========== */
.category-nav {
    background: var(--bg-primary);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.isb-cat::after {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.category-card:hover,
.category-card.active {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.isb-cat:hover,
.isb-cat.active {
    border-color: #10b981;
}

.category-card:hover::after,
.category-card.active::after {
    transform: scaleX(1);
}

.cat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--primary-bg);
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .cat-icon {
    transform: scale(1.1) rotate(5deg);
}

.cat-dev { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.cat-design { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.cat-marketing { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.cat-data { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.cat-business { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.category-card h4 {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cat-count {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.isb-cat .cat-count {
    color: #10b981;
}

/* ========== WHY CAMPUS SECTION ========== */
.why-campus {
    background: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    align-items: flex-start;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.isb-why:hover {
    border-color: #10b981;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    line-height: 1;
}

.isb-num {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-content h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.why-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== OTHER CAMPUS CTA ========== */
.other-campus-cta {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.other-campus-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ========== ISB SPECIFIC OVERRIDES ========== */
.islamabad-hero .campus-info-card:hover {
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.1);
}

.isb-icon {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.isb-social:hover {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .campus-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .campus-hero-desc {
        margin: 0 auto 32px;
    }

    .campus-hero-stats {
        justify-content: center;
    }

    .campus-hero-btns {
        justify-content: center;
    }

    .campus-hero-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .campus-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-stat {
        padding: 10px 14px;
    }

    .mini-stat i {
        font-size: 1rem;
    }

    .mini-stat strong {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 10px;
    }

    .cat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .category-card h4 {
        font-size: 0.75rem;
    }

    .campus-hero-title {
        font-size: 2rem;
    }

    .campus-hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .campus-hero-btns .btn {
        width: 100%;
    }

    .why-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .mini-stat {
        width: 100%;
    }
}
