/* ================== إعدادات عامة ================== */
:root{
  --primary:#004aad;
  --secondary:#ffcc00;
  --bg:#f5f5f5;
  --card:#ffffff;
  --text:#333;
  --radius:12px;
}

*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  padding:0;
  font-family:"Cairo", Tahoma, Arial, sans-serif;
  background-color:var(--bg);
  color:var(--text);
  direction:rtl;
}

/* ================== الهيدر ================== */
.main-header{
  background:var(--primary);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 25px;
  height:70px;
}

.logo-area{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-area img{
  width:60px;
  height:60px;
  border-radius:50%;
  border:2px solid #fff;
  object-fit:cover;
}

.logo-area h1{
  margin:0;
  font-size:20px;
  font-weight:bold;
}

/* ================== القائمة ================== */
.main-nav ul{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
}

.main-nav a{
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}

.main-nav a:hover{
  text-decoration:underline;
}

/* ================== المحتوى ================== */
.container{
  max-width:1100px;
  margin:30px auto;
  padding:20px;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:25px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  margin-bottom:25px;
}

.card h2{
  margin-top:0;
  color:var(--primary);
  font-size:22px;
}

/* ================== الأخبار ================== */
.news-card{
  background:#fff;
  padding:15px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
  margin-bottom:15px;
}

.news-card h3{
  margin:0;
  color:var(--primary);
}

.news-card small{
  color:#777;
}

/* ================== نموذج التواصل ================== */
.contact-form{
  max-width:600px;
  margin:40px auto;
  background:#fff;
  padding:25px;
  border-radius:var(--radius);
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h2{
  color:var(--primary);
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:15px;
}

.contact-form textarea{
  resize:none;
  height:120px;
}

.contact-form button{
  background:var(--primary);
  color:#fff;
  padding:12px 25px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
}

.contact-form button:hover{
  background:#00337f;
}

/* ================== الأزرار ================== */
.btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-secondary{
  background:var(--secondary);
  color:#003366;
}

/* ================== الفوتر ================== */
.main-footer{
  background:var(--primary);
  color:#fff;
  text-align:center;
  padding:10px;
  margin-top:30px;
    height: 80px;
}

.footer-content{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  font-size:14px;
}

/* ================== استجابة الموبايل ================== */
@media (max-width:768px){
  .main-header{
    flex-direction:column;
    height:auto;
    gap:10px;
  }

  .main-nav ul{
    flex-wrap:wrap;
    justify-content:center;
  }

  .logo-area h1{
    font-size:16px;
  }
}

/* ================== الطباعة ================== */
@media print{
  .main-header,
  .main-nav,
  .main-footer,
  button{
    display:none !important;
  }

  body{
    background:#fff;
    color:#000;
  }

  .card{
    box-shadow:none;
    border-radius:0;
  }
}
.title-area2{
  font-size:14px;
  font-weight:bold;
  color:#fff;
  margin:0 15px;
  white-space:nowrap;
}
/* ===== القوائم المنسدلة ===== */
.dropdown{
  position:relative;
  font-size: 12px;

}

.dropdown-menu{
  position:absolute;
  top:100%;
  right:0;
  background:#69b5d3;
  min-width:200px;
  list-style:none;
  padding:10px 0;
  margin:0; 
   font-size: 12px;
  display:none;
  box-shadow:0 6px 15px rgba(0,0,0,0.15);
  border-radius:8px;
  z-index:999;
  
}

.dropdown-menu li a{
  color:#333;
  padding:8px 15px;
  display:block;
  font-size:12px;
}

.dropdown-menu li a:hover{
  background:#f2f2f2;
}

.dropdown:hover .dropdown-menu{
  display:block;
}
.videos-container{
  max-width:1200px;
  margin:40px auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}
/* ===== إصلاح القوائم المنسدلة ===== */
.main-nav ul{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
}

.main-nav li{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:100%;
  right:0;
  background:#ffffff;
  min-width:220px;
  padding:8px 0;
  margin:0;
  list-style:none;
  display:none;
  border-radius:8px;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
  z-index:9999;
}

.dropdown-menu li a{
  display:block;
  padding:10px 16px;
  color:#333;
  font-size:14px;
  white-space:nowrap;
}
.dropdown-menu a {
    font-size: 12px !important;
}
.dropdown-menu li a:hover{
  background:#f2f2f2;
}
.dropdown-item-big {
    font-size: 12px;
}
.dropdown:hover .dropdown-menu{
  display:block;
}
/* إزالة الهوامش الافتراضية */
body, h1, h2, h3, h4, h5, h6, p, ul, li {
  margin: 0;
  padding: 0;
}

/* ===== السلايدر ===== */
.slides{
  width:100%;
  max-width:1200px;
  margin:30px auto;
  overflow:hidden;
  display:flex;
  gap:10px;
}

.slides img{
  width:100%;
  height:350px;
  object-fit:cover;
  border-radius:12px;
  flex-shrink:0;
}
/* ===== الفيديوهات ===== */
.videos-container .widget video{
  width:100%;
  border-radius:12px;
}

.videos-container .widget{
  background:#f4f5f5;
  padding:15px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
/* ----------------- Reset بسيط ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------- الخط العام ----------------- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* ----------------- الهيدر ----------------- */
header {
    background-color: #003399; /* أزرق المعهد */
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* حاوية الهيدر */
header .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* شعار المعهد */
header .logo h1 {
    font-size: 24px;
}

/* ----------------- القائمة ----------------- */
nav.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav.main-nav ul li {
    position: relative;
}

nav.main-nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    display: block;
    transition: background 0.3s;
}

nav.main-nav ul li a:hover {
    background-color: #002080;
    border-radius: 4px;
}

/* ----------------- القوائم المنسدلة ----------------- */
nav.main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    color: #333;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

nav.main-nav ul li:hover ul {
    display: block;
}

nav.main-nav ul li ul li a {
    color: #333;
    padding: 10px;
}

nav.main-nav ul li ul li a:hover {
    background-color: #f2f2f2;
}

/* ----------------- الصورة الرئيسية ----------------- */
.hero-image {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----------------- محتوى النص ----------------- */
.content {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    text-align: justify;
    font-size: 16px;
}

/* ----------------- عناوين ----------------- */
h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #003399;
}

/* ----------------- استجابة الهواتف ----------------- */
@media (max-width: 768px) {
    nav.main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav.main-nav ul li {
        width: 100%;
    }

    nav.main-nav ul li ul {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        border-radius: 0;
    }

    nav.main-nav ul li ul li a {
        padding-left: 20px;
    }
}
.nav-link{
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 10px;
    font-weight: bold;
}

.nav-link:hover{
    background-color: #0056b3;
}

/* ================== Buttons Class ================== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

/* زر رئيسي */
.btn-primary {
    background-color: #003399;
    color: #fff;
}

.btn-primary:hover {
    background-color: #002266;
    transform: translateY(-2px);
}

/* زر ثانوي */
.btn-secondary {
    background-color: #eaeaea;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d6d6d6;
}

/* زر نجاح */
.btn-success {
    background-color: #1a8f3c;
    color: #fff;
}

.btn-success:hover {
    background-color: #157233;
}

/* زر تحذير */
.btn-warning {
    background-color: #ff9800;
    color: #fff;
}

.btn-warning:hover {
    background-color: #e68900;
}

/* زر خطر */
.btn-danger {
    background-color: #d32f2f;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* زر بحجم صغير */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* زر بحجم كبير */
.btn-lg {
    padding: 14px 30px;
    font-size: 17px;
}

/* زر بعرض كامل */
.btn-block {
    width: 100%;
}
/* زر أصفر */
.btn-yellow {
    background-color: #ebdeab;
    color: #000;
}

.btn-yellow:hover {
    background-color: #e6b800;
    color: #000;
}
.center-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}
.hero-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* ===== Slider ===== */
.slider {
    width: 90%;
    max-width: 900px;
    height: 360px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* الحل الحقيقي لكبر الصور */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}
/* ===== Widgets Section ===== */
.widgets-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.widget {
    background-color: #c8dbf0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

/* تأثير عند المرور */
.widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}
.widget h3 {
    color: #003399;
    margin-bottom: 10px;
    font-size: 18px;
}
.widget p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}
.facebook-text {
    color: #ffffff;
}
/* نافذة التكبير */
.logo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}
/* الشعار أعلى يمين */
.logoR {
    position: absolute;
    top: 2px;
    right: 10px;
    width: 80px;
    height: 70px;
    border-radius: 50%; /* تجعل الزوايا دائرية بنسبة 50% */
  object-fit: cover; /* للحفاظ على نسبة الأبعاد وتغطية المساحة */

}
.logoR2 {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 80px;
    height: 100px;
    border-radius: 50%; /* تجعل الزوايا دائرية بنسبة 50% */
  object-fit: cover; /* للحفاظ على نسبة الأبعاد وتغطية المساحة */

}
/* العنوان أعلى منتصف */
.page-title {
    text-align: center;
    margin:10px;
    font-size:20px;
    font-weight: bold;
    right: inherit;
}
.page-title3 {
    text-align: center;
    margin:5px;
    font-size:14px;
   padding: 1px;
    right: inherit;
    color: blue;
}
/* العنوان أعلى منتصف */
.page-title2 {
   position: absolute;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    top:10px;
    right:400px ;
    
}
.logoR22 {
    position: absolute;
    right: 20px;
    
}
.main-header20 {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.page-title22 {
    grid-column: 2;
    text-align: left;
      font-size: 30px;
}


.main-header2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/* الصورة المكبرة */
.logo-modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
   
}
/* زر الإغلاق */
.logo-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}



