/* ==========================================================================
   AL-FAIZ MODEL ACADEMY - KINETIC USER INTERACTION DESIGN (academic.css)
   ========================================================================== */

:root {
    --primary-green: #20a366;
    --dark-blue: #007696;
    --active-blue: #0056b3;
    --deep-slate: #0f172a;
    --border-glow: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.95);
    
    /* Animation Timings */
    --bezier-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --bezier-fluid: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 1. LIVE TICKER CONTAINER SYSTEM --- */
.academic-ticker-container {
    display: flex;
    background: #ffffff;
    border-bottom: 3px solid var(--border-glow);
    align-items: center;
    overflow: hidden;
    height: 52px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.ticker-label {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    box-shadow: 5px 0 15px rgba(192, 57, 43, 0.3);
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: -16px; top: 0;
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    border-left: 16px solid #c0392b;
}
.ticker-content { width: 100%; padding: 0 25px; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 70px;
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}
.new-icon {
    height: 18px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 5px rgba(231, 76, 60, 0.4));
}
.animated-bell { animation: wiggle 2s infinite ease-in-out; }

/* --- 2. 3D GLOWING HERO CANVAS --- */
.academic-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(0, 118, 150, 0.75) 100%), 
                url('../images/school1.jpg') center/cover no-repeat;
    padding: 110px 5% 130px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.hero-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 300px;
    background: radial-gradient(circle, rgba(32, 163, 102, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: floatingGlow 8s infinite ease-in-out;
}
.academic-hero-text h2 {
    font-size: 46px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.academic-hero-text p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.6;
}

/* --- 3. PAGE ARCHITECTURE PANELS --- */
.academic-page-container {
    max-width: 1200px;
    margin: -50px auto 80px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 20;
}
.academic-section {
    perspective: 1000px; /* Preps 3D spatial alignment */
}
.section-header-block {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(90deg, var(--deep-slate) 0%, var(--dark-blue) 100%);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 16px 16px 0 0;
    border-bottom: 3px solid var(--primary-green);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
.header-icon-shell {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--bezier-bounce);
}
.section-header-block i { font-size: 18px; color: #38bdf8; }
.section-header-block h3 { margin: 0; font-size: 17px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.section-body-card {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 40px;
    border-radius: 0 24px 24px 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    transition: all 0.5s var(--bezier-fluid);
}

/* SECTION HOVER OVERLAYS */
.academic-section:hover .section-body-card {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 77, 38, 0.08);
    border-color: rgba(32, 163, 102, 0.3);
}
.academic-section:hover .header-icon-shell {
    transform: scale(1.1) rotate(8deg);
    background: var(--primary-green);
}
.academic-section:hover .header-icon-shell i {
    color: #ffffff;
}

.section-body-card > p {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

/* --- 4. DATA SHEET MATRICES --- */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}
.academic-table { width: 100%; border-collapse: collapse; text-align: left; }
.academic-table th {
    background: #f8fafc;
    color: var(--deep-slate);
    padding: 18px 24px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #cbd5e1;
}
.academic-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14.5px;
    color: #334155;
    transition: all 0.2s ease;
}
.academic-table tr:hover td {
    background: rgba(56, 189, 248, 0.05);
    color: #000000;
    padding-left: 28px;
}
.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.live-pulse {
    background: #dcfce7; color: #166534;
    position: relative;
}
.status-badge.live-pulse::before {
    content: ''; position: absolute; left: -6px; top: 50%;
    width: 6px; height: 6px; background: #20a366;
    border-radius: 50%; transform: translateY(-50%);
    animation: sonar 1.5s infinite ease-in-out;
}
.status-badge.pending-hold { background: #fef3c7; color: #92400e; }

/* --- 5. ULTRA-INTERACTIVE ACTION PORTALS --- */
/* Master Radial Anchor Action Buttons */
.download-resource-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--deep-slate);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    transition: all 0.4s var(--bezier-bounce);
}
.download-resource-btn .btn-text { position: relative; z-index: 5; display: inline-flex; align-items: center; gap: 10px; }
.download-resource-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: all 0.6s ease;
}

/* HOVER RADIAL PROGRESS OVERLAY SPEED LOOP */
.download-resource-btn::after {
    content: ''; position: absolute; bottom: 0; left: 0; height: 100%; width: 0%;
    background: var(--primary-green);
    transition: width 0s ease;
    z-index: 1;
}
.download-resource-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(32, 163, 102, 0.3);
}
.download-resource-btn:hover::before { left: 100%; }
.download-resource-btn:hover::after {
    width: 100%;
    transition: width 2.5s linear; /* Pure CSS micro-loading duration simulation bar */
}

/* CORE MOUSE DOWN COMPRESSION RIGS */
.download-resource-btn:active, .action-outline-btn:active, .kinetic-card:active {
    transform: scale(0.94) translateY(1px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: transform 0.08s ease !important;
}

/* Secondary Action Center Blocks */
.action-outline-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    background: transparent;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s var(--bezier-fluid);
}
.action-outline-btn:hover {
    background: var(--dark-blue);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 118, 150, 0.2);
}

/* --- 6. MULTI-WING PORTAL GRIDS --- */
.academic-grid-two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); display: grid; gap: 30px; }
.academic-grid-three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); display: grid; gap: 30px; }

.grid-card-inner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 35px;
    border-radius: 16px;
    transition: all 0.4s var(--bezier-fluid);
}
.grid-card-inner:hover {
    background: #ffffff;
    border-color: var(--dark-blue);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}
