/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : May 18, 2026, 6:58:19 PM
    Author     : Fatima
*/
:root {
    /* تدرج الألوان الملكي والهوية البصرية المأخوذة بدقة من الصورة A */
    --navy-header: #002d56;
    --navy-dark: #001f3f;
    --accent-gold: #c5a059;
    --accent-gold-dark: #b38f4a;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-dark: #1a1a1a;
    --bg-light: #f4f7fa;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===================================================
   --- الـ HEADER الجديد المحدث والمطابق للصورة A ---
   =================================================== */
header {
    background-color: var(--navy-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* الشريط العلوي الصغير */
.top-nav-bar {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    padding: 8px 8%;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-nav-bar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.top-nav-bar a:hover {
    color: var(--accent-gold);
}

/* شريط التصفح الرئيسي السفلي */
.main-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
}

/* جهة اليمين: الشعار والقائمة */
.right-menu-side {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-icon {
    font-size: 2.4rem;
    color: var(--accent-gold);
}

.brand-names h1 {
    font-size: 1.25rem;
    color: var(--text-white);
    font-weight: 800;
    line-height: 1.2;
}
.brand-names h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    font-weight: 800;
    line-height: 1.2;
}

.brand-names p {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.main-menu-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-menu-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s;
}

.main-menu-links a:hover {
    color: var(--accent-gold);
}

/* جهة اليسار: أدوات البحث واللغة */
.left-tools-side {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
}

.search-container input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    color: var(--text-white);
    font-size: 0.85rem;
    width: 180px;
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
    width: 220px;
}

.search-container i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch-btn i {
    color: var(--accent-gold);
}

/* البانر الفرعي المتدرج أسفل الهيدر المباشر */
.hero-sub-banner {
    background: linear-gradient(90deg, #002d56 0%, #001f3f 40%, #c5a059 100%);
    padding: 30px 8%;
    color: var(--text-white);
    border-bottom: 4px solid var(--accent-gold);
}

.hero-sub-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===================================================
   --- حاوية المحتوى الرئيسي وباقي التنسيقات الخاصة بك ---
   =================================================== */
.main-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 40px;
    flex: 1;
}
.announcement-link{
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    width: 100%;
}
.errMsg{
    display:inline-block;
    position:relative;
    float:right;
    color:red;
    font-size:18px;
    font-weight:bold;
    text-align:center;
    direction:rtl;
}
@media (max-width: 1000px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .main-menu-links, .top-nav-bar {
        display: none; /* تبسيط التصميم على الشاشات الصغيرة */
    }
}

/* بوابة تسجيل الدخول المتميزة */
.login-portal {
    background: var(--text-white);
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    height: fit-content;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.lock-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #002d56 0%, #001933 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0,45,86,0.2);
    border: 4px solid #fff;
}

.lock-icon-container i {
    font-size: 2.2rem;
    color: var(--accent-gold);
}

.login-header h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* الحاوية التي تجمع العنوان والمدخل بجانب بعضهما */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

/* ضبط حجم العناوين لتكون متساوية وثابتة بجانب المدخلات */
.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-header);
    width: 100px; /* مساحة ثابتة للعنوان لضمان محاذاة الحقول */
    text-align: right;
    flex-shrink: 0;
}

.form-input-group {
    position: relative;
    flex: 1; /* جعل حقل الإدخال يأخذ باقي المساحة المتاحة في السطر */
}

.form-input-group input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fbfbfb;
}

.form-input-group input:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 10px rgba(197,160,89,0.15);
    background-color: #fff;
}

.form-input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.form-input-group input:focus + i {
    color: var(--accent-gold);
}

.btn-sign-in {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #002d56 0%, #001933 100%);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.btn-sign-in:hover {
    background: linear-gradient(135deg, #003a6f 0%, #002244 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #777;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: var(--accent-gold-dark);
}

/* قسم المحتوى والدليل الإخباري */
.content-news-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* دليل الطالب والروابط السريعة كبطاقات شبكية */
.student-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-card {
    background: var(--text-white);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.guide-card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.8rem;
    transition: all 0.3s;
}

.guide-card:hover .guide-card-icon-wrapper {
    background: linear-gradient(135deg, #002d56 0%, #001933 100%);
    color: var(--accent-gold);
    transform: rotate(-10deg) scale(1.1);
}

.guide-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* تصميم الإعلانات على شكل تايم لاين تفاعلي وعصري */
.news-announcements-panel {
    background: var(--text-white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-header);
    margin-bottom: 30px;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 15px;
}

.panel-header i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.panel-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.announcement-timeline {
    position: relative;
    padding-right: 30px;
}

.announcement-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #eef2f6;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.timeline-dot {
    position: absolute;
    right: -38px;
    top: 15px;
    width: 17px;
    height: 17px;
    background: #fff;
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-gold);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(197,160,89,0.5);
}

.announcement-card-content {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.timeline-item:hover .announcement-card-content {
    border-color: rgba(197,160,89,0.3);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transform: translateX(-5px);
}

.announcement-icon-badge {
    width: 45px;
    height: 45px;
    background: rgba(0, 45, 86, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-header);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .announcement-icon-badge {
    background: linear-gradient(135deg, #002d56 0%, #001933 100%);
    color: var(--accent-gold);
}

.announcement-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    font-weight: 500;
}

/* الفوتر */
footer {
    background: linear-gradient(135deg, #002d56 0%, #001933 100%);
    color: var(--text-white);
    text-align: center;
    padding: 25px;
    margin-top: auto;
    border-top: 4px solid var(--accent-gold);
    font-size: 0.95rem;
}

.glyphicon-modal-window:before {
  content: "\e237";
}
.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
       -o-transform: translate(0, -25%);
          transform: translate(0, -25%);
}
.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
       -o-transform: translate(0, 0);
          transform: translate(0, 0);
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.modal-content {
  position: relative;
  background-color: #fff;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal-backdrop.in {
  filter: alpha(opacity=50);
  opacity: .5;
}
.modal-header {
  min-height: 16.42857143px;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
  margin-top: -2px;
}
.modal-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal-body {
  position: relative;
  padding: 15px;
}
.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}
@media (min-width: 768px) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
  .modal-sm {
    width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg {
    width: 900px;
  }
}
.modal-footer:after {
  clear: both;
}