/* =======================================================
   assets/style.css
   التنسيقات الموحدة لجميع صفحات الموقع
   ======================================================= */

:root {
    /* ====== الألوان الأساسية ====== */
    --ucst-blue: #1a3c6c;
    --ucst-orange: #f39200;
    --ucst-green: #28a745;
    --ucst-red: #dc3545;
    --ucst-purple: #6f42c1;
    --ucst-teal: #20c997;
    
    /* ====== ألوان الخلفيات ====== */
    --bg-light: #f0f4f8;
    --bg-white: #ffffff;
    --bg-dark: #1a202c;
    
    /* ====== ألوان النصوص ====== */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --text-white: #ffffff;
    
    /* ====== الظلال ====== */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    
    /* ====== الحواف ====== */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    
    /* ====== الانتقالات ====== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* ====== الخطوط ====== */
    --font-primary: 'Cairo', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}


/* =======================================================
   1. RESET & BASE
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =======================================================
   2. TYPOGRAPHY
   ======================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-black);
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-primary { color: var(--ucst-blue); }
.text-orange { color: var(--ucst-orange); }
.text-green { color: var(--ucst-green); }
.text-red { color: var(--ucst-red); }

/* =======================================================
   3. CONTAINER & LAYOUT
   ======================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* =======================================================
   4. HEADER
   ======================================================= */
.top-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 108, 0.06);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.top-header .brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
.logo-link:hover { opacity: 0.8; }

.college-logo-small {
    height: 45px;
    width: auto;
}

.header-titles h1 {
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    color: var(--ucst-blue);
    margin: 0;
}
.header-titles p {
    font-size: 0.75rem;
    color: var(--ucst-green);
    font-weight: var(--font-weight-medium);
    margin: 0;
    opacity: 0.8;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ====== أزرار الهيدر الإضافية ====== */
.btn-register-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--text-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.btn-register-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-guidance-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--ucst-purple);
    color: var(--text-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}
.btn-guidance-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);
}

.btn-moodle-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--ucst-orange);
    color: var(--text-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.2);
}
.btn-moodle-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.3);
}

.btn-services-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--ucst-green);
    color: var(--text-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}
.btn-services-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.back-home-btn {
    background: var(--ucst-orange);
    color: var(--text-white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.15);
}
.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.25);
}

/* =======================================================
   5. BUTTONS
   ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-primary);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--ucst-blue);
    color: var(--text-white);
}
.btn-primary:hover {
    background: #112747;
    box-shadow: 0 6px 20px rgba(26, 60, 108, 0.25);
}

.btn-orange {
    background: var(--ucst-orange);
    color: var(--text-white);
}
.btn-orange:hover {
    background: #d47e00;
    box-shadow: 0 6px 20px rgba(243, 146, 0, 0.25);
}

.btn-green {
    background: var(--ucst-green);
    color: var(--text-white);
}
.btn-green:hover {
    background: #1e7e34;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.btn-red {
    background: var(--ucst-red);
    color: var(--text-white);
}
.btn-red:hover {
    background: #c82333;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--ucst-blue);
    border: 2px solid var(--ucst-blue);
}
.btn-outline:hover {
    background: var(--ucst-blue);
    color: var(--text-white);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* زر التسجيل */
.btn-register {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* زر العودة */
.btn-back-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    color: var(--text-white);
}
.btn-back-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn-back-bottom i {
    font-size: 16px;
    transition: transform var(--transition-normal);
}
.btn-back-bottom:hover i {
    transform: translateX(-4px);
}

/* زر الخطة */
.btn-plan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--ucst-orange);
    color: var(--text-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.2);
}
.btn-plan:hover {
    background: #d47e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.3);
}

/* =======================================================
   6. HERO SECTION
   ======================================================= */
.hero-section {
    background: linear-gradient(135deg, var(--ucst-blue), #0f2a4a);
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(243, 146, 0, 0.08), transparent 70%);
    border-radius: 50%;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    color: var(--text-white);
}
.hero-section h1 span {
    color: var(--ucst-orange);
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 6px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

/* إحصائيات الهيرو */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats .stat-item .number {
    font-size: 1.6rem;
    font-weight: var(--font-weight-black);
    color: var(--ucst-orange);
    display: block;
}

.hero-stats .stat-item .label {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* =======================================================
   7. SECTION TITLE
   ======================================================= */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-black);
    color: var(--ucst-blue);
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* =======================================================
   8. CARDS (Departments)
   ======================================================= */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dept-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-normal);
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* صورة القسم */
.dept-card .dept-image {
    height: 130px;
    overflow: hidden;
    position: relative;
}
.dept-card .dept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.dept-card:hover .dept-image img {
    transform: scale(1.05);
}

