@font-face {
  font-family: 'CairoBold';
  src: url('../fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'arabswell_2';
  src: url('../fonts/arabswell_2.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CairoLight';
  src: url('../fonts/Cairo-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BigVesta-Arabic-Regular';
  src: url('../fonts/AligarhArabic-Regular.otf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-alt: #f8f2eb;
  --primary: #955549;
  --primary-dark: #7a4038;
  --text: #2e221f;
  --muted: #6f5f59;
  --border: #e9ddd7;
  --shadow: 0 12px 32px rgba(55, 31, 20, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #fffaf7 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  position: relative;
}
body.drawer-open,
body.viewer-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
  background: rgba(255, 248, 244, 0.56);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 30px rgba(80, 45, 34, 0.08);
  overflow: visible;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
  direction: ltr;
}
.brand-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}
.brand h1 {
  margin: 0;
  font-size: 1.495rem;
  color: var(--primary-dark);
  font-family: 'arabswell_2', 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.2;
  transform: translateY(5px);
}

.brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-icon img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.drawer-links button,
.mobile-menu-toggle,
.drawer-close {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
}
.drawer-links button {
  color: #5f463f;
}

.drawer-links button:hover,
.drawer-links button.active {
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.16) 0%, rgba(149, 85, 73, 0.28) 100%);
  color: #7a4038;
  box-shadow: inset 0 0 0 1px rgba(149, 85, 73, 0.16);
  transform: translateX(-2px);
}

.drawer-links button.active {
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.22) 0%, rgba(149, 85, 73, 0.34) 100%);
  color: #5c2f28;
  font-weight: 800;
}

.mobile-menu-toggle,
.ai-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(149,85,73,0.12);
  border: 1px solid rgba(149,85,73,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1rem;
}

.mobile-menu-toggle:hover,
.ai-chat-link:hover {
  background: rgba(149,85,73,0.18);
  transform: translateY(-1px);
}

.ai-chat-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.hamburger {
  display: inline-block;
  width: 22px;
  height: 18px;
  position: relative;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span::before {
  top: -7px;
}

.hamburger span::after {
  top: 7px;
}

.mobile-menu-toggle.open .hamburger span {
  transform: rotate(45deg);
}

.mobile-menu-toggle.open .hamburger span::before {
  transform: translateY(7px) rotate(90deg);
}

.mobile-menu-toggle.open .hamburger span::after {
  opacity: 0;
}

.drawer {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(92vw, 320px);
  max-width: 320px;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  overscroll-behavior: none;
}
.drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.drawer-panel {
  width: 100%;
  max-height: min(72dvh, 540px);
  background: #FFF8F4;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  
}

@media (min-width: 900px) {
  .drawer {
    width: 320px;
  }
}
.drawer-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.3rem 1.1rem 1rem;
  border-bottom: 1px solid rgba(149, 85, 73, 0.14);
  
}
.drawer-header h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.drawer-links {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 0.8rem 1rem;
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.drawer-links button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: right;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  width: 100%;
  color: var(--text);
  touch-action: manipulation;
}

.drawer-panel,
.drawer-links button,
.drawer-header h3 {
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.drawer-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.12) 0%, rgba(149, 85, 73, 0.2) 100%);
  color: #8a5a4d;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.drawer-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.drawer-links button:hover .drawer-icon,
.drawer-links button.active .drawer-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #a6685a 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(149, 85, 73, 0.22);
}

.placeholder-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1rem 0;
}

.placeholder-card {
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}

.placeholder-card h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.timings-panel {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.timings-control {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.timings-control label {
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

.timings-control select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem 0.85rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236f5f59' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 0.8rem;
  cursor: pointer;
}

.timings-status {
  color: var(--muted);
  font-size: 0.95rem;
}

.timings-preview {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.timings-preview-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.timings-image-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f2eb;
}

.timings-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.laws-list {
  display: grid;
  gap: 0.9rem;
}

.laws-list-items {
  display: grid;
  gap: 0.8rem;
}

.laws-list-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.laws-list-empty {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
}

.laws-file-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.laws-file-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.laws-file-meta strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
  word-break: break-word;
}

.laws-file-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.laws-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 0.95rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 12px;
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.laws-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(149, 85, 73, 0.16);
}

.timings-actions {
  display: flex;
  justify-content: flex-start;
}

.timings-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 14px;
  font-family: 'CairoBold', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin: 20px;
}

.timings-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(149, 85, 73, 0.18);
}

