/* =====================================================
   College Support Center – style.css
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ── */
.csc-wrap {
  --primary:   #1E4D8C;
  --secondary: #0F172A;
  --accent:    #16A34A;
  --bg:        #F8FAFC;
  --card:      #FFFFFF;
  --border:    #E2E8F0;
  --text:      #1E293B;
  --muted:     #64748B;
  --shadow:    0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.14);
  --radius:    16px;
  --radius-lg: 24px;
  font-family: 'Cairo', 'Tahoma', sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Reset ── */
.csc-wrap *, .csc-wrap *::before, .csc-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.csc-wrap a { text-decoration: none; }
.csc-wrap img { max-width: 100%; }
.csc-wrap button { cursor: pointer; font-family: inherit; }

/* ── Container ── */
.csc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section header ── */
.csc-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.csc-section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  border: none !important;
}
.csc-section-header p {
  font-size: 16px;
  color: var(--muted);
}

/* ── Reveal animation ── */
.csc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.csc-reveal.csc-visible {
  opacity: 1;
  transform: translateY(0);
}
.csc-reveal:nth-child(2) { transition-delay: 0.1s; }
.csc-reveal:nth-child(3) { transition-delay: 0.2s; }
.csc-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.csc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.csc-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,77,140,0.35);
}
.csc-btn-primary:hover {
  background: #163d70;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,77,140,0.45);
  color: #fff;
}
.csc-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.csc-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-2px);
}
.csc-btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.csc-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  color: var(--primary);
}
.csc-btn-lg { padding: 16px 40px; font-size: 16px; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.csc-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, #2563EB 100%);
  padding: 80px 0 60px;
}
.csc-hero-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3C/g%3E%3C/svg%3E");
}
.csc-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.csc-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #fff;
}
.csc-shape-1 { width: 500px; height: 500px; top: -200px; left: -150px; }
.csc-shape-2 { width: 300px; height: 300px; bottom: -100px; right: 10%; }
.csc-shape-3 { width: 180px; height: 180px; top: 30%; right: 20%; }

.csc-hero-inner {
  position: relative;
  text-align: center;
  width: 100%;
}
.csc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #93C5FD;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.csc-hero-title {
  font-size: clamp(32px, 6vw, 58px) !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
  border: none !important;
  padding: 0 !important;
}
.csc-hero-sub {
  font-size: clamp(15px, 2.5vw, 19px);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.csc-hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.csc-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 32px;
  display: inline-flex;
  backdrop-filter: blur(10px);
}
.csc-stat { text-align: center; padding: 0 28px; }
.csc-stat-num { display: block; font-size: 28px; font-weight: 900; color: #fff; }
.csc-stat-label { font-size: 12px; color: rgba(255,255,255,0.65); }
.csc-stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.2); }

/* ══════════════════════════════════
   SEARCH
══════════════════════════════════ */
.csc-search-section {
  padding: 48px 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.csc-search-wrap { max-width: 680px; margin: 0 auto; }
.csc-search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 6px 8px 6px 20px;
  transition: border 0.3s, box-shadow 0.3s;
}
.csc-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,77,140,0.12);
}
.csc-search-icon { font-size: 18px; color: var(--muted); margin-left: 12px; }
.csc-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  direction: rtl;
}
.csc-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}
.csc-search-btn:hover { background: #163d70; }
.csc-search-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.csc-search-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.csc-search-tags span:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
.csc-services-section { padding: 80px 0; background: var(--bg); }
.csc-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.csc-service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition-delay: calc(var(--i, 1) * 0.08s);
}
.csc-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.csc-service-icon-wrap {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--c, #1E4D8C), color-mix(in srgb, var(--c, #1E4D8C) 70%, white));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--c, #1E4D8C) 40%, transparent);
}
.csc-service-card h3 {
  font-size: 18px; font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}
.csc-service-card p {
  font-size: 14px; color: var(--muted);
  margin-bottom: 20px; line-height: 1.6;
}
.csc-service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: 14px; font-weight: 700;
  transition: gap 0.2s;
}
.csc-service-link:hover { gap: 12px; color: var(--primary); }

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.csc-faq-section { padding: 80px 0; background: var(--card); }
.csc-faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.csc-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.csc-faq-item:hover { box-shadow: var(--shadow); }
.csc-faq-item.csc-faq-hidden { display: none; }

.csc-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  text-align: right;
  direction: rtl;
}
.csc-faq-q span { display: flex; align-items: center; gap: 10px; }
.csc-faq-q i.fa-circle-question { color: var(--primary); font-size: 18px; }
.csc-faq-arrow { font-size: 13px; color: var(--muted); transition: transform 0.3s; flex-shrink: 0; }
.csc-faq-item.open .csc-faq-arrow { transform: rotate(180deg); }

.csc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.csc-faq-item.open .csc-faq-a { max-height: 300px; padding: 0 24px 20px; }
.csc-faq-a p { font-size: 14px; color: var(--muted); line-height: 1.85; }