.dept-card .dept-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dept-card .dept-image .overlay .icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
    flex-shrink: 0;
}

.dept-card .dept-image .overlay .title {
    color: var(--text-white);
    flex: 1;
}
.dept-card .dept-image .overlay .title h3 {
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
}
.dept-card .dept-image .overlay .title .sub {
    font-size: 11px;
    opacity: 0.8;
}

/* محتوى البطاقة */
.dept-card .dept-body {
    padding: 18px 20px 20px;
}

/* العبارة الدعائية */
.dept-card .dept-body .slogan-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--ucst-blue);
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: var(--font-weight-medium);
    background: rgba(26, 60, 108, 0.04);
}
.dept-card .dept-body .slogan-box i {
    margin-left: 6px;
    font-size: 16px;
}

/* إحصائيات */
.dept-card .dept-body .stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.dept-card .dept-body .stats .chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    background: #f7fafc;
    color: var(--text-secondary);
    border: 1px solid #edf2f7;
}
.dept-card .dept-body .stats .chip i { font-size: 11px; }
.dept-card .dept-body .stats .chip.bachelor {
    color: var(--ucst-blue);
    background: rgba(26, 60, 108, 0.06);
}
.dept-card .dept-body .stats .chip.diploma {
    color: var(--ucst-green);
    background: rgba(40, 167, 69, 0.06);
}

/* زر الاستكشاف */
.dept-card .dept-body .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    color: var(--text-white);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
.dept-card .dept-body .btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.dept-card .dept-body .btn-explore i {
    font-size: 14px;
    transition: transform var(--transition-normal);
}
.dept-card .dept-body .btn-explore:hover i {
    transform: translateX(-4px);
}

.dept-card .dept-body .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dept-card .dept-body .card-footer .total-badge {
    font-size: 12px;
    color: var(--text-muted);
}

/* =======================================================
   9. MAJORS CARD (Department Page)
   ======================================================= */
.major-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-normal);
}
.major-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.major-card .major-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}
.major-card .major-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.major-card:hover .major-image img {
    transform: scale(1.05);
}

.major-card .major-image .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 18px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}
.major-card .major-image .image-overlay .degree-badge-img {
    display: inline-block;
    padding: 3px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--text-white);
}
.major-card .major-image .image-overlay .degree-badge-img.diploma {
    background: var(--ucst-green);
}

.major-card .major-body {
    padding: 16px 20px 18px;
}

.major-card .major-body .major-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.major-card .major-body .major-header .major-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(26, 60, 108, 0.06);
}
.major-card .major-body .major-header .major-name {
    font-size: 17px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    flex: 1;
}

.major-card .major-body .major-tagline {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #edf2f7;
}
.major-card .major-body .major-tagline i {
    font-size: 12px;
    opacity: 0.6;
}

/* شروط القبول - بدون مربعات */
.major-card .major-body .requirements-inline {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 6px 0 8px;
    line-height: 1.8;
}
.major-card .major-body .requirements-inline .no-req {
    color: var(--text-muted);
    font-size: 13px;
}

.major-card .major-body .major-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}
.major-card .major-body .major-footer .fee {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--ucst-green);
}

