:root {
  /* ألوان هوية المنارة الرسمية */
  --primary-blue: #095DA9;
  --dark-blue: #04315D;
  --light-blue: #E1EDF7;
  --primary-apricot: #EEA133;
  --dark-apricot: #B37115;
  --light-apricot: #FDF4E6;
  --dark-text: #1E242B;
  --medium-caption: #8A94A6;
  --light-bg: #F5F7FA;
  --white: #FFFFFF;
  --whatsapp-green: #1B995E;
  --whatsapp-hover: #15804e;
  --shadow-sm: 0 2px 8px rgba(9, 93, 169, 0.06);
  --shadow-md: 0 8px 24px rgba(9, 93, 169, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  button, input, select, textarea {
  font-family: 'Tajawal', sans-serif;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--primary-blue);
  color: var(--dark-text);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  padding: 16px;
  min-height: 100vh;
}

.card-container {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* الرأس والشعار */
.hero-header {
  background: linear-gradient(150deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: transparent;    /* إزالة الخلفية البيضاء */
  box-shadow: none;          /* إزالة الظل الخارجي */
  border-radius: 0;          /* إزالة الزوايا الدائرية */
  padding: 0;                /* إزالة الهوامش الداخلية */
}

.logo-container img {
  width: 250px;              /* يمكنك زيادة أو تقليل العرض حسب الرغبة */
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.brand-subtext {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--light-blue);
  margin-bottom: 10px;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--light-apricot);
}

.vcard-cta-wrap {
  margin-top: 16px;
}

.btn-save-contact {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-apricot);
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(238, 161, 51, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-save-contact:active {
  transform: scale(0.97);
  background: var(--dark-apricot);
}

/* الجسم والأقسام */
.card-body {
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 5px;
}

.dept-card {
  background: var(--white);
  border: 1px solid rgba(9, 93, 169, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.dept-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dept-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.tech-icon {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.edu-icon {
  background: var(--light-apricot);
  color: var(--primary-apricot);
}

.dept-title-box h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.25;
}

.dept-title-box p {
  font-size: 0.78rem;
  color: var(--medium-caption);
}

/* بطاقة عرض الرقم الموحدة */
.number-display-box {
  background: #FAFCFE;
  border: 1px solid #D6E4F0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px dashed #E2EBF4;
  padding-bottom: 8px;
}

.phone-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--medium-caption);
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-digits {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-blue);
  direction: ltr;
  letter-spacing: 0.5px;
  font-feature-settings: "tnum";
}

.actions-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 8px;
}

.btn-action {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 0.84rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action:active {
  transform: scale(0.96);
}

.btn-act-wa {
  background: var(--whatsapp-green);
  color: var(--white);
}
.btn-act-wa:active { background: var(--whatsapp-hover); }

.btn-act-call {
  background: var(--primary-blue);
  color: var(--white);
}
.btn-act-call:active { background: var(--dark-blue); }

.btn-act-copy {
  background: var(--white);
  color: var(--dark-text);
  border: 1px solid #CBD5E1;
}
.btn-act-copy:active { background: #f1f5f9; }

.btn-act-copy.copied {
  background: #E8F5E9;
  color: var(--whatsapp-green);
  border-color: var(--whatsapp-green);
}

.landline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--medium-caption);
}

.landline-row a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* قائمة الروابط */
.hub-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(9, 93, 169, 0.1);
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.hub-item:active {
  transform: scale(0.99);
  background: var(--light-blue);
}

.hub-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.hub-icon.web { background: #E1EDF7; color: var(--primary-blue); }
.hub-icon.map { background: #FDF4E6; color: var(--primary-apricot); }
.nav-arrow { font-size: 0.75rem; color: #8A94A6; }

/* شبكة السوشيال ميديا */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #DCE4EC;
  color: var(--dark-blue);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.social-btn i {
  font-size: 1.25rem;
}

.social-btn:active {
  transform: scale(0.94);
  background: var(--light-blue);
}

/* تذييل الكارت والإشعار */
.card-footer {
  background: #fafbfc;
  border-top: 1px solid #edf2f7;
  padding: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--medium-caption);
}

.footer-address {
  color: var(--dark-text);
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-copy {
  margin-top: 8px;
  font-size: 0.74rem;
}

.toast {
  font-family: 'Tajawal', sans-serif;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 49, 93, 0.95);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}
.toast.show {
  opacity: 1;
}