:root {
  --primary-color: #8B4513;
  --secondary-color: #964B00;
  --accent-color: #0056b3;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  direction: rtl;
  background-color: var(--light-bg);
}

/* تنسيق الهيدر */
.header {
  background-color: var(--primary-color);
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-color: var(--white);
  padding: 5px;
}

/* تنسيق القائمة الرئيسية */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--secondary-color);
  flex-grow: 1;
  margin: 0 2rem;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* تنسيق أيقونات القائمة */
.menu-icon {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}

/* تنسيق نموذج تسجيل الدخول */
.login-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 2rem auto;
  transition: all 0.3s ease;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* تنسيق البطاقات */
.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
}

.card:hover {
  transform: translateY(-5px);
}

/* تنسيق الأقسام الرئيسية */
.section {
  padding: 4rem 0;
  margin: 2rem 0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section:not(:last-child) {
  margin-bottom: 3rem;
  border-bottom: 2px solid #f5f5f5;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* تنسيق الفيديو الرئيسي */
.hero-video {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

/* تنسيق لوحة التحكم */
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.dashboard-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* تنسيق متجاوب */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .section {
    padding: 2rem 1rem;
  }

  .logo {
    width: 60px;
    height: 60px;
  }
}

/* إضافة تنسيقات جديدة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.stats {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

.views {
    color: var(--text-color);
    font-size: 0.9rem;
}

.register-link {
    margin-top: 1rem;
    text-align: center;
}

/* تحسينات للتجاوب */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .card {
        margin: 0.5rem;
    }
}

/* تنسيق صور 3D */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    transform: perspective(800px) rotateY(15deg);
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: perspective(800px) rotateY(-15deg);
}

/* تنسيقات نموذج التسجيل */
.register-form {
    max-width: 500px;
}

.member-fields, .visitor-fields {
    transition: all 0.3s ease;
}

/* تحسينات للتجاوب */
@media (max-width: 768px) {
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

/* تأثيرات حركية */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card {
    animation: slideIn 0.5s ease forwards;
}

/* تنسيق القسم الرئيسي */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    margin-top: 20px;
    padding: 0 50px;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('D:/Egypt enigeer website/images/WhatsApp Image 2025-02-24 at 01.28.09.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* إزالة التنسيقات القديمة */
.video-overlay {
    display: none;
}

.hero-video {
    display: none;
}

/* تحسينات للتجاوب */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        padding: 0 20px;
    }

    .hero-image {
        width: 90%;
        height: 90%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        padding: 0 10px;
    }

    .hero-image {
        width: 95%;
        height: 95%;
    }
}

/* تنسيق شبكة الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 15px;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    perspective: 1000px;
    position: relative;
}

.service-icon {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    animation: float 3s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card[data-type="training"] .service-icon {
    animation: float 3s ease-in-out infinite, rotateTraining 5s linear infinite;
    fill: #007bff;
}

.service-card[data-type="consulting"] .service-icon {
    animation: float 3s ease-in-out infinite, rotateConsulting 5s linear infinite;
    fill: #ffc107;
}

.service-card[data-type="workshop"] .service-icon {
    animation: float 3s ease-in-out infinite, rotateWorkshop 5s linear infinite;
    fill: #28a745;
}

.service-card[data-type="development"] .service-icon {
    animation: float 3s ease-in-out infinite, rotateDevelopment 5s linear infinite;
    fill: #dc3545;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateTraining {
    to { transform: rotate3d(1, 1, 1, 360deg); }
}

@keyframes rotateConsulting {
    to { transform: rotate3d(0, 1, 0, 360deg); }
}

@keyframes rotateWorkshop {
    to { transform: rotate3d(1, 0, 1, 360deg); }
}

@keyframes rotateDevelopment {
    to { transform: rotate3d(0, 1, 1, 360deg); }
}

/* تنسيق صفحات العرض */
.content-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.content-page h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* تنسيق حاويات المحتوى */
.news-container,
.announcements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* تنسيق البطاقات */
.news-card,
.announcement-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* تنسيق أيقونة الحساب */
.account-icon {
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.account-wrapper {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.account-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.account-menu.active {
    display: block;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    text-align: right;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: var(--light-bg);
}

/* تنسيق البروفايل */
.profile-section {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* تحسين ظهور اللوجو في الشاشات الصغيرة */
@media (max-width: 768px) {
    .logo {
        width: 60px;
        height: 60px;
    }
}

/* تنسيق حاوية اللوجو */
.header-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem;
}

/* تنسيق صفحة تسجيل الدخول */
.profile-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.profile-content {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* تنسيق قسم اللجان */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.committee-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.committee-card:hover {
    transform: translateY(-5px);
}

.committee-image {
    height: 200px;
    overflow: hidden;
}

.committee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.committee-card:hover .committee-image img {
    transform: scale(1.1);
}

.committee-content {
    padding: 1.5rem;
}

.committee-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.committee-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* تنسيق صفحة التسجيل */
.register-page {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.register-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.register-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.register-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.register-form .form-group {
    margin-bottom: 1.5rem;
}

.register-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.register-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.register-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
}

.toggle-password:hover {
    opacity: 1;
}

.password-input-wrapper input {
    padding-left: 35px;
}

.register-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background: var(--secondary-color);
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* تحسين التنسيق للشاشات الصغيرة */
@media (max-width: 480px) {
    .register-box {
        padding: 1.5rem;
    }

    .register-form input {
        padding: 0.7rem;
    }
}

/* تنسيق الفوتر والأيقونات الاجتماعية */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.4s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

/* تخصيص لكل أيقونة */
.social-link.facebook {
    background: linear-gradient(45deg, #3b5998, #4c70ba);
}

.social-link.facebook-group {
    background: linear-gradient(45deg, #4c70ba, #3b5998);
}

.social-link.linkedin {
    background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.social-link i {
    position: relative;
    z-index: 2;
}

/* تأثير التموج في الخلفية */
.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    animation: wave 15s infinite linear;
}

@keyframes wave {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* تنسيق نموذج الملف الشخصي */
.profile-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* تنسيق صفحة تسجيل الدخول */
.login-page {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.login-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.login-btn:hover {
    background: var(--secondary-color);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password .forgot-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* تنسيق حقل الاختيار */
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* تنسيق الحقول المخفية */
.form-group[style*="display: none"] {
    display: none;
}

/* تحسين مظهر التحول بين الحقول */
.form-group {
    transition: all 0.3s ease;
}

/* تنسيق نماذج استعادة كلمة المرور */
.login-form {
    transition: all 0.3s ease;
}

.back-to-login {
    text-align: center;
    margin-top: 1rem;
}

.back-to-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* تنسيق رسائل النجاح والخطأ */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* تنسيقات لوحة التحكم */
.admin-page {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
}

.admin-sidebar {
    width: 250px;
    background: var(--primary-color);
    padding: 2rem 0;
    color: var(--white);
}

.admin-profile {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-profile i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.admin-nav {
    padding: 2rem 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-nav a i {
    margin-left: 1rem;
    width: 20px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.add-btn {
    background: var(--success-color);
    margin-bottom: 1rem;
}

.add-btn:hover {
    background: darken(var(--success-color), 10%);
}

.video-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: url('fallback.jpg') no-repeat center center/cover;
}
.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}


/* تنسيق قسم الأخبار */
.news-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 4rem 2rem;
    margin-top: 3rem;
    border-radius: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
