/* Job Application Portal - Main Stylesheet */

:root {
  --color-primary: #0d3b94;
  --color-accent: #ff8a00;
  --color-secondary: #2d7dd6;
  --color-light: #dff0ff;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-error: #dc3545;
  --color-success: #28a745;
  --color-warning: #ffc107;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #f5f7fa;
}

/* Added container utility class */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--spacing-md);
}

.auth-wrapper {
  width: 100%;
  max-width: 480px;
}

.auth-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  padding: var(--spacing-xl);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.auth-header h1 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.auth-header p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.auth-form {
  margin-top: var(--spacing-lg);
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 59, 148, 0.1);
}

.form-group small {
  display: block;
  margin-top: var(--spacing-xs);
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.form-check input[type="checkbox"] {
  width: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #e67a00;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #1e6abd;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Alerts */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background-color: var(--color-light);
  color: var(--color-primary);
  border: 1px solid #b8daff;
}

/* Links */
.link-secondary {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.link-secondary:hover {
  text-decoration: underline;
}

/* Added Enhanced Homepage Styles */

/* Announcement Banner */
.announcement-banner {
  padding: 12px 0;
  text-align: center;
  font-size: 0.95rem;
}

.announcement-info {
  background-color: #e3f2fd;
  color: #0d3b94;
}
.announcement-success {
  background-color: #d4edda;
  color: #155724;
}
.announcement-warning {
  background-color: #fff3cd;
  color: #856404;
}
.announcement-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.announcement-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.announcement-text {
  display: inline-block;
}

/* Enhanced Hero */
.hero-enhanced {
  background: linear-gradient(135deg, #0d3b94 0%, #2d7dd6 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-cta-returning {
  max-width: 500px;
  margin: 0 auto;
}

.welcome-back {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.95rem;
  opacity: 0.9;
}

.btn-light {
  background-color: white;
  color: #0d3b94;
}

.btn-outline-light {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: #0d3b94;
}

/* Stats Section */
.stats-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  margin-top: -30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d3b94;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: #6c757d;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #0d3b94;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Closing Soon Carousel */
.closing-soon-section {
  padding: 60px 0;
}

.closing-soon-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.closing-soon-card {
  min-width: 280px;
  background: white;
  border: 3px solid #dc3545;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  scroll-snap-align: start;
}

.urgency-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background-color: #dc3545;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.closing-soon-card h3 {
  color: #0d3b94;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.closing-soon-card .job-category {
  color: #6c757d;
  margin-bottom: 12px;
}

.closing-soon-card .job-slots {
  font-weight: 600;
  margin-bottom: 16px;
}

/* Search Section */
.search-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.search-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-card h2 {
  text-align: center;
  color: #0d3b94;
  margin-bottom: 32px;
}

.job-search-form {
  max-width: 900px;
  margin: 0 auto;
}

.search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input {
  flex: 1;
  padding: 16px;
  font-size: 1.1rem;
}

.btn-search {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Featured Jobs */
.featured-jobs-section {
  padding: 60px 0;
}

.job-card-enhanced {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.job-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.job-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff8a00 0%, #e67700 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.job-category-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.job-card-enhanced h3 {
  color: #0d3b94;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.job-category-name {
  color: #6c757d;
  margin-bottom: 16px;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.job-meta-item {
  font-size: 0.9rem;
  color: #495057;
}

.job-salary {
  font-weight: 600;
  color: #28a745;
  margin-bottom: 16px;
}

.job-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
}

.job-slots-badge {
  background-color: #ff8a00;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.job-deadline {
  color: #6c757d;
  font-size: 0.9rem;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* Categories Grid */
.categories-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.category-card h3 {
  color: #0d3b94;
  margin-bottom: 8px;
}

.category-count {
  color: #6c757d;
  font-size: 0.95rem;
}

/* User Jobs Section */
.user-jobs-section {
  padding: 60px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.saved-jobs,
.recent-jobs {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
}

.saved-jobs h3,
.recent-jobs h3 {
  color: #0d3b94;
  margin-bottom: 20px;
}

.mini-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-job-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mini-job-card h4 {
  color: #0d3b94;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.mini-job-card p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Process Section */
.process-section {
  padding: 60px 0;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.process-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.process-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d3b94 0%, #2d7dd6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.process-step h3 {
  color: #0d3b94;
  margin-bottom: 8px;
}

.process-step p {
  color: #6c757d;
  font-size: 0.9rem;
}

.process-arrow {
  font-size: 2rem;
  color: #0d3b94;
}

/* Tips Section */
.tips-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.tip-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.tip-card h3 {
  color: #0d3b94;
  margin-bottom: 12px;
}

.tip-card p {
  color: #6c757d;
}

/* Testimonials */
.testimonials-section {
  padding: 60px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-quote {
  font-size: 4rem;
  color: #dff0ff;
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
}

.testimonial-message {
  color: #495057;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: #0d3b94;
  margin-bottom: 4px;
}

.testimonial-author span {
  color: #6c757d;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
  color: #0d3b94;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.faq-answer {
  color: #495057;
  line-height: 1.6;
}

/* Support Section */
.support-section {
  padding: 60px 0;
}

.support-card {
  background: linear-gradient(135deg, #0d3b94 0%, #2d7dd6 100%);
  color: white;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}

.support-card h2 {
  color: white;
  margin-bottom: 16px;
}

.support-card p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.95;
}

.support-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Mobile FAB */
.mobile-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d3b94 0%, #2d7dd6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.3s;
}

.fab-button:hover {
  transform: scale(1.1);
}

.fab-icon {
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-row {
    flex-direction: column;
  }

  .process-steps {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .support-buttons {
    flex-direction: column;
  }

  .mobile-fab {
    display: flex;
  }
}