.major-card .major-body .major-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.major-card .major-body .major-actions .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}
.major-card .major-body .major-actions .btn-action:hover {
    transform: translateY(-2px);
}
.btn-details {
    background: var(--ucst-blue);
    color: var(--text-white);
}
.btn-details:hover {
    background: #112747;
    box-shadow: 0 4px 15px rgba(26, 60, 108, 0.2);
}
.btn-plan-action {
    background: var(--ucst-orange);
    color: var(--text-white);
}
.btn-plan-action:hover {
    background: #d47e00;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.2);
}
.btn-register-sm {
    background: #22c55e;
    color: var(--text-white);
}
.btn-register-sm:hover {
    background: #16a34a;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

/* =======================================================
   10. DETAILS PAGE
   ======================================================= */
.detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.detail-card .major-hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.detail-header {
    padding: 25px 35px 20px;
    background: linear-gradient(135deg, rgba(26, 60, 108, 0.04), var(--bg-white));
    border-bottom: 4px solid var(--ucst-blue);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-header .major-icon-big {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.detail-header .title-group {
    flex: 1;
}
.detail-header .title-group .badge-dept {
    display: inline-block;
    padding: 2px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-white);
    margin-bottom: 4px;
}
.detail-header .title-group h1 {
    font-size: 28px;
    font-weight: var(--font-weight-black);
    color: var(--ucst-blue);
    margin: 0;
    line-height: 1.2;
}
.detail-header .title-group .tagline {
    font-size: 17px;
    color: var(--ucst-orange);
    font-weight: var(--font-weight-semibold);
    margin-top: 2px;
}
.detail-header .title-group .sub-info {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.detail-header .title-group .sub-info .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    background: #f7fafc;
    border: 1px solid #edf2f7;
}

.detail-header .header-actions-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-back-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f7fafc;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    transition: all var(--transition-normal);
    border: 1px solid #edf2f7;
}
.btn-back-top:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.btn-apply-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--text-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.btn-apply-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.detail-body {
    padding: 28px 35px 35px;
}

/* معلومات سريعة */
.quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.quick-item {
    background: #f7fafc;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all var(--transition-normal);
}
.quick-item:hover {
    border-color: var(--ucst-blue);
}

.quick-item .quick-icon {
    font-size: 22px;
    opacity: 0.6;
    display: block;
    margin-bottom: 2px;
}
.quick-item .quick-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    display: block;
}
.quick-item .quick-value {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}
.quick-item .quick-value .fee {
    color: var(--ucst-green);
    font-weight: var(--font-weight-bold);
    font-size: 20px;
}

/* شروط القبول - بطاقات */
.req-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 6px 0 20px;
}

.req-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all var(--transition-normal);
}
.req-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.req-card .req-card-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 2px;
}
.req-card .req-card-type {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}
.req-card .req-card-percent {
    font-size: 18px;
    font-weight: var(--font-weight-black);
    color: var(--ucst-orange);
}

.no-req {
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 0 14px;
}

