/* Force Font Awesome 6.5.2 override version 5.12.1 */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* Fix navbar visibility issue - force light text on dark background */
.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom .navbar-toggler-icon {
  color: #FFFFFF !important;
}

/* Ensure proper dropdown styling */
.navbar-custom .dropdown-menu {
  background-color: #0e0e0e !important;
}

.navbar-custom .dropdown-item {
  color: #FFFFFF !important;
}

.navbar-custom .dropdown-item:hover {
  background-color: #333333 !important;
  color: #FFFFFF !important;
}

/* Fix body padding for fixed navbar */
body {
  padding-top: 56px !important;
}

/* Typography Improvements */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  color: #0e0e0e;
}

.page-header h1 {
  font-size: 2.5rem !important;
  margin-bottom: 1rem !important;
}

h1 {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
}

h2 {
  font-size: 1.8rem !important;
  font-weight: 600 !important;
}

h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

/* Modern Hero Section */
.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  background: -webkit-linear-gradient(45deg, #0e0e0e, #495057);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px !important;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #6c757d;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Pathways Section */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-desc {
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Ensure the third card spans full width if it's the only one on its row (2-column layout) */
@media (min-width: 700px) and (max-width: 1060px) {
  .pathway-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.pathway-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-top: 5px solid #289dff;
  display: flex;
  flex-direction: column;
}

.pathway-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pathway-icon {
  font-size: 2.5rem;
  color: #289dff;
  margin-bottom: 20px;
  background: #f0f7ff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pathway-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.pathway-desc {
  color: #6c757d;
  margin-bottom: 20px;
  flex-grow: 1;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.topic-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #495057;
}

.topic-list li:before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #28ac18;
}

.pathway-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  border: 1px solid #289dff;
  border-radius: 6px;
  color: #289dff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.pathway-btn:hover {
  background: #289dff;
  color: white !important;
  text-decoration: none;
}

/* Core Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.module-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.module-card:hover {
  border-color: #289dff;
  background: #f8fbff;
  transform: translateX(5px);
}

.module-icon {
  font-size: 1.5rem;
  color: #6c757d;
  margin-right: 15px;
  width: 40px;
  text-align: center;
  transition: color 0.2s;
}

.module-card:hover .module-icon {
  color: #289dff;
}

.module-info h4 {
  font-size: 1.1rem;
  margin: 0;
  color: #333;
}

.module-info span {
  font-size: 0.85rem;
  color: #888;
}

/* Community Section */
.community-section {
  background: #0e0e0e;
  color: white;
  padding: 60px 20px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
}

.community-section h3 {
  color: white;
  margin-bottom: 20px;
}

.community-btn {
  display: inline-block;
  background: white;
  color: #0e0e0e !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: transform 0.2s;
}

.community-btn:hover {

  transform: scale(1.05);

  text-decoration: none;

  background: #f8f9fa;

}



/* Widen Layout for Desktop */

@media (min-width: 1200px) {

  .container-md, .container {

    max-width: 1200px !important;

  }

  

  /* Remove the narrow column restriction on large screens */

  .col-xl-8.offset-xl-2 {

    flex: 0 0 100% !important;

    max-width: 100% !important;

    margin-left: 0 !important;

  }

}



.hero-section, .pathways-grid, .modules-grid, .community-section {

    max-width: 1100px;

    margin-left: auto;

    margin-right: auto;

}