.logo-img {
    width: 110%;
    height:60%;
}
/* الحاوية العلوية */
.top-header {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
}

/* الشعار أعلى يمين الصفحة */
.logo {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 90px;
    height: auto;
}

/* العنوان في أعلى منتصف الصفحة */

.page-title3 {
    position: absolute;
    top: 20px;              /* تحكم في الارتفاع */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}
.mini-head {
    position: relative;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    background-color: #c1cee0;
    border-bottom: 2px solid #ddd;
}

.mini-head h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: bold;
    color: #222;
}

.mini-head p {
    margin: 0;
    font-size: 16px;
    color: #555;
}
.about-footer {
    width: 100%;
    padding: 25px 20px;
    background-color: #699eee;
    text-align: center;
}

.about-footer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* الحاوية الرئيسية */
.container2 {
    max-width: 1100px;
    margin: 40px auto;
    padding: 15px;
}

/* كرت النموذج */
.card2 {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* شبكة الحقول */
.form-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* الحقل */
.field2 {
    display: flex;
    flex-direction: column;
}

/* العناوين */
.field label  {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
}

/* المدخلات */
.field input,
.field select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s;
}

.field input:focus,
.field select:focus {
    border-color: #0077cc;
}

/* قسم الصورة والأزرار */
.image-and-actions2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* اختيار الصورة */
.image-picker {
    text-align: center;
}

