/* Student & Parent Portal UAE Styles */

/* Hero Section */
.portal-hero {
  background: linear-gradient(135deg, #1a56db 0%, #3a86ff 100%);
  color: white;
}

.portal-hero .hero-text h1 {
  color: white;
  font-size: 2.8rem;
}

.portal-hero .article-category {
  background: rgba(255,255,255,0.2);
  color: white;
}

.portal-hero .article-tags .tag {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Quick Navigation */
.portal-quick-nav {
  background: white;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 80px;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-nav-inner {
  display: flex;
  overflow-x: auto;
  padding: 15px 0;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f9fa;
  border-radius: 30px;
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  background: #3a86ff;
  color: white;
}

/* UAE Context Box */
.uae-context-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e1effe 100%);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  border-left: 5px solid #3a86ff;
}

.uae-context-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.uae-context-header i {
  font-size: 2rem;
  color: #3a86ff;
}

.uae-context-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.context-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.context-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #1a56db;
}

/* Value Propositions */
.portal-value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.value-prop {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.value-prop:hover {
  transform: translateY(-10px);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #3a86ff 0%, #1a56db 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
}

/* User Groups Tabs */
.user-groups-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 40px;
}

.tab-header {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 12px 25px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background: #3a86ff;
  border-color: #3a86ff;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.need-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.need-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.need-item i {
  font-size: 2.5rem;
  color: #3a86ff;
  margin-bottom: 15px;
}

.need-item h4 {
  color: #212529;
  margin-bottom: 10px;
}

/* Feature Categories */
.feature-category {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid #3a86ff;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f5;
}

.priority-tag {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.priority-tag.critical {
  background: #fee2e2;
  color: #dc2626;
}

.priority-tag.high {
  background: #fef3c7;
  color: #d97706;
}

.priority-tag.medium {
  background: #dbeafe;
  color: #2563eb;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.requirement-item:hover {
  background: #e9ecef;
}

.req-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #3a86ff;
  margin-top: 3px;
}

.req-label {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Compliance Matrix */
.compliance-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.compliance-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.compliance-header {
  padding: 25px;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}

.compliance-header.khda {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.compliance-header.adek {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.compliance-header.pdpl {
  background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
}

.compliance-header.fta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.compliance-header i {
  font-size: 2rem;
}

.compliance-list {
  padding: 25px;
  list-style: none;
}

.compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: #4b5563;
}

.compliance-list i {
  color: #10b981;
  margin-top: 3px;
}

/* Data Residency */
.data-residency-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  border-radius: 15px;
  padding: 40px;
  margin-top: 50px;
}

.data-residency-box h3 {
  color: white;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.residency-requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.residency-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

/* Implementation Timeline */
.implementation-timeline {
  position: relative;
  padding-left: 50px;
  margin: 40px 0;
}

.implementation-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #3a86ff, #8338ec);
  border-radius: 2px;
}

.timeline-phase {
  position: relative;
  margin-bottom: 40px;
}

.phase-marker {
  position: absolute;
  left: -50px;
  top: 0;
  width: 40px;
  height: 40px;
  background: #3a86ff;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
}

.phase-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid #3a86ff;
}

.phase-content h3 {
  color: #1a56db;
  margin-bottom: 15px;
}

.phase-content ul {
  list-style: none;
  padding-left: 0;
}

.phase-content li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.phase-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* KPI Dashboard */
.kpi-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 40px;
  color: white;
  margin: 50px 0;
}

.kpi-dashboard h3 {
  color: white;
  margin-bottom: 30px;
  text-align: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.kpi-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

.kpi-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Vendor Evaluation */
.vendor-evaluation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.evaluation-criteria,
.vendor-questions {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.criterion {
  display: flex;
  align-items: center;
  gap: 15px;
}

.criterion input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #3a86ff;
}

.questions-list {
  margin-top: 20px;
}

.question-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #3a86ff;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.btn-large {
  padding: 18px 35px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-xl {
  padding: 20px 40px;
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section .cta-box {
  background: linear-gradient(135deg, #1a56db 0%, #3a86ff 100%);
  color: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin-top: 60px;
}

.cta-content h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.cta-note {
  margin-top: 15px;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Sidebar Widgets */
.score-card {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: #3a86ff;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-link:hover {
  background: #e9ecef;
  color: #3a86ff;
}

.download-link i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .portal-quick-nav {
    top: 70px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .uae-context-content,
  .portal-value-props,
  .needs-grid,
  .compliance-matrix,
  .kpi-grid,
  .vendor-evaluation {
    grid-template-columns: 1fr;
  }
  
  .quick-nav-inner {
    justify-content: flex-start;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-large,
  .btn-xl {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .portal-hero .hero-text h1 {
    font-size: 2rem;
  }
  
  .user-groups-section,
  .feature-category,
  .phase-content,
  .evaluation-criteria,
  .vendor-questions {
    padding: 20px;
  }
  
  .implementation-timeline {
    padding-left: 30px;
  }
  
  .phase-marker {
    left: -30px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .cta-section .cta-box {
    padding: 30px 20px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 15px;
  }
  
  .tab-header {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-item {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .uae-context-box,
  .data-residency-box,
  .kpi-dashboard {
    padding: 20px;
  }
  
  .context-item,
  .need-item,
  .requirement-item,
  .residency-item {
    padding: 15px;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-text {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .portal-quick-nav,
  .sidebar,
  .action-buttons,
  .cta-section,
  .whatsapp-float {
    display: none;
  }
  
  .feature-category {
    break-inside: avoid;
  }
  
  .content-wrapper {
    display: block;
  }
  
  .portal-hero {
    background: white !important;
    color: black !important;
  }
  
  .portal-hero .hero-text h1 {
    color: black;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .nav-item,
  .tab-btn,
  .requirement-item,
  .need-item,
  .context-item {
    border: 2px solid #000;
  }
  
  .feature-category {
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .value-prop,
  .need-item,
  .kpi-item,
  .requirement-item {
    transition: none;
  }
  
  .tab-content.active {
    animation: none;
  }
}