/* =========================
   عام للجسم والخلفية
========================= */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    direction: rtl; /* الموقع بالعربية */
}

/* =========================
   رأس الصفحة وشريط التنقل
========================= */
header, .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #007BFF;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo, .logo-text {
    font-family: 'Amiri', serif;
    font-size: 35px;
    font-weight: 700;
    color: #0d1117;
    white-space: nowrap;
    line-height: 1.4;
    display: inline-block;
    transition: color 0.3s ease;
}

header nav a, nav a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 3px;
}

/* زر الموبايل */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* موبايل */
@media (max-width:768px){
    .menu-toggle { display: block; }
    nav { display: none; flex-direction: column; width: 100%; margin-top: 10px; }
    nav.show { display: flex; }
    nav a { margin: 10px 0; }
    .logo-text { font-size: 15px; letter-spacing: 0.3px; }
}

/* حركة الشعار */
.logo-box {
    transition: transform 0.4s ease;
}

.logo-box:hover {
    transform: scale(1.05) rotate(-1deg);
}

.logo-box:hover .logo-text {
    color: #007BFF;
}

.logo-box img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-box:hover img {
    transform: scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* =========================
   Hero Section
========================= */
.hero-section, .hero {
    display: flex;
    gap: 30px;
    padding: 60px 10%;
    background: linear-gradient(135deg,#f4f6f8,#ffffff);
}

.hero-left { flex:1; }

.hero-text-box{
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.hero-left h2, .hero-left h3 {
    color:#007BFF;
    margin-top:25px;
}

.hero-left p, .hero-left ul{
    margin-bottom:15px;
    line-height:1.8;
}

.hero-left ul { padding-left:20px; }

/* Right Slider Sticky */
.hero-right{
    flex:1;
    position:sticky;
    top:100px;
    height:fit-content;
}

.hero-slide{
    display:none;
    text-align:center;
}

.hero-slide.active{ display:block; }

.hero-slide img{
    width:100%;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.hero-slide h2{
    margin-top:15px;
    color:#007BFF;
}

/* Slider Script */
@media(max-width:992px){
    .hero-section{ flex-direction:column; }
    .hero-right{ position:relative; top:0; }
}

/* =========================
   Latest News Section
========================= */
.latest-news {
    padding: 50px 10%;
    background-color: #f9f9f9;
    text-align: center;
}

.latest-news h2 { margin-bottom: 40px; }

.news-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-item {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
    text-align: center;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: scale(1.03);
}

/* =========================
   Admin Forms
========================= */
.admin-container {
    max-width: 550px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #004aad;
}

.admin-form label{
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.admin-form input, .admin-form textarea, .admin-form select{
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.admin-form button{
    width: 100%;
    padding: 12px;
    background-color: #004aad;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.admin-form button:hover{
    background-color: #00337a;
}

/* =========================
   Footer
========================= */
footer {
    background: #f4f6f5;
    color: #333;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
}

.footer-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

footer h3{ color: #2f6f5f; margin-bottom: 15px; }
footer p{ margin: 6px 0; font-size: 14px; }
footer iframe{ border-radius: 12px; }

.social-icons a{
    display: block;
    color: #2f6f5f;
    text-decoration: none;
    margin-bottom: 6px;
}

.social-icons a:hover{ color: #1f4f44; }

.footer-bottom{
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

/* =========================
   Useful Links Section (Panel)
========================= */
.useful-links-section{
    padding:90px 15px;
    background:linear-gradient(180deg,#f5f7fa,#ffffff);
    display:flex;
    justify-content:center;
}

.links-panel{
    background:#ffffff;
    max-width:1100px;
    width:100%;
    padding:50px 45px;
    border-radius:22px;
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.links-panel h2{
    text-align:center;
    color:#004a99;
    margin-bottom:45px;
    font-size:28px;
    position:relative;
}

.links-panel h2::after{
    content:"";
    width:90px;
    height:3px;
    background:#007BFF;
    display:block;
    margin:14px auto 0;
    border-radius:2px;
}

.useful-links-section .links-container{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
    gap:25px;
}

.useful-links-section .link-card{
    background:#f9fafc;
    padding:30px 25px;
    border-radius:16px;
    text-decoration:none;
    color:#333;
    border:1px solid #eef1f5;
    text-align:center;
    transition:.35s ease;
    position:relative;
    overflow:hidden;
}

.useful-links-section .link-card:hover{
    background:#ffffff;
    transform:translateY(-6px);
    box-shadow:0 14px 30px rgba(0,0,0,.15);
    border-color:#007BFF;
}

.useful-links-section .link-card h3{
    color:#003f7f;
    margin-bottom:12px;
    font-size:19px;
}

.useful-links-section .link-card p{
    font-size:20px;
    color:#555;
    line-height:1.6;
}

/* Responsive Useful Links */
@media(max-width:600px){
    .useful-links-section .links-panel{
        padding:35px 25px;
    }
}

/* =========================
   Read More Button
========================= */
.read-more {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 18px;
    background: #0077b6;
    color: #fff;
    font-size: 0.85em;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s ease;
}

.read-more:hover{
    background: #023e8a;
    transform: scale(1.05);
}
.news-excerpt{
    margin:15px 0;
    color:#555;
    line-height:1.7;
    font-size:15px;
}

.read-more{
    display:inline-block;
    margin-top:10px;
    padding:8px 18px;
    background:#007BFF;
    color:#fff;
    border-radius:20px;
    font-size:14px;
    text-decoration:none;
    transition:0.3s;
}

.read-more:hover{
    background:#0056b3;
}
