/* ===================================
   1. Global Styles & Variables
   =================================== */
:root {
    --primary-color: #005f73; /* A deep, elegant turquoise/blue */
    --secondary-color: #ae8a6b; /* A warm, sandy beige/gold */
    --background-color: #fdfaf6; /* A very light off-white, like sand */
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
    --admin-bg: #1e2125;
    --admin-sidebar-bg: #2c3034;
    --admin-card-bg: #2c3034;
    --admin-text-color: #ced4da;
    --admin-border-color: #495057;
    --admin-accent-color: var(--secondary-color);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 85px; 
}
main {
    flex-grow: 1;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* ===================================
   2. /* ===================================
   2. Layout (Header & Footer)
   =================================== */
.site-body {
    /* This adds space at the top for the fixed header */
    padding-top: 76px; 
}
main {
    flex-grow: 1;
}

.site-header .navbar {
    padding: 0.5rem 0;
}
.site-logo {
    max-height: 45px;
}

.site-footer {
    background: var(--dark-gray);
    color: #ccc;
    padding: 3rem 0 1rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}
.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.footer-logo {
    max-height: 60px;
    margin-bottom: 1rem;
}
.footer-about {
    font-size: 0.9rem;
    color: #aaa;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.contact-list i {
    margin-right: 10px;
    color: var(--secondary-color);
    margin-top: 4px;
}
.contact-list a {
    color: #ccc;
}
.contact-list a:hover {
    color: white;
}
.map-container iframe {
    width: 100% !important;
    height: 150px !important;
    border-radius: 5px;
}
.social-links {
    margin-bottom: 1.5rem;
}
.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}
.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

/* ===================================
   3. Bootstrap & General Components
   =================================== */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: #9c7b5f;
    border-color: #9c7b5f;
}

.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #004c5c;
    border-color: #004c5c;
}

.dropdown-menu {
    border-radius: .5rem;
    border: none;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    padding: .5rem 0;
    animation: fadeIn .2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    padding: .5rem 1.5rem;
    font-weight: 500;
}
.dropdown-item:active {
    background-color: var(--primary-color);
}

/* ===================================
   4. Page-Specific Sections
   =================================== */

/* --- Homepage --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
/* In /public/assets/css/style.css */

/* --- Hero --- */
.hero {
    /* ... your existing .hero styles ... */
}

/* REPLACE your old #bgvideo style with this */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}

/* This is the new rule for mobile devices */
@media (max-width: 768px) {
    .hero-video {
        /* On mobile, force the width to 100% and let the height be automatic.
           This prevents the "zoom" effect by showing the full width of the video. */
        width: 100%;
        height: auto;
    }
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 47, 59, 0.6);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 4rem;
    color: #fff;
}
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 5rem 0;
}
.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.parallax-bg .container {
    position: relative;
    z-index: 2;
}
.parallax-bg .section-title,
.parallax-bg h3,
.parallax-bg p {
    color: #ffffff;
}
.event-showcase-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: .5rem;
    color: var(--text-color);
}
.event-showcase-card h3, .event-showcase-card p {
    color: var(--text-color);
}

/* --- Redesigned Menu Page --- */
.menu-category-redesigned {
    text-align: center;
    margin-bottom: 4rem;
}
.menu-category-redesigned .section-title {
    display: inline-block;
}
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}
.menu-item-card {
    display: flex;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.menu-item-card:hover {
    transform: translateY(-5px);
}
.menu-item-image {
    flex: 0 0 150px;
}
.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.menu-item-details {
    padding: 1.2rem;
    flex: 1;
    position: relative;
}
.menu-item-details h4 {
    margin: 0 0 5px 0;
}
.menu-item-details p {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0 0 0;
}
.menu-item-price {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- Events Page --- */
.event-card-bs .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- Upgraded Gallery Page --- */
#galleryTab .nav-link {
    font-size: 1.1rem;
    padding: .5rem 1.5rem;
    border-radius: 50px;
    color: var(--primary-color);
}
#galleryTab .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gallery-item {
    overflow: hidden;
    border-radius: .375rem;
}
.gallery-item img {
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Review & Rating System --- */
.reviews-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.review {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}
.review p { margin: 5px 0 0 0; }
.review .star-rating {
    color: #ffc107;
    margin-left: 10px;
    font-size: 1.1rem;
}
.review-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 5px;
}
.review-form h5 { margin: 0 0 10px 0; }
.star-rating-input {
    display: inline-block;
    direction: rtl;
    margin-bottom: 10px;
}
.star-rating-input input { display: none; }
.star-rating-input label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffc107;
}

/* ===================================
   5. Admin Panel Dark Theme
   =================================== */
.admin-layout {
    background-color: var(--admin-bg);
    color: var(--admin-text-color);
}
.admin-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    background-color: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border-color);
    display: flex;
    flex-direction: column;
}
.admin-sidebar-header {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--admin-border-color);
}
.admin-sidebar-header .fs-4 {
    font-weight: bold;
}
.admin-nav {
    flex-grow: 1;
}
.admin-nav .nav-link {
    color: var(--admin-text-color);
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}
.admin-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.admin-nav .nav-link.active {
    color: #ffffff;
    font-weight: bold;
    background-color: var(--primary-color);
    border-left: 3px solid var(--admin-accent-color);
}
.admin-nav .nav-link i {
    width: 25px;
    color: #8895a7;
    transition: color 0.3s ease;
}
.admin-nav .nav-link.active i,
.admin-nav .nav-link:hover i {
    color: #ffffff;
}
.admin-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--admin-border-color);
}
.admin-main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2.5rem;
}
.stat-box-dark {
    background: var(--admin-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--admin-border-color);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}
.stat-box-dark:hover {
    background-color: #343a40;
}
.stat-box-dark .stat-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: var(--admin-accent-color);
}
.stat-box-dark .stat-info h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}
.stat-box-dark .stat-info p {
    margin: 0;
    color: var(--admin-text-color);
}
.admin-card-dark {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-color);
    border-radius: 8px;
    padding: 2rem;
}
.admin-card-dark h1, .admin-card-dark h2 {
    color: #fff;
}
.admin-card-dark table {
    color: var(--admin-text-color);
}
.admin-card-dark table thead {
    background: var(--primary-color);
    border-bottom: 2px solid var(--admin-accent-color);
}
.admin-card-dark table tbody tr:nth-child(even) {
    background-color: rgba(255,255,255, 0.03);
}
.admin-card-dark .form-label {
    color: var(--admin-text-color);
}
.admin-card-dark input,
.admin-card-dark textarea,
.admin-card-dark select {
    background-color: #1e2125;
    border-color: var(--admin-border-color);
    color: #fff;
}
.admin-card-dark input:focus,
.admin-card-dark textarea:focus,
.admin-card-dark select:focus {
    background-color: #1e2125;
    border-color: var(--admin-accent-color);
    box-shadow: 0 0 0 0.25rem rgba(174, 138, 107, 0.25);
    color: #fff;
}
.rating-stars {
    color: var(--admin-accent-color);
    font-size: 1.1rem;
}
.delete-link, .cancel-link { color: #d9534f; }
.confirm-link { color: #5cb85c; }

/* ===================================
   6. Responsive Design
   =================================== */
@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .event-showcase, .gallery-preview-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
}
/* About Us Page Styling */
.hero-page {
    height: 40vh; /* Shorter hero for internal pages */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.hero-page::before { /* Dark overlay */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-page .container {
    z-index: 1;
}

.about-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Team Section Styling */
.team-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.team-section .lead {
    font-size: 1.15rem;
    color: #666;
}

.team-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-photo {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--primary-color); /* Highlight color */
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.team-role {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: -5px; /* Pull role closer to name */
}
/* ===== Fix header/dropdown scroll ===== */
.site-header,
.site-header .navbar,
.site-header .container,
#mainNavbar {
  overflow: visible !important;
}

.navbar .dropdown-menu {
  max-height: none !important;
  overflow: visible !important; /* امنع سكرول داخلي للقائمة */
}

/* لو في ستايل سابق محدد max-height للـ navbar-collapse في الشاشات الكبيرة */
@media (min-width: 992px) {
  .navbar .navbar-collapse {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* اختيارية: امنع ظهور شريط عمودي رفيع بجوار الفاصل | */
.navbar .nav-link,
.navbar .dropdown-toggle {
  white-space: nowrap;
}

/* ===== Admin: Offcanvas sidebar behavior ===== */
@media (min-width: 992px) {
  .admin-sidebar {
    width: 260px;               /* نفس اللي كنت عامله */
    position: fixed;            /* ثابت على الديسكتوب */
    top: 0;
    bottom: 0;
    left: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .admin-main-content {
    margin-left: 260px;         /* سيب مساحة للسايدبار */
    width: calc(100% - 260px);
    padding: 2rem;
  }
}

/* لمس أفضل وروابط أوضح داخل القائمة */
.admin-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  font-size: 0.975rem;
}
.admin-nav .nav-link i { width: 1.25rem; text-align: center; }

@media (max-width: 991.98px) {
  .admin-main-content { padding: 1rem; }       /* راحة على الموبايل */
  .admin-nav .nav-link { font-size: 1rem; }    /* لمس أكبر */
}

/* كروت/جداول */
.table-responsive { overflow-x: auto; }
.admin-card-dark {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

/* تحسين ألوان active */
.admin-nav .nav-link.active {
  color: #fff;
  font-weight: 700;
  background: var(--primary-color);
  border-left: 3px solid var(--admin-accent-color);
}

/* ترويسة السايدبار */
.admin-sidebar-header { background: rgba(255,255,255,0.04); }

/* لو عندك زر حفظ ثابت تحت في صفحات الإعدادات */
.sticky-save {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, rgba(15,18,24,.95), rgba(15,18,24,0));
  padding: .75rem 0 .25rem;
  z-index: 2;
}
/* اجبر الـ sidebar يظهر على ≥ lg */
@media (min-width: 992px) {
  /* خليه ظاهر ومافيش transform */
  #adminSidebar.offcanvas-lg {
    visibility: visible !important;
    transform: none !important;
  }
  /* مهم: offcanvas بيستخدم display: block داخليًا */
  #adminSidebar.offcanvas-lg,
  #adminSidebar.offcanvas-lg .offcanvas-body {
    display: block !important;
  }

  /* الوضع الثابت على الديسكتوب */
  #adminSidebar.offcanvas-lg.admin-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 260px;
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 1030; /* تحت الـ navbar لو عندك */
  }

  /* اترك مساحة للمحتوى */
  .admin-main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem;
  }
}
/* اجبر السايدبار يبان على الديسكتوب */
@media (min-width: 992px) {
  #adminSidebar.offcanvas-lg {
    visibility: visible !important;
    transform: none !important;
  }
  #adminSidebar.offcanvas-lg,
  #adminSidebar.offcanvas-lg .offcanvas-body {
    display: flex !important;
    flex-direction: column;
  }
  #adminSidebar.offcanvas-lg.admin-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 260px;
    z-index: 1030;
  }
  .admin-main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem;
  }
}
/* ====== Mobile-first fixes (≤991.98px) ====== */
@media (max-width: 991.98px) {
  /* خلي المحتوى ياخد الشاشة كلها */
  .admin-main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem !important;
    overflow-x: hidden;        /* امنع سكرول يمين/شمال */
  }

  /* عالج أي offcanvas مفتوح سابقًا ومسبب إزاحة */
  body.offcanvas-open {
    overflow: hidden;
    padding-right: 0 !important;
  }

  /* كبّر مناطق اللمس وخلي النصوص مناسبة */
  .admin-nav .nav-link { padding: 1rem 1.1rem; font-size: 1rem; }
  .admin-card-dark { padding: 1rem; border-radius: 12px; }
  h1.h2, .admin-card-dark h1, .admin-card-dark h2 { font-size: 1.35rem; }

  /* بطاقات الإحصائيات: صفين على الشاشات الصغيرة جداً ثم عمود واحد */
  .stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media (min-width: 576px) and (max-width: 991.98px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* أي جداول/كروت عريضة ما تخرجش برة الشاشة */
  .table-responsive, .admin-card-dark .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* نُسخّر أي عنصر ممكن يكون محدد بعرض ثابت */
  [style*="width: 600px"], [style*="width:700px"], [style*="width:800px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Tabs ما تتزاحمش */
  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: .6rem .9rem;
  }
  .nav-tabs { overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
}

/* ====== Desktop (≥992px): السايدبار ثابت والمحتوى مزاح له 260px ====== */
@media (min-width: 992px) {
  #adminSidebar.offcanvas-lg {
    visibility: visible !important;
    transform: none !important;
    position: fixed !important;
    top: 0; bottom: 0; left: 0;
    width: 260px; z-index: 1030;
  }
  #adminSidebar.offcanvas-lg .offcanvas-body {
    display: flex !important; flex-direction: column; height: 100%;
  }
  .admin-main-content {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
    padding: 2rem;
  }
}
/* ===== Mobile Fixes (≤991.98px) ===== */
@media (max-width: 991.98px) {
  /* تأكد من أن الـ sidebar لا يظهر خارج الشاشة */
  .admin-sidebar {
    width: 250px;
    position: absolute;
    z-index: 1040;
  }

  /* لما يكون السايدبار مفتوح، خلي الصفحة ما تتحركش */
  .offcanvas-backdrop {
    z-index: 1030;
  }

  .admin-main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem;
  }

  .admin-sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
  }

  .admin-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    text-align: left;
  }

  .admin-sidebar-footer {
    padding: 1rem;
  }

  /* تحسين الأيقونات */
  .admin-sidebar-header .fs-5 {
    font-size: 1.2rem;
  }

  .navbar-brand.mb-0.h1 {
    font-size: 1.4rem;
  }
  
  /* تعديل الـ topbar للموبايل فقط */
  .navbar {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  .btn-outline-light {
    font-size: 1.2rem;
  }

  /* تحسين الـ dropdown */
  .dropdown-menu {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    background-color: var(--admin-sidebar-bg);
    border-radius: 8px;
  }
  .dropdown-item {
    color: #ccc;
  }

  /* عرض الـ offcanvas (المينيو الجانبي) */
  .offcanvas {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .offcanvas.show {
    transform: translateX(0%);
  }
}

/* ===== Desktop (≥992px): Leave sidebar fixed ===== */
@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
  }

  .admin-main-content {
    margin-left: 250px;
    padding: 2rem;
    width: calc(100% - 250px);
  }

  /* المينيو الجانبي يكون ثابت */
  .offcanvas {
    transform: none;
    visibility: visible;
  }
}
/* ===== Mobile Fixes (≤991.98px) ===== */
@media (max-width: 991.98px) {
  /* التأكد من أن الـ Sidebar يظهر بشكل صحيح عند فتحه */
  .admin-sidebar {
    width: 250px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1040;
  }

  /* التأكد من أن الصفحة لا تتحرك عند فتح الـ Sidebar */
  .admin-main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* تغيير الـ z-index ليتأكد من أن الـ Sidebar يكون في الخلف عند إغلاقه */
  .offcanvas-backdrop {
    z-index: 1030;
  }

  /* تغيير التفاعل عند فتح الـ Sidebar */
  .offcanvas.show {
    transform: translateX(0%) !important;
  }

  .admin-sidebar-header {
    text-align: center;
    padding: 1rem;
    background-color: var(--admin-sidebar-bg);
  }

  .admin-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  /* تحسين الـ Topbar لعرضه بشكل أفضل على الموبايل */
  .navbar {
    padding: 0.5rem 1rem;
  }
  .btn-outline-light {
    font-size: 1.2rem;
  }
  
  .dropdown-menu {
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    padding: .5rem 0;
  }

  .dropdown-item {
    padding: .5rem 1.5rem;
    font-weight: 500;
  }
  .dropdown-item:active {
    background-color: var(--primary-color);
  }
}
/* About Us Page & Professional Team Cards */
.about-content {
    font-size: 1.15rem;
    line-height: 1.8;
}
.team-card {
    border-radius: 15px !important; /* Softer corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}
.team-card-link {
    text-decoration: none;
}
.team-photo-wrapper {
    height: 300px; /* This makes all cards start at the same height */
    overflow: hidden;
}
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-name {
    color: var(--dark-gray);
}
.team-role {
    color: var(--secondary-color);
}
/* ===================================
   About Us Page & Professional Team Cards (V2)
   =================================== */
.hero-page {
    height: 50vh;
    background-image: url('/assets/images/backgrounds/about-us-hero.jpg'); /* Add a default hero image */
    background-size: cover;
    background-position: center;
    position: relative;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.hero-page::before { /* Dark overlay for readability */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-page .container {
    position: relative;
    z-index: 1;
}

.about-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.team-section .lead {
    font-size: 1.15rem;
    color: #666;
}

.team-card {
    position: relative; /* Required for the overlay */
    border-radius: 10px !important;
    overflow: hidden; /* This is crucial for the design */
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.team-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); /* Gradient overlay */
    text-align: left;
}

.team-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}
.team-role {
    color: var(--secondary-color); /* Golden accent color */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin: 0;
}
/* ===================================
   Final Fixes for Team Cards
   =================================== */

.team-card {
    /* This forces every card to have the exact same shape, guaranteeing they are all the same size */
    aspect-ratio: 3 / 4;
    width: 100%; 
}

/* On mobile screens, this makes the card column narrower and centers it */
@media (max-width: 767px) {
    .team-section .col-md-6 {
        flex: 0 0 auto;
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
}