/* Styling for the tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  padding: 5px 5px;
  background-color: #f5f5f5;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  font-weight: bold;
  text-transform: uppercase;
}

.tab.active {
  background-color: #fff;
  border-bottom: 3px solid #007bff;
}

.tab:hover {
  background-color: #dcdcdc;
}

.tab::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #007bff;
  z-index: -1;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.tab.active::before {
  transform: scaleX(1);
}

/* Styling for the tab content */
.resource-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.resource-card:hover {
  box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.4);
}

.resource-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.resource-card .card-body {
  text-align: center;
  padding: 10px;
}

.resource-card .card-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.resource-card .card-text {
  margin-bottom: 10px;
}

/*
.card {
  width: 700px;
  height: 700px;
} */

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.card-title {
  text-align: center;
  margin-top: 10px;
}

.card-text {
  text-align: center;
  margin-top: 10px;
}

.btn-primary {
  margin-top: 10px;
}



.resource-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.resource-card:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.resource-logo {
  height: 150px;
  width: 100%;
  object-fit: contain;
  padding: 10px;
}

.resource-body {
  text-align: center;
  padding: 20px;
}

.resource-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.resource-description {
  margin-bottom: 15px;
}

.resource-btn {
  width: 100%;
}

/* Ensure the navbar uses flexbox for alignment */
.navbar {
    display: flex;
    justify-content: center; /* Centers the entire navbar content horizontally */
    align-items: center; /* Centers content vertically */
    width: 100%;
    padding: 0; /* Optional: Adjust padding for a tighter appearance */
}

/* Specifically target navbar-brand to center it within its container */
.navbar-brand {
    flex-grow: 1; /* Allows the logo to take up space and center itself */
    text-align: center; /* Ensure text/logo is centered */
}

/* Ensure collapse content is also centered on smaller screens */
.navbar-collapse {
    justify-content: center;
}

/* Handle spacing between navbar items */
.navbar-nav .nav-item {
    margin: 0 10px; /* Adjust spacing as necessary */
}

/* Media query for smaller screens */
@media (max-width: 991.98px) {
    .navbar-collapse {
        justify-content: center !important;
    }
}


/* how it works section */

.timeline {
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    width: 80%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 3px;
    height: 100%;
    background-color: #3498db;
    z-index: 1;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        180deg,
        #3498db,
        #3498db 10px,
        transparent 10px,
        transparent 20px
    ); /* Create zig-zag effect */
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-item .timeline-img {
    position: absolute;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.timeline-item .timeline-content {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    width: 45%;
    position: relative;
    z-index: 2;
}

.timeline-item .timeline-content.left {
    left: 0;
    text-align: right;
}

.timeline-item .timeline-content.right {
    right: 0;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

/* Adjust circle size and styling */
.timeline-img span {
    font-size: 22px;
}

.timeline-img {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: #fff;
    font-size: 18px;
    line-height: 50px;
    border-radius: 50%;
    z-index: 2;
}

/* Clearfix for alternating left/right alignment */
.timeline-item::after {
    content: "";
    display: table;
    clear: both;
}

/* Style for the timeline images */
.timeline-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
}
