/* ============================================
   FREELANCING PAGE STYLES
   ============================================ */

/* Hero Section */
.freelancing-hero {
  background: linear-gradient(135deg, #0a2463 0%, #172554 25%, #1e3a8a 50%, #3887be 75%, #60a5fa 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 56px;
}

.freelancing-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.freelancing-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #e3f2fd;
  margin-bottom: 1.5rem;
}

.freelancing-description {
  font-size: 1.1rem;
  color: #f0f9ff;
  line-height: 1.8;
  max-width: 800px;
}

.saudi-logo {
  max-width: 200px;
  height: auto;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Freelance Platform Buttons */
.freelance-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin-top: 2rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid;
}

.platform-btn i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.platform-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.platform-btn-content span {
  font-size: 0.95rem;
}

.platform-btn-content small {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.3;
  max-width: 200px;
}

/* Upwork button */
.upwork-btn {
  background: linear-gradient(135deg, #18b26b 0%, #0e8e47 100%);
  border-color: #18b26b;
  color: white;
  box-shadow: 0 4px 15px rgba(24, 178, 91, 0.3);
  align-items: flex-start;
  padding: 0.875rem 1rem;
}

.upwork-btn:hover {
  background: linear-gradient(135deg, #0e8e47 0%, #0a6b36 100%);
  border-color: #0e8e47;
  box-shadow: 0 6px 20px rgba(24, 178, 91, 0.4);
  transform: translateY(-2px);
  color: white;
}

.upwork-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Baaeed button */
.baaeed-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: #6366f1;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  align-items: flex-start;
  padding: 0.875rem 1rem;
}

.baaeed-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border-color: #4f46e5;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  color: white;
}

.baaeed-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Bahr.sa button */
.bahr-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: #0ea5e9;
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  align-items: flex-start;
  padding: 0.875rem 1rem;
}

.bahr-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
  color: white;
}

.bahr-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Mostaqel button (coming soon) */
.mostaqel-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  align-items: flex-start;
  padding: 0.875rem 1rem;
}

.mostaqel-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #d97706;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  color: white;
}

.mostaqel-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Coming soon buttons */
.coming-soon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  align-items: flex-start;
  padding: 0.75rem 1rem;
}

.coming-soon-btn i {
  font-size: 1rem;
  opacity: 0.6;
}

.coming-soon-btn .platform-btn-content small {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coming-soon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Mostaqel coming soon button override */
.mostaqel-btn.coming-soon-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

.mostaqel-btn.coming-soon-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  transform: none;
}

.mostaqel-btn.coming-soon-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
  letter-spacing: normal;
}

/* Certificate Section */
.cert-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.cert-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cert-thumbnail {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cert-thumbnail:hover {
  transform: scale(1.02);
}

.cert-info {
  padding: 1rem;
}

.cert-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cert-icon {
  color: #3b82f6;
}

.cert-number {
  font-size: 0.95rem;
  color: #64748b;
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
}

.cert-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cert-download-btn {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cert-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.expertise-icon {
  color: #3b82f6;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.expertise-item h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.25rem;
}

.expertise-item p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* Specialized Fields Section */
.specialized-fields {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
}

.specialized-card {
  border-left: 5px solid;
}

.specialized-card:nth-child(2) {
  border-left-color: #0ea5e9;
}

.specialized-card:nth-child(3) {
  border-left-color: #8b5cf6;
}

.specialized-card:nth-child(4) {
  border-left-color: #10b981;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--deep-blue);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0a2463 0%, #1e40af 100%);
  color: white;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
}

.cta-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-card p {
  font-size: 1.1rem;
  color: #e3f2fd;
  margin: 0;
}

.cta-btn {
  border-radius: 10px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
  .freelancing-title {
    font-size: 2.5rem;
  }

  .freelancing-subtitle {
    font-size: 1.25rem;
  }

  .cert-card {
    padding: 1.5rem;
  }

  .cert-title {
    font-size: 1.5rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .saudi-logo {
    max-width: 150px;
    margin-top: 2rem;
  }

  .freelance-platforms {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .platform-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .platform-btn-content small {
    max-width: 180px;
  }
}

@media (max-width: 767px) {
  .freelancing-hero {
    padding: 100px 0 60px;
  }

  .freelancing-title {
    font-size: 2rem;
  }

  .freelancing-subtitle {
    font-size: 1.1rem;
  }

  .freelancing-description {
    font-size: 1rem;
  }

  .freelance-platforms {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .platform-btn {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }

  .platform-btn-content small {
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .cert-card {
    padding: 1rem;
  }

  .cert-title {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .expertise-item {
    padding: 0.875rem;
  }

  .tech-tags {
    gap: 0.5rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .cta-card {
    padding: 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.5rem;
  }

  .cta-card .col-lg-4 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .freelancing-title {
    font-size: 1.75rem;
  }

  .cert-thumbnail {
    margin-bottom: 1rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
}