.timings-download-btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.section-shell {
  padding: 1rem 0 2rem;
}
.compact-shell {
  padding-top: 0.4rem;
  padding-bottom: 1.25rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.section-header.home-header {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.2rem;
  gap: 0.85rem;
}

.section-header h3 {
  margin: 20px;
  font-size: 1.3rem;
  font-family: 'CairoBold', 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  color: var(--primary-dark);

}

.section-header h3.home-date {
  font-weight: 700;
  color: var(--text);
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 1.18rem;
  position: static;
  text-align: center;
  margin: 0;
}

.section-header h3.home-date .num {
  color: var(--primary);
  font-weight: 800;
  margin: 0 0.25rem;
}

.section-header h3.section-title-ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 242, 228, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #7a2e1f;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.8px rgba(85, 38, 23, 0.35);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 rgba(149, 85, 73, 0.16),
    0 4px 10px rgba(149, 85, 73, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 10px rgba(149, 85, 73, 0.16);
  position: relative;
  overflow: hidden;
}

.section-header h3.section-title-ornament::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(149, 85, 73, 0.16);
  flex-shrink: 0;
  animation: pulse-title-dot 1.8s ease-in-out 5;
}

.section-header h3.section-title-ornament::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.75) 45%, transparent 90%);
  transform: translateX(-120%) skewX(-20deg);
  animation: shimmer-title 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer-title {
  0% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(120%) skewX(-20deg); }
}

@keyframes pulse-title-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(149, 85, 73, 0.16); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(149, 85, 73, 0.1); }
}

.section-divider {
  width: 50vw;
  max-width: 50%;
  height: 1px;
  background: rgba(149, 85, 73, 0.28);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.image-viewer.open {
  display: flex;
}
.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}
.image-viewer-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-viewer-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  background: #fff;
  transition: transform 0.15s ease;
  transform-origin: center center;
  touch-action: none;
}
.image-viewer-toolbar {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.image-viewer-btn,
.image-viewer-close {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  padding: 0;
}
.image-viewer-btn svg,
.image-viewer-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.image-viewer-close {
  position: static;
  z-index: 1003;
}
.image-viewer-download {
  position: static;
  z-index: 1003;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.list-stack {
  display: grid;
  gap: 0.9rem;
}
.item-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.item-card.best-student-card,
.item-card.club-card,
.item-card.lost-found-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf6 0%, #ffffff 100%);
  border: 0;
  box-shadow: 0 18px 44px rgba(149, 85, 73, 0.16);
}

.item-card.club-card,
.item-card.lost-found-card {
  box-shadow: 0 18px 44px rgba(149, 85, 73, 0.12);
  gap: 0.8rem;
}

.item-card.club-card .club-profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-direction: row-reverse;
}

.item-card.club-card .club-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.item-card.club-card .club-toggle-btn,
.item-card.lost-found-card .club-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(149, 85, 73, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.08), rgba(255, 255, 255, 0.94));
  color: var(--primary-dark);
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 20px rgba(149, 85, 73, 0.1);
  margin-top: 10px;
}

.item-card.club-card .club-toggle-btn:hover,
.item-card.lost-found-card .club-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(149, 85, 73, 0.16);
}

.item-card.club-card .club-toggle-btn.is-open,
.item-card.lost-found-card .club-toggle-btn.is-open {
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.16), rgba(255, 255, 255, 1));
}

.item-card.club-card .club-toggle-icon,
.item-card.lost-found-card .club-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.item-card.club-card .club-toggle-icon svg,
.item-card.lost-found-card .club-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-card.club-card .club-toggle-btn.is-open .club-toggle-icon,
.item-card.lost-found-card .club-toggle-btn.is-open .club-toggle-icon {
  transform: rotate(180deg);
}

.item-card.club-card .club-details,
.item-card.lost-found-card .club-details {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.1rem 0.2rem 0;
}

.item-card.club-card .club-details[hidden],
.item-card.lost-found-card .club-details[hidden] {
  display: none;
}

.item-card.club-card .club-detail-content,
.item-card.lost-found-card .club-detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.item-card.club-card .club-description {
  margin: 0;
  color: #6a4037;
  font-size: 0.95rem;
  line-height: 1.8;
  font-family: 'BigVesta-Arabic-Regular', 'Segoe UI', Tahoma, Arial, sans-serif;
  text-align: right;
}