/* وصف */
.description-box {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border-right: 4px solid var(--ucst-blue);
    background: rgba(26, 60, 108, 0.04);
}
.description-box h3 {
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    color: var(--ucst-blue);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.description-box p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

/* الخطة الفصلية والدراسية */
.plan-section {
    margin-bottom: 20px;
}
.plan-section .section-title {
    font-size: 17px;
    font-weight: var(--font-weight-bold);
    color: var(--ucst-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-section .section-title i {
    color: var(--ucst-orange);
}

.plan-box {
    background: #f7fafc;
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    transition: all var(--transition-normal);
}
.plan-box:hover {
    border-color: var(--ucst-blue);
    background: #fafcfd;
}
.plan-box .plan-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.plan-box .plan-info i {
    font-size: 32px;
    color: var(--ucst-blue);
}
.plan-box .plan-info .plan-text h4 {
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    color: var(--ucst-blue);
    margin: 0;
}
.plan-box .plan-info .plan-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.no-plan {
    text-align: center;
    padding: 10px;
    color: var(--text-muted);
}
.no-plan i {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
    color: #e2e8f0;
}
.no-plan p {
    margin: 0;
}

/* روابط مفيدة */
.extra-links {
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid #edf2f7;
}
.extra-links .section-title {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--ucst-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.extra-links .section-title i {
    color: var(--ucst-orange);
}

.links-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f7fafc;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    border: 1px solid #edf2f7;
}
.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.btn-link.primary {
    background: #22c55e;
    color: var(--text-white);
    border-color: #22c55e;
}
.btn-link.primary:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* زر العودة */
.back-section {
    margin-top: 28px;
    text-align: center;
}

/* =======================================================
   11. FOOTER
   ======================================================= */
.footer-note {
    text-align: center;
    padding: 24px 20px;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #edf2f7;
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

/* =======================================================
   12. RESPONSIVE
   ======================================================= */

/* === 900px === */
@media (max-width: 900px) {
    .departments-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .hero-section h1 { font-size: 2rem; }
    .hero-stats { gap: 16px; }
    .hero-stats .stat-item .number { font-size: 1.4rem; }
    .detail-header { padding: 20px 20px 18px; flex-direction: column; text-align: center; }
    .detail-header .title-group .sub-info { justify-content: center; }
    .detail-header .header-actions-right { justify-content: center; width: 100%; }
    .detail-body { padding: 20px 20px 24px; }
    .quick-info { grid-template-columns: 1fr 1fr; gap: 12px; }
    .req-cards-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
    .req-card { padding: 10px 8px; }
    .req-card .req-card-icon { font-size: 22px; }
    .req-card .req-card-type { font-size: 13px; }
    .req-card .req-card-percent { font-size: 16px; }
    .detail-card .major-hero-image { height: 170px; }
}

/* === 768px === */
@media (max-width: 768px) {
    .top-header {
        padding: 10px 16px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .top-header .brand-section { justify-content: center; }
    .header-actions { justify-content: center; }
    .header-titles h1 { font-size: 0.9rem; }
    .header-titles p { font-size: 0.7rem; }
    .btn-register-header span,
    .btn-guidance-header span,
    .btn-moodle-header span,
    .btn-services-header span,
    .back-home-btn span { display: none; }
    .btn-register-header,
    .btn-guidance-header,
    .btn-moodle-header,
    .btn-services-header,
    .back-home-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .hero-section { padding: 30px 20px; }
    .hero-section h1 { font-size: 1.6rem; }
    .hero-stats { gap: 12px; }
    .hero-stats .stat-item { padding: 6px 12px; }
    .hero-stats .stat-item .number { font-size: 1.2rem; }
    .hero-stats .stat-item .label { font-size: 0.65rem; }

    .main-content { padding: 20px 12px; }
    .section-title h2 { font-size: 1.4rem; }

    .departments-grid { grid-template-columns: 1fr; gap: 16px; }
    .dept-card .dept-image { height: 110px; }
    .dept-card .dept-body .slogan-box { font-size: 13px; padding: 12px 14px; }
    .dept-card .dept-body .btn-explore { font-size: 13px; padding: 8px 18px; width: 100%; justify-content: center; }
    .dept-card .dept-body .card-footer { flex-direction: column; align-items: stretch; }
    .dept-card .dept-body .card-footer .total-badge { text-align: center; }

    .major-card .major-image { height: 140px; }
    .major-card .major-body .major-header .major-name { font-size: 15px; }
    .major-card .major-body .major-tagline { font-size: 12px; }
    .major-card .major-body .requirements-inline { font-size: 13px; }
    .major-card .major-body .major-footer { flex-direction: column; align-items: stretch; text-align: center; }
    .major-card .major-body .major-actions { justify-content: center; }
    .major-card .major-body .major-actions .btn-action { flex: 1; justify-content: center; }

    .detail-card .major-hero-image { height: 140px; }
    .detail-header .major-icon-big { width: 64px; height: 64px; font-size: 28px; }
    .detail-header .title-group h1 { font-size: 22px; }
    .detail-header .title-group .tagline { font-size: 15px; }
    .detail-body { padding: 16px 16px 20px; }
    .quick-info { grid-template-columns: 1fr; gap: 10px; }
    .plan-box { flex-direction: column; text-align: center; }
    .plan-box .plan-info { flex-direction: column; }
    .links-grid { flex-direction: column; align-items: stretch; }
    .btn-link { justify-content: center; }
    .btn-back-bottom { width: 100%; justify-content: center; padding: 12px 20px; font-size: 14px; }
    .description-box { padding: 16px 18px; }
    .description-box p { font-size: 14px; }

    .college-logo-small { height: 36px; }
}

/* === 480px === */
@media (max-width: 480px) {
    .req-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .req-card .req-card-icon { font-size: 20px; }
    .req-card .req-card-type { font-size: 12px; }
    .req-card .req-card-percent { font-size: 14px; }
    .detail-header .title-group h1 { font-size: 19px; }
    .detail-header .major-icon-big { width: 56px; height: 56px; font-size: 24px; }
    .detail-card .major-hero-image { height: 120px; }
    .major-card .major-image { height: 120px; }
}

/* === 400px === */
@media (max-width: 400px) {
    .hero-section h1 { font-size: 1.3rem; }
    .hero-stats .stat-item .number { font-size: 1rem; }
    .dept-card .dept-image { height: 90px; }
    .dept-card .dept-body .slogan-box { font-size: 12px; padding: 10px 12px; }
    .major-card .major-image { height: 110px; }
}

/* =======================================================
   13. UTILITY CLASSES
   ======================================================= */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-hover:hover { box-shadow: var(--shadow-lg); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }