/* Page-specific inline styles if needed */
    
:root {
  --bg: #ffffff;
  --text: #6b6b6b;
  --text-dark: #000000;
  --border: #e5e5e5;
  --hover: #000000;
  --accent: #000000;
  --accent-light: #2a2a2a;
  --sidebar-width: 200px;
  --header-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
}

html, body {
  height: 100%;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Arabic Font & RTL Support */
[dir='rtl'], [dir='rtl'] * {
  font-family: 'Tajawal', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  text-align: right;
}

[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 {
  font-weight: 700;
  text-align: right;
}

[dir='rtl'] .main-nav a {
  font-weight: 600;
  text-align: right;
}

[dir='rtl'] .logo {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
}

[dir='rtl'] p {
  text-align: justify;
  line-height: 1.8;
}

[dir='rtl'] .section-title {
  text-align: center;
}

[dir='rtl'] .section-subtitle {
  text-align: center;
}

[dir='rtl'] .about-hero-text {
  text-align: right;
}

[dir='rtl'] .about-hero-text h1 {
  text-align: right;
}

[dir='rtl'] .about-hero-text .subtitle {
  text-align: right;
}

[dir='rtl'] .timeline-content {
  text-align: right;
}

[dir='rtl'] .skill-card {
  text-align: right;
}

[dir='rtl'] .quote-text {
  text-align: center;
  font-style: italic;
}

[dir='rtl'] .quote-author {
  text-align: center;
}

/* RTL Text Direction Only */
[dir='rtl'] .top-header {
  direction: rtl;
}

[dir='rtl'] .mobile-nav {
  direction: rtl;
}

[dir='rtl'] .mobile-nav-content {
  text-align: right;
}

[dir='rtl'] .mobile-nav-item a {
  text-align: right;
}

[dir='rtl'] .mobile-dropdown-toggle {
  text-align: right;
}

[dir='rtl'] .mobile-dropdown-content a {
  text-align: right;
}

[dir='rtl'] .hero-arrows {
  flex-direction: row-reverse;
}

[dir='rtl'] .hero-arrow:first-child {
  order: 2;
}

[dir='rtl'] .hero-arrow:last-child {
  order: 1;
}

/* Keep English layout - only text direction changes */

[dir='rtl'] .sidebar-nav ul {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .sidebar-nav li {
  text-align: right;
}

[dir='rtl'] .sidebar-nav a {
  text-align: right;
}

[dir='rtl'] .contact-grid {
  direction: rtl;
}

/* Keep English layout for forms */

[dir='rtl'] .form-group {
  text-align: right;
}

[dir='rtl'] .form-label {
  text-align: right;
  display: block;
  margin-bottom: 5px;
}

[dir='rtl'] .form-input,
[dir='rtl'] .form-select,
[dir='rtl'] .form-textarea {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .form-submit {
  text-align: center;
}

[dir='rtl'] .search-box input {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .exhibition-info {
  text-align: right;
}

[dir='rtl'] .blog-card {
  text-align: right;
}

[dir='rtl'] .modal-info {
  text-align: right;
}

[dir='rtl'] .awards-container {
  text-align: right;
}

[dir='rtl'] .quote-content {
  text-align: right;
}

[dir='rtl'] .footer-links {
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Top Header Bar */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex: 1;
}

.logo {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Horizontal Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.main-nav a:hover {
  color: var(--hover);
}

.main-nav a.active {
  color: var(--accent);
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  width: 100%;
}

/* Dropdown functionality */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown > a::after {
  content: '▼';
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px;
  padding: 12px 0;
  margin-top: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background: #f9f9f9;
  color: var(--hover);
  padding-left: 25px;
}

/* Top Right Controls */
.top-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  border: 2px solid var(--border);
  padding: 11px 45px 11px 20px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  width: 280px;
  border-radius: 50px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 320px;
}

.search-box input::placeholder {
  color: var(--text);
  opacity: 0.7;
}

.search-icon {
  position: absolute;
  right: 18px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: var(--text);
  transition: color 0.3s ease;
}

.search-box input:focus ~ .search-icon {
  color: var(--accent);
}

.view-toggle {
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: all 0.3s ease;
  background: white;
}

.view-toggle:hover {
  color: var(--hover);
  border-color: var(--hover);
  background: #f9f9f9;
}

.view-toggle.active {
  background: var(--hover);
  color: white;
  border-color: var(--hover);
}

.view-toggle svg {
  width: 18px;
  height: 18px;
}

/* Language Switch */
.language-switch {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
}

.lang-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover {
  background: #e5e5e5;
  color: var(--text-dark);
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

/* Main Layout */
.main-layout {
  margin-top: var(--header-height);
  display: flex;
}

/* Conditional Left Sidebar */
.left-sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--border);
  padding: 40px 30px;
  position: fixed;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  left: -200px;
  transition: left 0.3s ease;
}

.left-sidebar.show {
  left: 0;
}

.left-sidebar::-webkit-scrollbar {
  width: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 15px;
}

.sidebar-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  display: block;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--hover);
}

/* Main Content Area */
.main-content {
  flex: 1;
  transition: margin-left 0.3s ease;
}

.main-content.with-sidebar {
  margin-left: var(--sidebar-width);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  color: var(--hover);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.show {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  color: var(--hover);
  transform: rotate(90deg);
}

.mobile-nav-content {
  padding: 20px;
}

.mobile-nav-item {
  margin-bottom: 8px;
}

.mobile-nav-item > a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-nav-item > a:hover,
.mobile-nav-item > a.active {
  background: #f9f9f9;
  color: var(--hover);
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
  background: #f9f9f9;
  color: var(--hover);
}

.mobile-dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.open::after {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
}

.mobile-dropdown-content.show {
  max-height: 500px;
}

.mobile-dropdown-content a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-dropdown-content a:hover {
  background: #f9f9f9;
  color: var(--hover);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-nav {
    gap: 25px;
  }
  
  .content-section {
    padding: 40px 40px;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 0 20px;
    height: 60px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .logo-container {
    gap: 20px;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .search-box input {
    width: 160px;
    font-size: 13px;
    padding: 8px 35px 8px 16px;
  }
  
  .search-box input:focus {
    width: 200px;
  }
  
  .search-icon {
    right: 14px;
    width: 16px;
    height: 16px;
  }
  
  .view-toggle {
    width: 36px;
    height: 36px;
  }
  
  .content-section {
    padding: 40px 20px;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
  }
  
  footer {
    padding: 30px 20px;
  }
  
  .hero-arrows {
    right: 20px;
    gap: 8px;
  }
  
  .hero-arrow {
    width: 44px;
    height: 44px;
  }
  
  .hero-indicators {
    bottom: 20px;
    gap: 8px;
  }
  
  .hero-indicator {
    width: 8px;
    height: 8px;
  }
  
  .hero-indicator.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .search-box {
    display: none;
  }
  
  .top-controls {
    gap: 12px;
  }
  
  .gallery {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .hero-section {
    height: 60vh;
  }
  
  .hero-slider {
    padding: 20px;
  }
  
  .hero-arrows {
    right: 12px;
  }
  
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
}

/* RTL Support - Keep English layout, only text direction */
[dir='rtl'] {
  direction: rtl;
}

[dir='rtl'] .gallery-caption {
  text-align: right;
}

[dir='rtl'] .caption-title,
[dir='rtl'] .caption-year {
  text-align: right;
}

[dir='rtl'] .modal-artwork-title,
[dir='rtl'] .modal-artwork-description,
[dir='rtl'] .modal-detail-label,
[dir='rtl'] .modal-detail-value {
  text-align: right;
}

[dir='rtl'] .mobile-dropdown-toggle {
  text-align: right;
}

[dir='rtl'] .mobile-dropdown-toggle::after {
  margin-left: 0;
  margin-right: auto;
}

[dir='rtl'] .mobile-dropdown-content {
  padding-left: 0;
  padding-right: 20px;
}

@media (max-width: 768px) {
  /* Keep English layout for mobile - only text direction changes */
  [dir='rtl'] .search-box input {
    text-align: right;
    direction: rtl;
  }
  
  [dir='rtl'] .search-icon {
    left: 14px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer */
footer {
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text);
}