.item-card.club-card .club-join-box {
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(149, 85, 73, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-card.club-card .join-title {
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
}

.item-card.club-card .join-text {
  margin: 0;
  color: #6a4037;
  font-size: 0.95rem;
  line-height: 1.8;
  font-family: 'BigVesta-Arabic-Regular', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.item-card .media-block {
  width: 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item-card .thumb {
  width: min(100%, 520px);
  max-width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  margin: 0 auto;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
}

.item-card.best-student-card .thumb,
.item-card.club-card .thumb {
  width: 64px;
  max-width: 64px;
  aspect-ratio: 1 / 1;
  min-height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(149, 85, 73, 0.18);
  box-shadow: 0 8px 20px rgba(149, 85, 73, 0.16);
  padding: 0.15rem;
  background: linear-gradient(135deg, rgba(255, 247, 240, 0.95), rgba(255, 255, 255, 0.95));
  margin: 0;
}
.item-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
  display: block;
}

.item-card.lost-found-card .thumb,
.item-card.lost-found-card .mini-thumb {
  width: 220px;
  max-width: 220px;
  height: 280px;
  max-height: 280px;
  min-width: 220px;
  min-height: 280px;
  aspect-ratio: auto;
  margin: 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf6 0%, #ffffff 100%);
}

.item-card.lost-found-card .thumb img,
.item-card.lost-found-card .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #fffaf6 0%, #ffffff 100%);
  display: block;
  border-radius: 14px;
}

.item-card.best-student-card .thumb img,
.item-card.club-card .thumb img {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.96);
}
.item-card .image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 540px);
  margin: 0 auto;
  align-items: stretch;
}

.item-card.lost-found-card .image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 540px);
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 480px) {
  .item-card.lost-found-card .image-gallery {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .item-card.lost-found-card .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .item-card.lost-found-card .image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1101px) {
  .item-card.lost-found-card .image-gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 1000px);
  }
}

.item-card .mini-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.item-card .mini-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.item-card .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
  display: block;
  border-radius: 14px;
}
.item-card .meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.item-card .item-title {
  margin: 20px;
  font-size: 1.4rem;
  text-align: center;
  color: var(--primary-dark);
  line-height: 1.6;
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
}

.item-card.best-student-card .student-profile-row,
.item-card.club-card .club-profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.2rem 0 0.3rem;
  flex-direction: row-reverse;
}

.item-card.best-student-card .student-name-wrap,
.item-card.club-card .club-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.item-card.best-student-card .item-title,
.item-card.club-card .item-title {
  margin: 0;
  font-size: 1.2rem;
  color: #8c4a3c;
  text-align: center;
}

.item-card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  font-family: 'BigVesta-Arabic-Regular', 'CairoLight', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.item-card.best-student-card .excerpt,
.item-card.club-card .excerpt {
  background: linear-gradient(135deg, rgba(149, 85, 73, 0.08), rgba(255, 255, 255, 0.9));
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: #6a4037;
  margin-top: 0.2rem;
  text-align: right;
  font-family: 'BigVesta-Arabic-Regular', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.item-card .date-line {
  margin-top: 0.2rem;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: start;
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
}

.item-card .location-line {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: start;
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
  display: inline-block;
}

.item-card .location-label {
  color: var(--primary);
  display: block;
}

.item-card .location-value {
  color: #000000;
  display: block;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1rem auto 0;
  padding: 0.95rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #b6786a 0%, var(--primary) 100%);
  color: #fff;
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  min-width: 180px;
  box-shadow: 0 14px 30px rgba(149, 85, 73, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-transform: none;
}

.load-more-btn .btn-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
}

.load-more-btn .btn-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(149, 85, 73, 0.22);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(149, 85, 73, 0.2);
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 110px;
  padding: 1rem 1.25rem;
  margin: 0.3rem auto 0;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  font-family: 'CairoBold', arabswell_2, 'Segoe UI', Tahoma, Arial, sans-serif;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(253,247,242,0.95) 100%);
  border: 1px solid rgba(149, 85, 73, 0.14);
  box-shadow: 0 12px 24px rgba(80, 45, 34, 0.06);
}
.loader::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(149,85,73,0.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.section-divider {
  height: 1px;
  width: min(100%, 320px);
  background: linear-gradient(90deg, transparent, rgba(149, 85, 73, 0.28), transparent);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .item-card .thumb {
    min-height: 170px;
    width: min(100%, 460px);
  }
  .item-card .image-gallery {
    width: min(100%, 460px);
  }
}

@media (max-width: 640px) {
  .header-row {
    padding: 0.85rem 0;
  }
  .section-shell {
    padding-bottom: 1.4rem;
  }
}
