/* ==========================================================================
   أنماط صفحة شؤون الطلاب المحدثة (students.css) - النسخة الرابعة
   ========================================================================== */

/* 1. البانر لصفحة شؤون الطلاب */
.students-hero {
    position: relative;
    padding: 8rem 2rem 5rem;
    background: var(--color-stud-bg-gradient);
    color: white;
    text-align: center;
}

.students-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(26, 107, 92, 0.1) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.students-hero .hero-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.badge-stud {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-stud-accent);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.students-hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.students-hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 2. تبويبات تفاعلية لاستكشاف الأدوار */
.roles-tabs-section {
    padding: 1rem 1rem;
    background-color: var(--color-bg-white);
}

.tabs-container {
    margin: 0 auto;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

.tabs-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #edf2f7;
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-gray);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.25rem;
}

.tab-btn.active {
    background: var(--color-bg-white);
    color: var(--color-stud-primary);
    border-bottom: 4px solid var(--color-stud-primary);
}

.tab-btn:hover:not(.active) {
    background: rgba(26, 107, 92, 0.04);
    color: var(--color-text-dark);
}

.tabs-content {
    padding: 3.5rem 3rem;
    background: var(--color-bg-white);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

.tab-pane h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.tab-summary-phrase {
    font-weight: 700;
    color: var(--color-stud-primary);
    font-size: 0.95rem;
    background: rgba(26, 107, 92, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 2rem;
}

.role-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.role-features-list li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-gray);
}

.role-features-list i {
    color: var(--color-stud-primary);
    font-size: 1rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.role-features-list strong {
    color: var(--color-text-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. الخصائص الكاملة للبرنامج بترقيم فني مميز وواضح */
.students-characteristics-section {
    padding: 1rem 1rem;
    background-color: var(--color-bg-light);
}

.characteristics-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.char-premium-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02);
    transition: var(--transition-smooth);
    display: block;
}

.char-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    background: var(--color-stud-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* توهج إشعاعي بـ CSS3 */
.char-premium-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 5;
}

.char-premium-card:hover::after {
    border-color: rgba(26, 107, 92, 0.25);
    box-shadow: inset 0 0 10px rgba(26, 107, 92, 0.04);
}

.char-premium-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.char-num-badge {
    position: absolute;
    top: 1.5rem;
    left: 0.4rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 107, 92, 0.08);
    color: var(--color-stud-primary);
    font-weight: 900;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26, 107, 92, 0.12);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.char-img-circle {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
	border:3px solid rgb(193 189 197);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    z-index: 2;
}

.char-img-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.char-img-circle img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.char-info-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.char-info-area h5 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-right: 5.8rem; /* Clear 80px image */
    margin-left: 2.2rem;  /* Clear 32px badge */
}

.char-badge-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-stud-secondary);
    background: rgba(26, 107, 92, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    margin-bottom: 0.2rem;
    margin-right: 5.8rem; /* Clear 80px image */
    margin-left: 2.2rem;  /* Clear 32px badge */
}

.char-info-area p {
    font-size: 0.92rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-top: 1.25rem; /* Push paragraph below image level */
    width: 100%;
}

/* تجاوب التصاميم للجوال */
@media (max-width: 992px) {
    .characteristics-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .students-hero h2 {
        font-size: 2.3rem;
    }

    .tabs-header {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .tab-btn.active {
        border-bottom: none;
        border-left: 4px solid var(--color-stud-primary);
    }
    
    .tabs-content {
        padding: 2rem 1.5rem;
    }

    .role-features-list {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .characteristics-premium-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .char-premium-card {
        padding: 1.25rem;
    }

    .char-img-circle {
        width: 60px;
        height: 60px;
        right: 1rem;
        top: 1.25rem;
    }

    .char-img-circle img {
        width: 60px;
        height: 60px;
    }

    .char-num-badge {
        left: 1rem;
        top: 1.25rem;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .char-info-area h5 {
        margin-right: 4.5rem; /* Clear 60px image */
        margin-left: 3rem;  /* Clear 28px badge */
        font-size: 1rem;
    }

    .char-badge-tag {
        margin-right: 4.5rem;
        margin-left: 1.8rem;
    }

    .char-info-area p {
        margin-top: 1rem;
    }
}

/* استعراض لوحة النظام (Laptop Preview Mockup) */
.screen-preview-section {
    padding: 2rem 3rem 6rem;
    background-color: var(--color-bg-white);
    text-align: center;
}

.mockup-laptop {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.laptop-screen {
    background: #2d3748;
    border: 12px solid #2d3748;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.laptop-screen:hover img {
    transform: scale(1.03);
}

.laptop-base {
    background: #cbd5e0;
    height: 16px;
    border-radius: 0 0 16px 16px;
    position: relative;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #a0aec0;
    border-radius: 0 0 4px 4px;
}

@media (max-width: 576px) {
    .screen-preview-section {
        padding: 1rem 1rem 4rem;
    }
    .laptop-screen {
        border-width: 6px;
    }
}
