/* School Profitability 2026 - Article Specific Styles */

/* Hero Section */
.school-profitability-hero {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.school-profitability-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="white" opacity="0.05"/></svg>');
  background-size: cover;
}

.school-profitability-hero .hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ai-verification-tick {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 150, 0, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
}

/* Market Reality Grid */
.reality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .reality-grid {
    grid-template-columns: 1fr;
  }
}

.reality-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.reality-card:hover {
  transform: translateY(-5px);
}

.reality-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reality-header i {
  font-size: 2rem;
}

.reality-card ul {
  list-style: none;
  padding: 0;
}

.reality-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.reality-card li:last-child {
  border-bottom: none;
}

.reality-card li i.fa-plus {
  color: #4caf50;
}

.reality-card li i.fa-minus {
  color: #f44336;
}

/* Emirate Analysis */
.emirate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.emirate-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.emirate-card:hover {
  transform: translateY(-5px);
}

.emirate-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.emirate-card.dubai .emirate-header {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
}

.emirate-card.abu-dhabi .emirate-header {
  background: linear-gradient(135deg, #004d40 0%, #00796b 100%);
}

.emirate-card.northern .emirate-header {
  background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
}

.emirate-status {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-left: auto;
}

.emirate-content {
  padding: 1.5rem;
}

.market-segment {
  margin-bottom: 1.5rem;
}

.market-segment h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #333;
}

.profitability-note {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 4px solid #2196f3;
}

/* Data Visualization */
.data-visualization {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.data-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.data-source {
  font-size: 0.8rem;
  color: #666;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
}

.curriculum-item {
  margin-bottom: 1.5rem;
}

.saturation-bar {
  height: 24px;
  background: #f0f0f0;
  border-radius: 12px;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}

.saturation-level {
  height: 100%;
  border-radius: 12px;
  transition: width 1s ease;
}

.saturation-level.high { background: linear-gradient(90deg, #ff5252 0%, #ff8a80 100%); }
.saturation-level.medium { background: linear-gradient(90deg, #ff9800 0%, #ffcc80 100%); }
.saturation-level.low { background: linear-gradient(90deg, #4caf50 0%, #a5d6a7 100%); }
.saturation-level.medium-high { background: linear-gradient(90deg, #ff9800 0%, #ff5252 50%); }

.saturation-label {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fee-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.fee-band:last-child {
  border-bottom: none;
}

.band-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.band-status.oversupplied { background: #ffebee; color: #c62828; }
.band-status.balanced { background: #e8f5e9; color: #2e7d32; }
.band-status.opportunity { background: #fff3e0; color: #ef6c00; }
.band-status.high-opportunity { background: #e3f2fd; color: #1565c0; }

/* AI Verification */
.ai-verification {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 5px solid #2196f3;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2196f3;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ROI Timelines */
.timeline-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.timeline-phase {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.phase-marker {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.phase-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed #f0f0f0;
  color: #666;
  font-weight: 600;
}

/* Comparison Table */
.comparison-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
}

.table-row:last-child {
  border-bottom: none;
}

.table-col {
  padding: 0 1rem;
}

.table-col.area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #333;
}

.table-col.minimum, .table-col.realistic, .table-col.unrealistic {
  border-left: 1px solid #f0f0f0;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

.status-badge.minimum { background: #ffebee; color: #c62828; }
.status-badge.realistic { background: #e8f5e9; color: #2e7d32; }
.status-badge.unrealistic { background: #fff3e0; color: #ef6c00; }

/* CAPEX/OPEX Visualizations */
.breakdown-grid, .opex-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.capex-item, .opex-category {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.capex-icon, .opex-category .category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.capex-icon i {
  font-size: 2rem;
  color: #2196f3;
}

.capex-range {
  background: #e3f2fd;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  color: #1565c0;
  margin-top: 1rem;
  text-align: center;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.category-percentage {
  background: #2196f3;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.breakdown-item:last-child {
  border-bottom: none;
}

/* Financial Comparison */
.comparison-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .comparison-example {
    grid-template-columns: 1fr;
  }
}

.example-scenario {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.financial-details {
  margin-top: 1rem;
}

.detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail:last-child {
  border-bottom: none;
}

.detail.total {
  border-top: 2px solid #333;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: bold;
}

.positive { color: #2e7d32; }
.negative { color: #c62828; }
.neutral { color: #666; }

/* Myths Grid */
.myths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.myth-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.myth-header {
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  color: white;
  padding: 1.5rem;
}

.myth-number {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.myth-reality {
  padding: 1.5rem;
}

.reality-check {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.check-icon i {
  font-size: 1.5rem;
  color: #f44336;
}

.reality-data {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.data-point {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
}

.data-point:last-child {
  border-bottom: none;
}

/* Strategies Grid */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.strategy-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.strategy-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.alignment-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.alignment-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  min-width: 120px;
}

.alignment-connector i {
  color: #666;
  font-size: 1.5rem;
}

.exit-questions .question {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #2196f3;
}

/* Structure Elements */
.elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.element-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.element-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.impact-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.chain-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Profitability Formula */
.assessment-formula {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.formula-elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.element {
  background: #e8f5e9;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.element.positive {
  background: #e8f5e9;
  border: 2px solid #4caf50;
}

.element-icon {
  width: 50px;
  height: 50px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.2rem;
}

.formula-operator {
  text-align: center;
  font-size: 2rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formula-equals {
  text-align: center;
  font-size: 3rem;
  color: #2196f3;
  margin: 1rem 0;
}

.formula-result {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: white;
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-category {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-header {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-services {
  padding: 1.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-item i {
  font-size: 1.5rem;
  color: #2196f3;
  margin-top: 5px;
}

/* CTA Section */
.consultancy-cta {
  margin: 3rem 0;
}

.cta-card {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  border-radius: 12px;
  overflow: hidden;
  color: white;
}

.cta-header {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.cta-content {
  padding: 2rem;
}

.cta-timing {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.timing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.timing-option {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1rem;
}

.option-stage {
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: inline-block;
}

.timing-option:nth-child(1) .option-stage { background: #4caf50; }
.timing-option:nth-child(2) .option-stage { background: #8bc34a; }
.timing-option:nth-child(3) .option-stage { background: #ff9800; }
.timing-option:nth-child(4) .option-stage { background: #f44336; }

.cta-action {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  color: #333;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

/* Sidebar AI Widget */
.ai-verification-widget {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-radius: 12px;
  overflow: hidden;
}

.ai-widget-header {
  background: linear-gradient(135deg, #2196f3 0%, #9c27b0 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-widget-content {
  padding: 1.5rem;
}

.ai-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 1rem 0;
}

.source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.ai-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4caf50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .formula-elements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .formula-elements {
    grid-template-columns: 1fr;
  }
  
  .alignment-visual {
    flex-direction: column;
  }
  
  .alignment-connector {
    transform: rotate(90deg);
  }
  
  .impact-chain {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .table-header, .table-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .table-col.minimum, .table-col.realistic, .table-col.unrealistic {
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
  }
  
  .ai-sources {
    grid-template-columns: 1fr;
  }
}