/* 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;
  flex-shrink: 0;
}

.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;
}

/* Newsletter Section Styles */
.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  border-color: transparent;
}

.newsletter-form .btn {
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.newsletter-form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.newsletter-form .btn:disabled {
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-form .input-group {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

#newsletterMessage .alert {
  border: none;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

#newsletterMessage .alert-success {
  background-color:#fff;
  color: var(--primary-green);
  font-weight: normal;
}

#newsletterMessage .alert-danger {
  background-color:#fff;
  color: #991b1b;
}

/* Responsive adjustments for newsletter */
@media (max-width: 768px) {
  .newsletter-form .col-md-8 {
    width: 100%;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
  }
  
  .email-input {
    width: 100% !important;
  }
  
  .newsletter-form .form-control {
    border-radius: 0.5rem 0.5rem 0 0;
  }
  
  .newsletter-form .btn {
    border-radius: 0 0 0.5rem 0.5rem;
  }
} 

/* Newsletter Modal Styles */
.newsletter-modal-icon {
    color: var(--primary-blue);
}

.newsletter-modal-icon i {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#newsletterModal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#newsletterModal .modal-dialog {
    max-width: 450px;
}

#newsletterModal .modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

#newsletterModal .modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

#newsletterModal .modal-title {
    font-weight: 700;
    color: var(--primary-blue);
}

#newsletterModal .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
}

/* Override Bootstrap input-group tight coupling to allow visible gap */
#newsletterModal .newsletter-input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}


/* Use flex column with gap so both elements share same width */
#newsletterModal .newsletter-input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
}

#newsletterModal .newsletter-input-group .form-control,
#newsletterModal .newsletter-input-group .btn {
    width: 100%;
    margin: 0 !important;
    border-radius: 0.5rem;
}

#newsletterModal .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(26, 66, 112, 0.25);
}

#newsletterModal .btn-primary {
    background: var(--primary-blue);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

#newsletterModal .btn-primary:hover {
    background: #153a5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 66, 112, 0.3);
}

#newsletterModal .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Modal animation */
#newsletterModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#newsletterModal.show .modal-dialog {
    transform: none;
}

/* Newsletter message styles */
#newsletterModalMessage .alert {
    border-radius: 0.5rem;
    border: none;
    font-size: 0.875rem;
}

#newsletterModalMessage .alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

#newsletterModalMessage .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #newsletterModal .modal-dialog {
        margin: 1rem;
        max-width: 100%;
    }
    
    #newsletterModal .modal-body {
        padding: 0 1rem 1rem 1rem;
    }
    
    #newsletterModal .input-group {
        flex-direction: column;
    }
    
    #newsletterModal .input-group .form-control {
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    #newsletterModal .input-group .btn {
        border-radius: 0.5rem;
        width: 100%;
    }
}

/* --- Partners Carousel Styles (Based on dummy-partners.html) --- */
.partners-carousel-container {
    position: relative;
    margin: 0 auto;
}

.partners-carousel {
    position: relative;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    padding: 60px 60px;
    min-height: 200px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    align-items: center;
    gap: 60px;
}

.partner-item {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

.partner-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-blue);
}

.partner-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.partner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #64748b;
    font-size: 24px;
    border-radius: 50%;
}

/* Partner info removed - names no longer displayed */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.carousel-nav.prev {
    left: -22px;
}

.carousel-nav.next {
    right: -22px;
}

.carousel-nav i {
    font-size: 16px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* Responsive Partners Carousel */
@media (max-width: 768px) {
    .carousel-container {
        padding: 50px 40px;
        min-height: 180px;
    }
    
    .carousel-track {
        gap: 40px;
    }
    
    .partner-item {
        width: 140px;
        height: 140px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        padding: 40px 20px;
        min-height: 160px;
    }
    
    .carousel-track {
        gap: 30px;
    }
    
    .partner-item {
        width: 120px;
        height: 120px;
    }
}

/* --- Admin Partners Module Styles --- */
.partners-table img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0.25rem;
}

.partners-table .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

#logoPreview {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

.partner-placeholder-admin {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.partner-placeholder-admin i {
    font-size: 1.5rem;
}

/* Admin form enhancements */
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(26, 66, 112, 0.25);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #16365a;
    border-color: #16365a;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-danger {
    color: #dc2626;
    border-color: #dc2626;
}

.btn-outline-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Loading states */
.btn-loading {
    display: none;
}

.btn:disabled .btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn:disabled .btn-text {
    display: none;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.badge.bg-success {
    background-color: #10b981 !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #1f2937;
}

/* Form text helper */
.form-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
} 