/* ══════════════════════════════════
   CHAT CTA
══════════════════════════════════ */
.csc-chat-section { padding: 60px 0; background: var(--bg); }
.csc-chat-card {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.csc-chat-deco {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='35' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}
.csc-chat-content { display: flex; align-items: center; gap: 24px; position: relative; }
.csc-chat-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff; flex-shrink: 0;
}
.csc-chat-text h2 {
  font-size: clamp(20px, 3vw, 28px) !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  border: none !important;
}
.csc-chat-text p { font-size: 14px; color: rgba(255,255,255,0.75); }
.csc-chat-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 13px; color: #6EE7B7;
}
.csc-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6EE7B7;
  animation: cscPulse 1.6s ease infinite;
}
@keyframes cscPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(110,231,183,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(110,231,183,0); }
}

/* ══════════════════════════════════
   FORM
══════════════════════════════════ */
.csc-form-section { padding: 80px 0; background: var(--card); }
.csc-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.csc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.csc-form-group { display: flex; flex-direction: column; gap: 8px; }
.csc-form-group.csc-full { grid-column: 1 / -1; margin-bottom: 24px; }
.csc-form-group label {
  font-size: 14px; font-weight: 700;
  color: var(--secondary);
  display: flex; align-items: center; gap: 7px;
}
.csc-form-group label i { color: var(--primary); }
.csc-form-group input,
.csc-form-group select,
.csc-form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  outline: none;
  direction: rtl;
  transition: border 0.3s, box-shadow 0.3s;
  width: 100%;
}
.csc-form-group input:focus,
.csc-form-group select:focus,
.csc-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,77,140,0.1);
}
.csc-form-group textarea { resize: vertical; }
.csc-form-footer { text-align: center; }

/* Success */
.csc-form-success {
  text-align: center;
  padding: 40px 20px;
}
.csc-success-icon {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 20px;
}
.csc-form-success h3 {
  font-size: 24px; font-weight: 800;
  color: var(--secondary); margin-bottom: 10px;
}
.csc-form-success p { color: var(--muted); font-size: 15px; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.csc-contact-section { padding: 80px 0; background: var(--bg); }
.csc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.csc-contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  transition-delay: calc(var(--i,1) * 0.1s);
}
.csc-contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.csc-contact-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--c,#1E4D8C), color-mix(in srgb, var(--c,#1E4D8C) 70%, white));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--c,#1E4D8C) 35%, transparent);
}
.csc-contact-card h4 { font-size: 16px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.csc-contact-card p  { font-size: 14px; color: var(--muted); margin-bottom: 16px; direction: ltr; }
.csc-contact-link {
  display: inline-block;
  color: var(--primary);
  font-size: 13px; font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border 0.2s;
}
.csc-contact-link:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════
   FLOATING BUTTON
══════════════════════════════════ */
.csc-float-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: linear-gradient(135deg, var(--primary), #2563EB);
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(30,77,140,0.45);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: cscFloat 3s ease-in-out infinite;
}
.csc-float-btn span { font-size: 10px; font-weight: 700; font-family: 'Cairo', sans-serif; }
.csc-float-btn:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(30,77,140,0.55); }
@keyframes cscFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ══════════════════════════════════
   STICKY MOBILE CTA
══════════════════════════════════ */
.csc-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9998;
  text-align: center;
}
.csc-sticky-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 13px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  width: 100%; justify-content: center;
  transition: background 0.2s;
}
.csc-sticky-btn:hover { background: #163d70; color: #fff; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
  .csc-services-grid { grid-template-columns: 1fr 1fr; }
  .csc-contact-grid  { grid-template-columns: 1fr; }
  .csc-form-row      { grid-template-columns: 1fr; }
  .csc-form-card     { padding: 28px 20px; }
  .csc-chat-card     { flex-direction: column; text-align: center; padding: 32px 24px; }
  .csc-chat-content  { flex-direction: column; }
  .csc-hero-stats    { flex-direction: column; gap: 16px; padding: 20px; }
  .csc-stat-divider  { width: 60px; height: 1px; }
  .csc-sticky-cta    { display: block; }
  .csc-float-btn     { bottom: 80px; }
}
@media (max-width: 480px) {
  .csc-services-grid { grid-template-columns: 1fr; }
  .csc-hero          { padding: 60px 0 40px; }
  .csc-hero-btns     { flex-direction: column; align-items: center; }
}

/* ── Form error / note ── */
.csc-form-error{background:#FEF2F2;border:1px solid #FECACA;border-radius:10px;padding:12px 16px;color:#DC2626;font-size:14px;margin-top:14px;}
.csc-form-note{font-size:12px;color:#94A3B8;display:flex;align-items:center;gap:6px;margin:0;}
.csc-form-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:8px;}
.req{color:#DC2626;}
/* ── Ticket display ── */
.csc-ticket-display{background:#EFF6FF;border:2px dashed #BFDBFE;border-radius:12px;padding:16px 24px;margin:16px 0;display:inline-block;}
.csc-ticket-display::before{content:'رقم تذكرتك';display:block;font-size:11px;color:#64748B;font-weight:600;margin-bottom:4px;}
.csc-ticket-display{font-size:26px;font-weight:900;color:#1E4D8C;letter-spacing:3px;}
/* ── Submit loading ── */
.csc-btn-loading{opacity:0.7;pointer-events:none;}
