/* Custom styles to match React version */
:root {
  --primary-blue: #1a4270;
  --primary-green: #10b981;
  --primary-purple: #8b5cf6;
  --primary-orange: #bf8524;
  --primary-red: #ef4444;
  --primary-indigo: #6366f1;
  --primary-teal: #14b8a6;
  --primary-sky: #0ea5e9;
  --primary-violet: #8b5cf6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: #f9fafb;
  color: #1a4270;
  line-height: 1.6;
  font-size: 14px; /* Base font size to match React */
}


/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #000;
  transition: color 0.2s;
  font-size: 14px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #1a4270;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #faf5ff 100%);
  padding: 5rem 0;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.05;
}

.hero-title {
  font-size: 2.25rem; /* text-4xl = 36px */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #111827;
}

.gradient-text {
  background: var(--primary-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem; /* text-xl = 20px */
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-primary-gradient {
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  font-size: 14px;
}

.btn-primary-gradient:hover {
  background: #16365a;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: #1a4270;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.btn-secondary:hover {
  background: #f9fafb;
  color: #bf8524;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  display: inline-block;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #16365a;
  color: #fff;
  text-decoration: none;
}

.btn-orange {
  background-color: var(--primary-orange);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  display: inline-block;
}

.btn-orange:hover, .btn-orange:focus {
  background-color: #a86b1c;
  color: #fff;
  text-decoration: none;
}

/* Section Titles */
.section-title {
  font-size: 1.875rem; /* text-3xl = 30px */
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.section-subtitle {
  font-size: 1.125rem; /* text-lg = 18px */
  color: #6b7280;
  margin-bottom: 3rem;
}

/* Category Cards */
.category-card {
  display: block;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.125rem; /* text-lg = 18px */
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.category-card p {
  font-size: 0.875rem; /* text-sm = 14px */
  color: #6b7280;
  margin-bottom: 1rem;
}

.category-card i {
  color: #9ca3af;
  transition: color 0.2s;
}

.category-card:hover i {
  color: #0ea5e9;
}

/* Category Colors */
.category-scholarships .category-icon {
  background: var(--primary-blue);
}

.category-internships .category-icon {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.category-fellowships .category-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.category-competitions .category-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.category-exchange-programs .category-icon {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.category-conferences .category-icon {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.category-courses .category-icon {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.category-careers .category-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Page Headers/Banners */
.page-header {
  padding: 4rem 0;
  text-align: center;
}

.page-header.scholarships {
  background: var(--primary-blue);
}

.page-header.internships {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.page-header.fellowships {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.page-header.competitions {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.page-header.exchange-programs {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.page-header.conferences {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.page-header.courses {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
}

.page-header.careers {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.page-header-icon {
  width: 4rem;
  height: 4rem;
  color: white;
  margin: 0 auto 1rem;
}

.page-header h1 {
  font-size: 2.5rem; /* text-3xl = 30px */
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem; /* text-lg = 18px */
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto;
}

/* Search and Filter Section */
.search-filter-section {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem; /* text-sm = 14px */
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem; /* text-sm = 14px */
  background: white;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Opportunities Grid */
.opportunities-section {
  padding: 3rem 0;
}

.opportunities-header h2 {
  font-size: 1.5rem; /* text-2xl = 24px */
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.opportunities-header p {
  color: #6b7280;
  font-size: 0.875rem; /* text-sm = 14px */
}

/* Opportunity Cards */
.opportunity-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
  border: 1px solid #f3f4f6;
  height: 100%;
}

.opportunity-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.opportunity-card.featured {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.opportunity-card:hover .card-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem; /* text-xs = 12px */
  font-weight: 500;
}

.category-badge {
  display: inline-block;
  font-size: 0.75rem; /* text-xs = 12px */
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

.category-badge.featured {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.category-badge.regular {
  background-color: #f3f4f6;
  color: #6b7280;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem; /* text-xl = 20px for featured cards */
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.opportunity-card:not(.featured) .card-body h3 {
  font-size: 1.125rem; /* text-lg = 18px for regular cards */
}

.card-body p {
  color: #6b7280;
  font-size: 0.875rem; /* text-sm = 14px */
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem; /* text-sm = 14px */
  color: #6b7280;
  margin-bottom: 1rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-meta-item i {
  width: 1rem;
  height: 1rem;
}

/* Card Action Buttons */
.card-body .btn-primary-gradient {
  padding: 0.5rem 1rem;
  font-size: 0.875rem; /* text-sm = 14px */
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-body .btn-outline-primary {
  border-color: #1a4270;
  color: #1a4270;
  font-size: 0.75rem; /* text-xs = 12px */
  padding: 0.375rem 0.75rem;
  transition: all 0.2s;
}

.card-body .btn-outline-primary:hover {
  background-color: #1a4270;
  border-color: #1a4270;
  color: white;
}

.card-body .btn-outline-secondary {
  border-color: #bf8524;
  color: #bf8524;
  font-size: 0.75rem; /* text-xs = 12px */
  padding: 0.375rem 0.75rem;
  transition: all 0.2s;
}

.card-body .btn-outline-secondary:hover {
  background-color: #bf8524;
  border-color: #bf8524;
  color: white;
}

/* CTA Section */
.cta-section {
  /* background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%); */
  background: var(--primary-blue);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.475rem; /* text-3xl = 30px */
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem; /* text-xl = 20px */
  color: #bae6fd;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 0;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
}

.empty-state h3 {
  font-size: 1.125rem; /* text-lg = 18px */
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #6b7280;
  font-size: 0.875rem; /* text-sm = 14px */
}

/* Footer */
footer {
  background-color: #111827;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}


footer h5 {
  font-size: 1.125rem; /* text-lg = 18px */
  font-weight: 600;
  margin-bottom: 1rem;
}

footer .text-secondary {
  color: #9ca3af !important;
}

footer a {
  transition: color 0.2s;
}

footer a:hover {
  color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem; /* text-4xl = 36px */
  }
  
  .hero-subtitle {
    font-size: 1.125rem; /* text-lg = 18px */
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .page-header h1 {
    font-size: 2rem; /* text-2xl = 24px */
  }
  
  .page-header p {
    font-size: 1rem; /* text-base = 16px */
  }
  
  .opportunities-header h2 {
    font-size: 1.25rem; /* text-xl = 20px */
  }
  
  .card-body h3 {
    font-size: 1.125rem; /* text-lg = 18px */
  }
  
  .section-title {
    font-size: 1.5rem; /* text-2xl = 24px */
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem; /* text-6xl = 60px */
  }
  
  .hero-buttons {
    flex-direction: row;
  }
}

/* Utility Classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Search Icon Position */
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 1.25rem;
  height: 1.25rem;
}

/* Social Media Icons */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.social-icon-link:hover::before {
  opacity: 1;
}

.social-icon-link i {
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* Individual social media brand colors on hover */
.social-icon-link:hover[title*="Twitter"]::before {
  background: linear-gradient(135deg, #1da1f2 0%, #0ea5e9 100%);
}

.social-icon-link:hover[title*="LinkedIn"]::before {
  background: linear-gradient(135deg, #0077b5 0%, #0ea5e9 100%);
}

.social-icon-link:hover[title*="Instagram"]::before {
  background: linear-gradient(135deg, #e4405f 0%, #f77737 50%, #fca326 100%);
}

.social-icon-link:hover[title*="YouTube"]::before {
  background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
}

.social-icon-link:hover[title*="Discord"]::before {
  background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
} 

/* --- Admin Login Redesign --- */
.login-bg-gradient {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}
.login-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 41, 55, 0.15);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}
.login-error {
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
}
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-group label {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
}
.form-group input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f9fafb;
  transition: border 0.2s;
}
.form-group input:focus {
  border: 1.5px solid #3b82f6;
  outline: none;
  background: #fff;
}
.login-btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  padding: 0.7rem 0;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Admin Dashboard Redesign --- */
.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 41, 55, 0.15);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 340px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.dashboard-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.dashboard-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dashboard-nav li {
  width: 100%;
}
.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  padding: 0.85rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1.08rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.04);
}
.dashboard-nav a:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(14, 165, 233, 0.08);
}
.dashboard-icon {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
} 