/* CRS Score Calculator Styling - Vishwanta Brand */
:root {
  --canada-primary: #ffcc00; /* Vishwanta Gold */
  --canada-secondary: #004080; /* Vishwanta Blue */
  --canada-accent: #0059b3; /* Bright Blue */
  --canada-dark: #002244; /* Dark Navy */
  --canada-light: #f8f9fa;
  --canada-border: #e0e6ed;
  --canada-shadow: rgba(255, 204, 0, 0.1);
  --canada-gradient: linear-gradient(135deg, #ffcc00 0%, #004080 100%);
  --canada-text: #002244;
  --canada-muted: #6c757d;
  --canada-success: #28a745;
  --canada-warning: #ffcc00;
  --canada-danger: var(--canada-secondary);
  --canada-info: #0059b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--canada-text);
  background-color: var(--canada-light);
}

.crs-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

/* Hero Section */
.crs-hero {
  background: var(--canada-gradient);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.crs-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 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,80 0,100"/></svg>') repeat-x bottom;
  background-size: 1000px 100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.flag-icon {
  margin-bottom: 20px;
}

.flag-icon img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.crs-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Main Layout */
.main-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar Styling */
.sidebar {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.calculator-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.calculator-card h2 {
  color: var(--canada-secondary);
  margin-bottom: 25px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f4;
}

.calculator-form .form-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid var(--canada-secondary);
}

.form-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.form-section h3 i {
  color: var(--canada-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--canada-secondary);
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

.form-group select:hover {
  border-color: var(--canada-secondary);
}

.score-display {
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  margin: 30px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.score-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.total-score {
  position: relative;
  z-index: 2;
  margin-bottom: 15px;
}

.score-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 0 10px;
}

.score-max {
  font-size: 1.2rem;
  opacity: 0.8;
}

.eligibility-status {
  position: relative;
  z-index: 2;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.eligibility-status.excellent {
  background: rgba(40,167,69,0.2);
  color: #fff;
}

.eligibility-status.good {
  background: rgba(255,193,7,0.2);
  color: #fff;
}

.eligibility-status.fair {
  background: rgba(255,138,0,0.2);
  color: #fff;
}

.eligibility-status.poor {
  background: rgba(220,53,69,0.2);
  color: #fff;
}

.apply-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,53,69,0.3);
}

.quick-links {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.quick-links h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-links h3 i {
  color: var(--canada-secondary);
}

.quick-links ul {
  list-style: none;
}

.quick-links li {
  margin-bottom: 12px;
}

.quick-links a {
  color: #555;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.quick-links a:hover {
  background: var(--canada-secondary);
  color: white;
  transform: translateX(5px);
}

/* Content Styling */
.content {
  background: white;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}

.info-section {
  padding: 40px;
  border-bottom: 1px solid #f1f3f4;
}

.info-section:last-child {
  border-bottom: none;
}

.info-section h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.info-section h2 i {
  color: var(--canada-secondary);
}

.section-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* CRS Features */
.crs-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid var(--canada-secondary);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-content h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-content p {
  color: #666;
  line-height: 1.6;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.program-card {
  background: white;
  border: 2px solid #f1f3f4;
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--canada-secondary);
}

.program-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.program-card h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}

.program-card ul {
  list-style: none;
}

.program-card li {
  padding: 8px 0;
  color: #555;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.program-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--canada-secondary);
  font-weight: bold;
}

/* Score Breakdown */
.score-breakdown-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.breakdown-chart {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
}

.chart-section {
  margin-bottom: 20px;
}

.chart-bar {
  position: relative;
  background: #e9ecef;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.core .bar-fill {
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
}

.spouse .bar-fill {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.skill .bar-fill {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.additional .bar-fill {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.bar-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #333;
  z-index: 2;
}

.breakdown-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-card {
  background: white;
  border: 2px solid #f1f3f4;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.detail-card:hover {
  border-color: var(--canada-secondary);
  box-shadow: 0 4px 15px rgba(220,53,69,0.1);
}

.detail-card h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-card h4 i {
  color: var(--canada-secondary);
}

.detail-card ul {
  list-style: none;
}

.detail-card li {
  padding: 5px 0;
  color: #555;
  position: relative;
  padding-left: 15px;
}

.detail-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--canada-secondary);
  font-weight: bold;
}

/* Recent Draws Table */
.draws-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin: 30px 0;
}

.draws-table table {
  width: 100%;
  border-collapse: collapse;
}

.draws-table th {
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.draws-table td {
  padding: 15px;
  border-bottom: 1px solid #f1f3f4;
  color: #555;
}

.draws-table tr:hover {
  background: #f8f9fa;
}

.draws-table tr:last-child td {
  border-bottom: none;
}

.draw-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.insight-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--canada-secondary);
}

.insight-card h4 {
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-card h4 i {
  color: var(--canada-secondary);
}

.insight-card p {
  color: #666;
  line-height: 1.6;
}

/* Timeline */
.process-timeline {
  position: relative;
  padding: 20px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--canada-secondary);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 30px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 4px solid var(--canada-secondary);
  flex: 1;
}

.timeline-content h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

/* Success Stories */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.story-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.story-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-content {
  padding: 25px;
}

.story-content h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.story-score {
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.story-content p {
  color: #666;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 15px;
}

.story-location {
  color: var(--canada-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  padding: 60px 40px;
  text-align: center;
  color: white;
}

.cta-content h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--canada-secondary);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary, .btn-whatsapp {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--canada-secondary) 0%, var(--canada-secondary) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,53,69,0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: white;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 50px 40px 30px;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.footer-section h3, .footer-section h4 {
  color: var(--canada-secondary);
  margin-bottom: 20px;
}

.footer-section p, .footer-section li {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--canada-secondary);
}

.footer-social {
  text-align: center;
  margin-bottom: 20px;
}

.footer-social a {
  color: white;
  background: var(--canada-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--canada-secondary);
  transform: translateY(-2px);
}

.footer-copy {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-wrapper {
    grid-template-columns: 350px 1fr;
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 968px) {
  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    position: relative;
    top: 0;
    order: 2;
  }
  
  .content {
    order: 1;
  }
  
  .crs-hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat {
    min-width: 140px;
  }
  
  .score-breakdown-content {
    grid-template-columns: 1fr;
  }
  
  .process-timeline::before {
    left: 15px;
  }
  
  .timeline-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .crs-hero {
    padding: 60px 0 40px;
  }
  
  .crs-hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .info-section {
    padding: 25px 20px;
  }
  
  .calculator-card {
    padding: 20px;
  }
  
  .score-number {
    font-size: 2.5rem;
  }
  
  .crs-features {
    grid-template-columns: 1fr;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 40px 20px;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-whatsapp {
    width: 100%;
    max-width: 300px;
  }
  
  .draws-table {
    overflow-x: auto;
  }
  
  .draws-table table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 15px;
  }
  
  .calculator-card, .quick-links {
    padding: 15px;
  }
  
  .info-section {
    padding: 20px 15px;
  }
  
  .flag-icon img {
    width: 60px;
    height: 45px;
  }
  
  .crs-hero h1 {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Contact menu fix */
.nav-list .dropdown:last-child .dropdown-content {
  right: 0;
  left: auto;
  min-width: 200px;
}

.nav-list .dropdown:last-child .dropdown-content li a {
  text-align: right;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for score calculation */
.calculating {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}
