@font-face {
  font-family: 'CustomArabic';
  src: url('DINNextLTArabic-Bold.woff2') format('woff2');
}

:root {
  --bg-dark: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius: 12px;
  --like-color: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: CustomArabic, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: CustomArabic, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

header h1 {
	font-family: CustomArabic !important;
}
/* --- Banner & Navigation Bar Styles --- */
.top-banner {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo .logo-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand-logo .brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -0.5px;
}

.brand-logo .brand-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease;
}

.menu-toggle:focus {
  outline: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.arrow-down {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .arrow-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

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

.dropdown-item a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-color);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* --- Base Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin: 32px auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.status-msg, .loading-status, .error-status {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* --- FOOTER STYLES --- */
.site-footer {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 40px 0 20px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-col h3, .footer-col h4 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-color); }

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social-icons a {
  color: #f8fafc;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icons a:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
  .menu-toggle { 
  display: block; 
  margin-left: 0;
  //margin-right: auto;
  order: -1;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    gap: 4px;
  }
  .main-nav.active { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 12px; width: 100%; border-radius: 6px; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: rgba(255, 255, 255, 0.03); margin-top: 4px; padding-right: 12px; display: none;
  }
  .arrow-down {
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* Default closed state */
}
  .nav-item.open .dropdown-menu { display: block; }
  .nav-item.open .arrow-down { transform: rotate(180deg); }
}
 /*Designing unvisited link button*/
        #amt:link {
            background-color: #38bdf8;
            color: white;
            padding: 2px 2px;
            text-decoration: none;
            display: inline-block;
        }

        /*Designing link button when mouse cursor hovers over it*/
        #amt:hover {
            background-color: #38bdf8;
            color: white;
            padding: 2px 2px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
        }
	  #amt{
		  background-color: white;
            color: #38bdf8;
            padding: 2px 2px;
            border-radius: 5px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
	  }
.search-box-wrapper,
.category-box-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  background: #0f172a;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
	
}

.search-input:focus, .search-input:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}
