/* Modern Custom CSS for Muslim Mentorship Platform */

/* Custom Variables */
:root {
  --primary-color: #116466;
  --primary-dark: #094e50;
  --primary-light: #2c7a7b;
  --secondary-color: #d9b08c;
  --accent-color: #ffcb9a;
  --dark-color: #2c3531;
  --light-color: #f5f5f5;
  --text-color: #333;
  --light-text: #f5f5f5;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  
  --font-primary: 'Open Sans', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* Base styles */
body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-title p {
  font-size: 1.25rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/pattern.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 60%;
  opacity: 0.1;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-section .btn-outline-light {
  border: 2px solid white;
  color: white;
}

.hero-section .btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

.hero-image {
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Features Section */
.features-section {
  background-color: white;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-card h4 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

/* How It Works Section */
.steps-section {
  background-color: #f9f9f9;
}

.step-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step-item h4 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.step-item p {
  color: #666;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
  z-index: 0;
}

.step-item:last-child::after {
  display: none;
}

/* Featured Mentors Section */
.mentors-section {
  background-color: white;
}

.mentor-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.mentor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.mentor-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  margin: 0 auto;
  display: block;
}

.mentor-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2.5rem;
  color: #aaa;
}

.mentor-info {
  padding: 1.5rem;
  text-align: center;
}

.mentor-info h4 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.mentor-profession {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mentor-bio {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #f9f9f9;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-top: 1.5rem;
  height: calc(100% - 1.5rem);
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: -40px;
  left: 20px;
  font-size: 6rem;
  color: var(--primary-light);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #555;
}

.testimonial-author h5 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

.testimonial-author p {
  font-size: 0.9rem;
  color: #777;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 5rem 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 4rem 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.2rem;
  }
  
  .hero-section .hero-image {
    margin-top: 2rem;
  }
  
  .step-item::after {
    display: none;
  }
  
  .cta-section {
    text-align: center;
  }
  
  .cta-section .text-md-end {
    text-align: center !important;
    margin-top: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-section .btn {
    margin-right: 0 !important;
  }
}

/* Skip link fix */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: white;
  color: var(--primary-color);
  opacity: 0;
}

.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

/* Additional styles for enhanced navigation and footer */

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.navbar-brand {
  font-weight: 600;
  font-family: var(--font-heading);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 80%;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.nav-link.btn {
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--border-radius);
}

.nav-link.btn:after {
  display: none;
}

.dropdown-menu {
  box-shadow: var(--shadow-md);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(17, 100, 102, 0.1);
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: #f8f9fa;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: #eee;
  border-radius: 50%;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Dark Mode Styles */
.dark-mode {
  --text-color: #f5f5f5;
  --light-color: #1a1a1a;
  --dark-color: #f5f5f5;
  background-color: #1a1a1a;
  color: #f5f5f5;
}

.dark-mode .navbar,
.dark-mode .card,
.dark-mode .feature-card,
.dark-mode .testimonial-card,
.dark-mode .mentor-card,
.dark-mode .dropdown-menu {
  background-color: #252525 !important;
  color: #f5f5f5;
}

.dark-mode .navbar-light .navbar-nav .nav-link,
.dark-mode .card-body,
.dark-mode .feature-card p,
.dark-mode .testimonial-content p,
.dark-mode footer,
.dark-mode .footer-links a {
  color: #e0e0e0 !important;
}

.dark-mode .bg-light {
  background-color: #252525 !important;
}

.dark-mode .text-muted {
  color: #aaaaaa !important;
}

.dark-mode footer {
  background-color: #202020;
}

.dark-mode .navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dark-mode hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .dropdown-item {
  color: #e0e0e0;
}

.dark-mode .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced styles for Browse Mentors page */

/* Main container styling */
.browse-mentors-container {
  padding: 3rem 0;
  background-color: #f9fafb;
}

.browse-mentors-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.browse-mentors-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  margin-top: 0.5rem;
}

/* Filter card styling */
.filter-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  transition: var(--transition);
}

.filter-card:hover {
  box-shadow: var(--shadow-md);
}

.filter-card .card-body {
  padding: 1.75rem;
}

.filter-form .form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.filter-form .form-select {
  border-radius: var(--border-radius);
  border-color: #e2e8f0;
  padding: 0.75rem 1rem;
  color: #4a5568;
  transition: all 0.2s ease;
}

.filter-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 100, 102, 0.2);
}

.filter-btn {
  height: 100%;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Mentor card styling */
.mentor-grid {
  margin-top: 1rem;
}

.mentor-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.mentor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.mentor-card .card-body {
  padding: 2rem;
}

.mentor-img-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.mentor-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(17, 100, 102, 0.1);
  box-shadow: var(--shadow-sm);
}

.mentor-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.mentor-name {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.35rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.mentor-profession {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.mentor-field {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 5px rgba(17, 100, 102, 0.2);
}

.mentor-info-list {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 1.25rem 0;
  padding: 0.75rem 0;
}

.mentor-info-item {
  padding: 0.75rem 0;
  border: none !important;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.mentor-info-label {
  color: #64748b;
  font-weight: 500;
}

.mentor-info-value {
  color: #334155;
  font-weight: 600;
}

.experience-years {
  color: var(--primary-color);
  font-weight: 700;
}

.mentor-slots {
  font-weight: 700;
}

.slots-available {
  color: #059669; /* green for available slots */
}

.slots-limited {
  color: #d97706; /* amber for limited slots */
}

.slots-full {
  color: #dc2626; /* red for no slots */
}

.mentor-actions {
  margin-top: 1.5rem;
}

.btn-view-profile {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-view-profile:hover {
  background-color: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

.btn-request {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-request:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 100, 102, 0.2);
}

.no-mentors-alert {
  background-color: rgba(17, 100, 102, 0.1);
  border: none;
  border-radius: var(--border-radius);
  color: var(--primary-color);
  padding: 2rem;
  text-align: center;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .browse-mentors-container {
    padding: 2rem 0;
  }
  
  .filter-card .card-body {
    padding: 1.25rem;
  }
  
  .filter-btn {
    margin-top: 1rem;
  }
  
  .mentor-card .card-body {
    padding: 1.5rem;
  }
  
  .mentor-img, .mentor-placeholder {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .browse-mentors-heading {
    font-size: 1.75rem;
  }
  
  .mentor-name {
    font-size: 1.25rem;
  }
  
  .mentor-card .card-body {
    padding: 1.25rem;
  }
  
  .mentor-info-item {
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
}

