/*
Theme Name: CMICTPP Final 2026
Theme URI: https://univ-alger3.dz
Author: CMICTPP Center
Description: قالب كامل مع إزالة قاطعة لأي خطوط سفلية تظهر تحت الروابط أو النصوص داخل البطاقات.
Version: 22.0
Text Domain: cmictpp
*/

:root {
    --primary-blue: #0f172a;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --secondary-bg: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --gradient-main: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--primary-blue); color: var(--text-light); overflow-x: hidden; line-height: 1.6; }

/* Header */
header { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); padding: 0.8rem 5%; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(139, 92, 246, 0.2); display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none !important; display: flex; align-items: center; gap: 12px; border: none !important; }
.logo h1 { font-size: 1.1rem; font-weight: 800; background: linear-gradient(to right, #fff, var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0; line-height: 1.4; white-space: nowrap; border: none !important; }

/* Menu */
.nav-menu { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.nav-menu a { color: var(--text-light); text-decoration: none !important; font-weight: 600; font-size: 0.95rem; transition: 0.3s; position: relative; display: block; border: none !important; }
.nav-menu a:hover { color: var(--accent-purple); }
.nav-menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; right: 0; background: var(--accent-green); transition: 0.3s; }
.nav-menu a:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: white; }

/* Hero */
.hero { min-height: 100vh; height: auto; background: var(--gradient-main); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding-top: 140px; padding-bottom: 80px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; animation: float 10s infinite ease-in-out; }
.hero::before { width: 600px; height: 600px; background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0,0,0,0) 70%); top: -100px; left: -100px; }
.hero::after { width: 500px; height: 500px; background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%); bottom: -50px; right: -50px; animation-direction: reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 50px); } }

.hero-content { z-index: 2; width: 100%; max-width: 1400px; padding: 0 20px; }
.hero-title { font-weight: 900; margin-bottom: 25px; line-height: 1.2; white-space: nowrap; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; }

/* Image */
.hero-img-container { margin: 30px auto; position: relative; z-index: 2; }
.hero-img-container img { width: 100%; height: 100%; object-fit: cover; border: none; border-radius: 0; box-shadow: none; background: transparent; animation: fadeIn 1.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Text Style (Audiowide) */
.hero-extra-text { color: #ffffff; font-weight: 700; margin: 25px 0 40px 0; white-space: nowrap; letter-spacing: 1px; text-shadow: 0 0 10px rgba(139, 92, 246, 0.5); direction: ltr; }

/* --- Hero Video --- */
.hero-video-wrapper { width: 100%; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); border: 2px solid rgba(139, 92, 246, 0.3); animation: fadeIn 1.5s ease-in-out; position: relative; z-index: 2; background: #000; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; }
.hero-video-wrapper:hover { transform: translateY(-10px) scale(1.02); border-color: var(--accent-purple); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.2) inset; }
.hero-video-wrapper:active { transform: scale(0.98); border-color: var(--accent-green); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5); }
.hero-video-wrapper.is-playing { border-color: var(--accent-green); animation: videoPulse 2s infinite alternate; }
@keyframes videoPulse { 0% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3), 0 0 5px rgba(16, 185, 129, 0.2) inset; } 100% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.7), 0 0 15px rgba(16, 185, 129, 0.5) inset; } }
.hero-video-wrapper video { width: 100%; height: 100%; display: block; border: none; outline: none; object-fit: cover; }

.cta-btn { padding: 15px 40px; background: linear-gradient(90deg, var(--accent-purple), #6366f1); color: white; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3); text-decoration: none !important; display: inline-block; }
.cta-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5); }

/* User Content */
.page-container { padding: 80px 10%; position: relative; z-index: 10; }
.page-container p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-gray); }
.page-container h2, .page-container h3 { color: white; margin-bottom: 20px; margin-top: 40px; }
.page-container img { max-width: 100%; height: auto; border-radius: 15px; margin: 20px 0; border: 1px solid rgba(255,255,255,0.1); }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }

/* Slideshow */
.cmictpp-slider { position: relative; width: 100%; height: 500px; overflow: hidden; border-radius: 20px; margin: 40px 0; border: 2px solid var(--accent-purple); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide-item.active { opacity: 1; z-index: 1; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent); color: white; z-index: 2; }
.slide-caption h3 { font-size: 2rem; margin-bottom: 10px; color: var(--accent-green); text-decoration: none !important; border: none !important; }