.grid-card-inner h4 { margin: 0 0 12px 0; color: var(--deep-slate); font-size: 18px; font-weight: 700; }
.grid-card-inner p { color: #64748b; font-size: 14.5px; line-height: 1.6; margin: 0 0 25px 0; }

/* Micro-Interaction Bullet Framework links */
.resource-check-list { list-style: none; padding: 0; margin: 0; }
.resource-check-list li { margin-bottom: 16px; }
.resource-check-list li a {
    display: flex; align-items: center; gap: 14px;
    color: #334155; text-decoration: none; font-weight: 600; font-size: 14.5px;
    padding: 10px; border-radius: 8px; transition: all 0.3s ease;
}
.list-icon-wrapper {
    width: 34px; height: 34px; background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--dark-blue); transition: all 0.3s var(--bezier-bounce);
}
.resource-check-list li a:hover { color: var(--primary-green); background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.resource-check-list li a:hover .list-icon-wrapper { background: var(--primary-green); color: #ffffff; transform: scale(1.1) rotate(-8deg); }

/* --- 7. 3D KINETIC CARD PORTS --- */
.kinetic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s var(--bezier-bounce);
    position: relative;
    overflow: hidden;
}
.portal-icon-box {
    font-size: 40px; color: var(--dark-blue); margin-bottom: 22px;
    transition: transform 0.6s var(--bezier-bounce);
}
.kinetic-card h5 { margin: 0 0 12px 0; font-size: 18px; color: var(--deep-slate); font-weight: 700; }
.kinetic-card p { font-size: 14px; color: #64748b; margin: 0 0 30px 0; line-height: 1.6; }
.portal-link {
    color: var(--dark-blue); font-weight: 700; text-decoration: none; font-size: 14.5px;
    display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.portal-link i { font-size: 12px; }
.portal-link:hover { color: var(--primary-green); gap: 10px; }

/* KINETIC HOVER VECTOR TRANSFORMS */
.kinetic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(15,23,42,0.08);
    border-color: #cbd5e1;
}
.kinetic-card:hover .portal-icon-box {
    transform: scale(1.2) rotateY(180deg);
    color: var(--primary-green);
}

/* PREMIUM ADMIT TICKET HIGHLIGHT NODE */
.kinetic-card.premium-accent {
    border: 2px solid var(--primary-green);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
}
.premium-ribbon {
    position: absolute; top: 15px; right: -35px;
    background: #f39c12; color: #ffffff; font-size: 9px;
    font-weight: 800; text-transform: uppercase; padding: 4px 35px;
    transform: rotate(45deg); letter-spacing: 0.5px;
}
.portal-link-btn {
    display: block; background: var(--primary-green); color: #ffffff;
    text-decoration: none; padding: 14px; border-radius: 10px;
    font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(32, 163, 102, 0.25);
    position: relative; overflow: hidden; z-index: 1; transition: all 0.3s;
}
.portal-link-btn:hover { filter: brightness(1.1); transform: scale(1.02); }

/* HORIZONTAL LOADING TRIGGER ANIMATION OVERLAY */
.kinetic-card.premium-accent:hover .hover-loading-bar {
    position: absolute; bottom: 0; left: 0; height: 4px; width: 100%;
    background: #ffffff;
    animation: simulatedBar 2s linear infinite;
}

/* --- 8. PRESET FACULTY PROFILE SHIELDS --- */
.faculty-profile-card {
    background: #ffffff; border: 1px solid #e2e8f0;
    padding: 40px 24px; border-radius: 20px; text-align: center;
    position: relative; overflow: hidden; transition: all 0.4s var(--bezier-fluid);
}
.profile-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.faculty-avatar { font-size: 48px; color: #94a3b8; margin-bottom: 20px; transition: all 0.4s var(--bezier-bounce); }
.faculty-profile-card h6 { margin: 0 0 6px 0; font-size: 18px; color: var(--deep-slate); font-weight: 700; }
.qualification-tag {
    display: inline-block; background: #f1f5f9; color: #475569;
    font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
    margin-bottom: 14px; border: 1px solid #e2e8f0;
}
.dept-label { margin: 0; font-size: 14px; color: #64748b; font-weight: 600; }

/* FACULTY PROFILE DYNAMICS */
.faculty-profile-card:hover {
    transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.08);
}
.faculty-profile-card:hover .profile-glow { opacity: 1; }
.faculty-profile-card:hover .faculty-avatar { transform: scale(1.2) translateY(-4px); color: var(--dark-blue); }

/* --- 9. MOTION ANIMATION KEYFRAMES --- */
@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    5%, 15% { transform: rotate(10deg); }
    10%, 20% { transform: rotate(-10deg); }
    25% { transform: rotate(0); }
}
@keyframes floatingGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-45%, -55%) scale(1.2); opacity: 1; }
}
@keyframes sonar {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    100% { transform: translateY(-50%) scale(2.5); opacity: 0; }
}
@keyframes simulatedBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- 10. COMPREHENSIVE RESPONSIVE DISPLACEMENTS --- */
@media (max-width: 1024px) {
    .academic-hero-text h2 { font-size: 36px; }
    .section-body-card { padding: 30px 20px; }
}
@media (max-width: 768px) {
    .academic-ticker-container { flex-direction: column; height: auto; }
    .ticker-label { width: 100%; justify-content: center; padding: 12px 0; }
    .ticker-label::after { display: none; }
    .academic-hero { padding: 70px 5% 90px; }
    .academic-page-container { margin-top: -20px; gap: 35px; }
    .section-header-block { border-radius: 12px 12px 0 0; width: 100%; box-sizing: border-box; }
    .section-body-card { border-radius: 0 0 12px 12px; padding: 25px 15px; }
    .academic-grid-two, .academic-grid-three { grid-template-columns: 1fr; gap: 20px; }
}