.file-label {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* الأزرار */
.actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.actions button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #0077cc;
    color: #fff;
    transition: background-color 0.3s;
}

.actions button:hover {
    background-color: #005fa3;
}

.actions button[type="reset"] {
    background-color: #777;
}

.actions button[type="reset"]:hover {
    background-color: #555;
}

/* توافق الطباعة */
@media print {
    .actions,
    .file-label,
    input[type="file"] {
        display: none;
    }

    .card {
        box-shadow: none;
        border-radius: 0;
    }
}
/* تنسيق المحتوى الرئيسي */
main {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* حاوية الأزرار */
.buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 800px;
    padding: 10px;
}


/* الأزرار (الروابط) */
.buttons a {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 18px 15px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0077cc;
    border-radius: 14px;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* تأثير التحويم */
.buttons a:hover {
    background-color: #005fa3;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

/* الفوتر */
footer {
    background-color: #416fb6;
    color: #ffffff;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
}

footer p {
    margin: 0;
}

/* توافق الجوال */
@media (max-width: 600px) {
    .buttons a {
        font-size: 16px;
        padding: 15px;
    }
}
/* ====== القسم النصي أعلى الصفحة ====== */
.section-text {
    max-width: 1100px;
    margin: 30px auto 20px;
    padding: 25px 20px;
    background: #f7f9fc;
    border-radius: 14px;
    line-height: 1.9;
}

.section-text h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #1f2a44;
}

.section-text p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

/* ====== حاوية أزرار المقررات ====== */
.buttons-container {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.buttons-containerRoaia {
    max-width: 1100px;
    margin: 10px auto 30px;
    padding: 8px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
/* أزرار المقررات */
.buttons-container a {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0b6fb8;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s, background-color .3s;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.buttons-container a:hover {
    background-color: #094f86;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

/* ====== أزرار الرجوع ====== */
.back-btn {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.back-btn a {
    padding: 12px 22px;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color .3s;
}

.back-btn a:hover {
    background-color: #222;
}

/* ====== الفوتر ====== */
footer {
    background-color: #184bb9;
    color: #fff;
    text-align: center;
    padding: 16px 10px;
    font-size: 14px;
}

footer p {
    margin: 0;
}

/* ====== about-footer ====== */
.about-footer {
    background-color: #f1f3f6;
    padding: 30px 20px;
}

.about-footer p {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    font-size: 15px;
    line-height: 2;
    color: #333;
}

/* ====== تحسين للجوال ====== */
@media (max-width: 600px) {
    .section-text h2 {
        font-size: 22px;
    }
    .buttons-container a {
        font-size: 14px;
        padding: 12px;
    }
}
/* ===== mini head ===== */
.mini-head {
    text-align: center;
    padding: 30px 20px;
    background: #f5f7fa;
    border-bottom: 2px solid #ddd;
}

.mini-head h2 {
    margin-bottom: 10px;
    font-size: 26px;
    color: #1f2a44;
}

.mini-head p {
    font-size: 16px;
    color: #444;
    max-width: 900px;
    margin: auto;
    line-height: 1.9;
}

/* ===== container ===== */
.vrm-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* عناوين الأقسام */
.section-title {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 22px;
    color: #0b6fb8;
    border-right: 5px solid #0b6fb8;
    padding-right: 10px;
}

/* ===== block كل قسم ===== */
.text-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* صورة القسم (يسار) */
.dept-img {
    width: 260px;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* نصوص القسم */
.text-block p {
    margin: 0 0 10px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

/* المهارات */
.skills {
    margin: 10px 0 0;
    padding-right: 18px;
}

.skills li {
    margin-bottom: 6px;
    font-size: 14.5px;
    color: #444;
}

/* ===== about footer ===== */
.about-footer {
    margin-top: 50px;
    background: #f1f3f6;
    padding: 30px 20px;
}

.about-footer p {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    font-size: 15px;
    line-height: 2;
    color: #333;
}

/* ===== responsive ===== */
@media (max-width: 768px) {
    .text-block {
        flex-direction: column;
        text-align: center;
    }

    .dept-img {
        width: 100%;
        max-height: 220px;
    }

    .section-title {
        text-align: center;
        border-right: none;
        border-bottom: 3px solid #0b6fb8;
        padding-bottom: 6px;
    }
}
/* ألوان الأقسام بالتتابع */
.vrm-container .text-block:nth-of-type(1) {
    border-right: 6px solid #0b6fb8; /* محاسبة */
}

.vrm-container .text-block:nth-of-type(2) {
    border-right: 6px solid #2e8b57; /* إدارة أعمال */
}

.vrm-container .text-block:nth-of-type(3) {
    border-right: 6px solid #8b4513; /* حاسب */
}

.vrm-container .text-block:nth-of-type(4) {
    border-right: 6px solid #b22222; /* تمريض */
}

/* عناوين الأقسام بنفس اللون */
.vrm-container .section-title:nth-of-type(1) { color: #0b6fb8; }
.vrm-container .section-title:nth-of-type(2) { color: #2e8b57; }
.vrm-container .section-title:nth-of-type(3) { color: #8b4513; }
.vrm-container .section-title:nth-of-type(4) { color: #b22222; }
.text-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* الصورة */
.dept-img {
    width: 260px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    color:blue;
}

/* النص */
.text-content {
    flex: 1;
}

.text-content p {
    margin-top: 0;
    line-height: 1.8;
    color: #333;
}

.skills {
    padding-right: 18px;
    margin-top: 10px;
}
.vrm-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* عناوين الأقسام */
.section-title {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 22px;
    padding-right: 10px;
}

/* إطار كل قسم */
.text-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

/* الصورة */
.dept-img {
    width: 260px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* النصوص */
.text-content {
    flex: 1;
}

.text-content p {
    margin-top: 0;
    line-height: 1.8;
    color: #333;
}

.skills {
    padding-right: 18px;
    margin-top: 10px;
}

/* ===== ألوان مختلفة لكل قسم ===== */
.text-block:nth-of-type(1) { border-right: 6px solid #0b6fb8; }
.text-block:nth-of-type(2) { border-right: 6px solid #2e8b57; }
.text-block:nth-of-type(3) { border-right: 6px solid #8b4513; }
.text-block:nth-of-type(4) { border-right: 6px solid #b22222; }

.section-title:nth-of-type(1) { color: #0b6fb8; }
.section-title:nth-of-type(2) { color: #2e8b57; }
.section-title:nth-of-type(3) { color: #8b4513; }
.section-title:nth-of-type(4) { color: #b22222; }

/* ===== Animation ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأخير لكل قسم */
.text-block:nth-of-type(1) { animation-delay: 0.2s; }
.text-block:nth-of-type(2) { animation-delay: 0.4s; }
.text-block:nth-of-type(3) { animation-delay: 0.6s; }
.text-block:nth-of-type(4) { animation-delay: 0.8s; }

/* ===== responsive ===== */
@media (max-width: 768px) {
    .text-block {
        flex-direction: column;
        text-align: center;
    }

    .dept-img {
        width: 100%;
        max-height: 220px;
    }

    .section-title {
        text-align: center;
        border-right: none;
        border-bottom: 3px solid currentColor;
        padding-bottom: 6px;
    }
}
/* ===== الخطوط الأساسية ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

h1.title, h2 {
    text-align: center;
    color: #0b3c5d;
}

h1.title {
    margin-bottom: 30px;
    font-size: 28px;
}

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 22px;
}

/* ===== نموذج إضافة الأخبار ===== */
.form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.form input[type="text"],
.form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.form button {
    background-color: #0b3c5d;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.form button:hover {
    background-color: #095a8a;
}

/* ===== قائمة الأخبار ===== */
#newsList {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 6px solid #0b3c5d;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-item h3 {
    margin: 0 0 10px 0;
    color: #0b3c5d;
    font-size: 20px;
}

.news-item p {
    margin: 0 0 8px 0;
}

.news-item small {
    color: #888;
}

.news-item button {
    background-color: #0b3c5d;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    margin-top: 8px;
}

.news-item button:hover {
    background-color: #095a8a;
}

.news-item button:nth-child(2) {
    background-color: #b22222; /* زر الحذف */
}

.news-item button:nth-child(2):hover {
    background-color: #8a1b1b;
}

/* ===== responsive ===== */
@media (max-width: 768px) {
    .form, #newsList {
        padding: 15px;
        margin: 0 10px;
    }

    .form button, .news-item button {
        width: 100%;
        margin-top: 10px;
    }

    .news-item {
        flex-direction: column;
    }
}
/* حاوية الأزرار */
.header-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* غيرها center أو flex-end حسب مكانها */
    align-items: center;
}

/* الشكل العام للزر */
.header-buttons .btn {
    padding: 8px 18px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s ease;
    font-family: Tahoma, Arial, sans-serif;
}

/* الزر الأساسي */
.btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}

/* عند المرور بالماوس */
.btn-primary:hover {
    background-color: #084298;
    border-color: #084298;
    color: #fff;
}
.buttons {
    display: flex;
    flex-wrap: wrap;        /* يخليها تنزل سطر ثاني لو الشاشة صغيرة */
    gap: 12px;              /* مسافة بين الأزرار */
    justify-content: center;/* وسط الصفحة */
    margin: 20px 0;
}

.buttons a {
    display: inline-block;
    padding: 12px 18px;
    background-color: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
    white-space: nowrap;    /* يمنع نزول النص لسطر جديد */
}

.buttons a:hover {
    background-color: #084298;
}
.text-block {
    background-color: #f8f9fa;
    border-right: 4px solid #0d6efd;
    padding: 15px 20px;
    margin: 15px 0 30px;
    line-height: 1.9;
    border-radius: 8px;
    font-size: 15px;
}

/* إزالة تنسيق القائمة الافتراضي */
.goals-list {
    list-style: none;
    padding-right: 0;
}

/* تنسيق كل هدف */
.goals-list li {
    padding-right: 22px;
    position: relative;
    margin-bottom: 10px;
}

/* أيقونة أمام كل هدف */
.goals-list li::before {
    content: "✔";
    color: #0d6efd;
    position: absolute;
    right: 0;
    top: 0;
}
/* ====== قسم ساعات العمل ====== */

.work-hours {
max-width: 800px;
margin: 40px auto;
padding: 30px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
font-family: "Tahoma", Arial, sans-serif;
line-height: 1.8;
}

.work-hours h2 {
text-align: center;
color: #0b5ed7;
margin-bottom: 15px;
font-size: 26px;
}

.work-hours .intro {
text-align: center;
color: #444;
margin-bottom: 20px;
font-size: 16px;
}

/* حالة المعهد (مفتوح / مغلق) */
.status {
text-align: center;
font-weight: bold;
padding: 10px;
margin-bottom: 20px;
border-radius: 6px;
font-size: 16px;
}

.status.open {
background-color: #e7f7ed;
color: #198754;
}

.status.closed {
background-color: #fdecea;
color: #dc3545;
}

/* ====== جدول ساعات العمل ====== */

.hours-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
color: #0b095c;
}

.hours-table th,
.hours-table td {
border: 1px solid #ddd;
padding: 12px;
text-align: center;
font-size: 15px;
}

.hours-table th {
background-color: #0b5ed7;
color: #fff;
font-weight: bold;
}

.hours-table tr:nth-child(even) {
background-color: #f9f9f9;
}

.hours-table tr:hover {
background-color: #eef4ff;
}

/* يوم الإغلاق */
.closed-day {
background-color: #fff3cd;
color: #856404;
font-weight: bold;
}

/* ملاحظات */
.work-hours .note {
background: #f1f5ff;
padding: 12px;
border-right: 4px solid #0b5ed7;
border-radius: 6px;
font-size: 14px;
color: #333;
margin-bottom: 15px;
}

/* رقم الهاتف */
.work-hours p:last-of-type {
text-align: center;
font-weight: bold;
font-size: 16px;
color: #000;
}

/* ====== استجابة للجوال ====== */
@media (max-width: 600px) {
.work-hours {
padding: 20px;
}


.work-hours h2 {
    font-size: 22px;
}

.hours-table th,
.hours-table td {
    font-size: 14px;
    padding: 8px;
}

}
/* =========================
تصحيح موضع ساعات العمل
========================= */

/* تأكيد أن الهيدر لا يطفو فوق المحتوى */
.main-header {
    padding-top: 0px;
position: relative;
z-index: 10;
}

/* مسافة بعد الهيدر مباشرة */
.mini-head {
      padding-top: 0px;
margin-top: 20px;
margin-bottom: 30px;
text-align: center;
top: 20px;
}

/* إبعاد السلايدر عن الهيدر */
.slider {
margin-top:60px;
margin-bottom: 40px;
}

/* قسم ساعات العمل */
.work-hours {
max-width: 800px;
margin: 0 auto 60px auto; /* توسيط أفقي + مسافة سفلية */
padding: 30px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* توسيط النص */
.work-hours h2,
.work-hours p {
text-align: center;
}
/* توسيط الصفحة بالكامل */
body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    font-family: Tahoma, Arial, sans-serif;
}

/* تأكيد أن أي محتوى بعد الهيدر في المنتصف */
section {
    display: block;
    width: 100%;
}
.work-hours {
    max-width: 900px;          /* عرض مناسب */
    margin: 40px auto;         /* توسيط كامل */
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
}
.hours-table {
    width: 100%;
    margin: 25px auto;
    border-collapse: collapse;
    direction: rtl;
}

.hours-table th,
.hours-table td {
    padding: 14px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
}

.hours-table th {
    background: #0b5ed7;
    color: #fff;
}

.closed-day td {
    background: #fff3cd;
    color: #856404;
    font-weight: bold;
}
.logoR2,
.logo-img,
nav {
    float: none !important;
}
/* ===== صفحة نتيجة الطالب (res.php) ===== */

body {
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

/* عنوان الصفحة */
.res-title {
    text-align: center;
    margin-top: 40px;
    color: #2c3e50;
    font-size: 26px;
    font-weight: bold;
}

/* صندوق النتيجة */
.res-box {
    width: 90%;
    max-width: 650px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    padding: 30px;
}

/* جدول النتيجة */
.res-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.res-table th,
.res-table td {
    padding: 14px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 16px;
}

.res-table th {
    background: #f3f5f7;
    color: #34495e;
    text-align: right;
    width: 40%;
}

.res-table td {
    text-align: center;
    color: #2c3e50;
    font-weight: bold;
}

/* حالة النتيجة */
.res-success {
    color: #27ae60;
}

.res-fail {
    color: #c0392b;
}

/* رسالة عدم وجود نتيجة */
.res-error {
    text-align: center;
    color: #c0392b;
    font-size: 18px;
    margin-top: 25px;
}

/* زر الرجوع */
.res-back {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.res-back:hover {
    background: #1a252f;
}

/* دعم الجوال */
@media (max-width: 600px) {
    .res-table th,
    .res-table td {
        font-size: 14px;
        padding: 10px;
    }

    .res-title {
        font-size: 22px;
    }
}
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* زر تسجيل الخروج */
.btn-primary {
    background-color: #2a47e9;   /* أحمر أنيق */
    color: #fff;
    border: none;
     font-size: 8px;
}

.btn-primary:hover {
    background-color: #3540dd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 12px;
}

.btn-primary:active {
    transform: scale(0.98);
}
.counter{
background:#fff;
padding:20px 60px;
border-radius:10px;
display:inline-block;
margin:20px;
box-shadow:0 4px 10px rgba(0,0,0,.2);
font-size:22px;
}

.visit-number{
font-size:40px;
color:#1976d2;
font-weight:bold;
}
/* ===== زر الرئيسية يسار الهيدر (آمن) ===== */
.home-left{
  position:absolute;
  left:20px;
  top:50%;
  transform:translateY(-50%);
}

.home-left a{
  background:#1976d2;
  color:#fff;
  padding:6px 16px;
  border-radius:8px;
  font-size:14px;
  text-decoration:none;
  font-weight:bold;
  transition:.2s;
}

.home-left a:hover{
  background:#0b5ed7;
}

/* تأكد أن الهيدر position relative */
.main-header{
  position:relative;
}
.home-left img{
  width:30px;   /* صغر الرقم هنا */
  height:30px;
  border-radius:50%;
  object-fit:cover;
  cursor:pointer;
}
.footer-dev{
    margin-top:10px;
    text-align:center;
    font-size:14px;
    color:#ddd;
}

.footer-copy{
    text-align:center;
    margin-top:8px;
    font-size:13px;
    color:#aaa;
}

.footer-content{
    max-width:900px;
    margin:auto;
}

.footer-logo{
    width:90px;
    margin-bottom:10px;
}

.footer-info{
    margin:8px 0;
    font-size:14px;
}

.footer-social a{
    color:#fff;
    text-decoration:none;
    font-size:14px;
}

.footer-social img{
    width:18px;
    vertical-align:middle;
    margin-left:5px;
}

.footer-dev{
    margin-top:12px;
    font-size:14px;
    color:#eee;
}

.footer-copy{
    margin-top:10px;
    font-size:13px;
    color:#ccc;
}

/* اسم المعهد وسط */
.title-area200{
    flex:1;
    text-align:center;
    color:#fff;
    font-size:14px;
    font-weight:bold;
}

/* زر الرئيسية يسار */
.home-left{
    min-width:120px;
}
.home-btn {
    color: white;        /* لون الخط أبيض */
    text-decoration: none; /* لإزالة التسطير الافتراضي */
    font-weight: bold;     /* اختياري: لتقوية الخط */
    background-color: #333; /* اختياري: لون خلفية للزر */
    padding: 8px 15px;     /* اختياري: مساحة داخلية للزر */
    border-radius: 5px;    /* اختياري: حواف مستديرة */
}
/* الهيدر */
.top-header{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:15px;
    background:#f5f5f5;
}

/* الشعار */
.logoR{
    width:60px;
    margin-left:10px;
}

/* اسم المعهد */
.page-title{
    font-size:20px;
    font-weight:bold;
}
.home-left{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
}


/* زر العودة يسار */

/* صورة زر العودة */
.home-left img{
    width:28px;   /* صغر الزر هنا */
    height:28px;
    border-radius:50%;
    cursor:pointer;
    transition:0.2s;
}

.home-left img:hover{
    transform:scale(1.1);
}
.uni-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 26px;
    font-size:16px;
    font-weight:bold;
    color:#fff;
    background:linear-gradient(135deg,#003399,#0055cc);
    border-radius:30px;
    text-decoration:none;

    transition:all .3s ease;
    position:relative;
    overflow:hidden;
}

/* حركة عند المرور */
.uni-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    background:linear-gradient(135deg,#002a80,#003399);
}

/* تأثير لمعان */
.uni-btn::after{
    content:"";
    position:absolute;
    width:40px;
    height:200%;
    background:rgba(255,255,255,0.3);
    top:-50%;
    left:-60px;
    transform:rotate(25deg);
    transition:.6s;
}

.uni-btn:hover::after{
    left:120%;
}
.status{
    text-align:center;
    font-size:20px;
    margin:15px 0;
}