/* --- Sections & Cards --- */
section { padding: 80px 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 100px; height: 4px; background: var(--accent-green); margin: 10px auto; border-radius: 2px; }
.units-grid, .news-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* ========================================================================= */
/* التحديث الجذري والصارم لإزالة الخطوط السفلية من البطاقات القابلة للنقر */
/* ========================================================================= */
.unit-card-link {
    text-decoration: none !important;
    display: block; 
    outline: none !important;
    border: none !important;
}

/* إجبار النصوص والعناصر داخل البطاقة على تجاهل أي خط سفلي */
.unit-card-link h3,
.unit-card-link p,
.unit-card-link span,
.unit-card-link i {
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important; 
    text-decoration-color: transparent !important;
    -webkit-text-decoration-color: transparent !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    box-shadow: none !important; 
}

/* إلغاء تأثيرات الـ Hover الافتراضية للروابط */
.unit-card-link:hover,
.unit-card-link:focus,
.unit-card-link:active {
    text-decoration: none !important;
    outline: none !important;
}

/* التنسيق الأساسي للبطاقة */
.unit-card { 
    background: var(--glass); 
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    padding: 30px; 
    border-radius: 20px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    height: 100%; 
}

/* التأثير التفاعلي للبطاقة عند المرور بالماوس على الرابط */
.unit-card-link:hover .unit-card { 
    transform: translateY(-15px) scale(1.03); 
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9)); 
    border-color: var(--accent-purple) !important; 
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4), 0 0 15px rgba(16, 185, 129, 0.2) inset !important; 
}

.unit-icon { font-size: 2.5rem; color: var(--accent-green); margin-bottom: 20px; transition: 0.3s; }
.unit-card-link:hover .unit-icon { transform: scale(1.2) rotate(5deg); color: #fff !important; text-shadow: 0 0 15px var(--accent-green); }

.unit-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: white; transition: 0.3s; }
.unit-card-link:hover .unit-title { color: var(--accent-green) !important; text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }

.unit-card-link:active .unit-card { transform: scale(0.95); box-shadow: 0 5px 10px rgba(0,0,0,0.5) !important; border-color: var(--accent-green) !important; }

.unit-desc { font-size: 0.95rem; color: var(--text-gray); }

/* News */
.news-card { background: var(--secondary-bg); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: 0.3s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 10px 15px rgba(16, 185, 129, 0.1); }
.news-img { height: 200px; background: #2d3748; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 20px; }
.news-date { color: var(--accent-purple); font-size: 0.8rem; font-weight: bold; }
.news-title { margin: 10px 0; font-size: 1.1rem; text-decoration: none !important; border: none !important; }
.news-content a { text-decoration: none !important; border: none !important; }

/* Footer */
footer { background: #0b1120; padding: 50px 10%; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-gray); font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-widget h3 { color: white; margin-bottom: 20px; position: relative; display: inline-block; font-size: 1.1rem; }
.footer-widget h3::after { content: ''; position: absolute; width: 50%; height: 2px; background: var(--accent-purple); bottom: -5px; right: 0; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget a { color: var(--text-gray); text-decoration: none !important; transition: 0.3s; border: none !important; }
.footer-widget a:hover { color: var(--accent-green); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.visitor-counter { font-size: 0.9rem; color: var(--text-light); background: rgba(16, 185, 129, 0.1); display: inline-flex; align-items: center; padding: 5px 15px; border-radius: 20px; border: 1px solid rgba(16, 185, 129, 0.3); }
.visitor-counter i { color: var(--accent-green); margin-left: 8px; }
.count-number { font-weight: bold; color: var(--accent-purple); font-size: 1rem; margin-right: 5px; }

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; top: 70px; right: -100%; width: 100%; background: rgba(30, 41, 59, 0.98); flex-direction: column; align-items: center; padding: 30px; transition: 0.3s; border-bottom: 2px solid var(--accent-purple); gap: 20px; }
    .nav-menu.active { right: 0; }
    .logo h1 { font-size: 0.9rem; white-space: normal; }
    .hero-title { font-size: 1.8rem; white-space: normal; line-height: 1.3; margin-top: 10px; } 
    .hero-extra-text { white-space: normal; line-height: 1.5; text-align: center; padding: 0 10px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-img-container, .hero-video-wrapper { max-width: 90% !important; width: 100% !important; }
    section { padding: 60px 5%; }
}