/* Custom Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/*------------------------Mobile View--------------------- */
@media (max-width: 768px) {
  #heroCarousel {
    display: none;
    /* Hide the carousel on mobile */
  }

  #mobileVideo {
    display: block;
    /* Show the mobile video */
  }

  #about {
    margin-top: 0;
    /* Remove unnecessary top margin for the "About" section */
  }

  .hero-section {
    margin-top: 56px;
    /* Ensure the hero section is below the navbar */
  }

  #recentArticlesList {
    margin-top: 20px;
    max-height: 150px;
    /* Limit the height of the list */
    overflow-y: auto;
    /* Add vertical scrolling if the list grows */
  }

  #forexIcon {
    display: none;
    /* Hide the icon in mobile view */
  }

  .contact-section .btn {
    margin-bottom: 10px;
    /* Add spacing between buttons */
    width: 100%;
    /* Ensure buttons take full width */
  }

  .contact-section {
    text-align: center;
    /* Center-align the content */
  }
}

/*------------------------Desktop View-------------------- */
@media (min-width: 769px) {
  #mobileVideo {
    display: none;
    /* Hide the mobile video on desktop */
  }

  #forexIcon {
    display: block;
    /* Show the icon in desktop view */
  }
}

#mobileVideo {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

#recentArticlesWrapper {
  position: relative;
  z-index: 1;
  /* Ensure it stays above other elements */
  margin-top: 20px;
  /* Add spacing to prevent overlap */
}


@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}


/* Animations */
.animate__animated {
  animation-duration: 1s;
}


/* ----------------Navigation Bar----------------- */
.navbar {
  background-color: #1a1919;
  color: #fff;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand .navbarlogo {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #f1c40f !important;
}

.navbar-toggler {
  border-color: #fff;
}

.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%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* -----------------Landing Page------------------- */
/* ------hero section-------*/
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 56px;
  /* Ensure it stays below the navbar */
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.924);
  /* Dark overlay for better text visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

#social-icon {
  font-size: 3rem;
  /* Make icons larger */
  color: #fff;
  /* Set icons to white */
  transition: transform 0.3s, color 0.3s;
  /* Smooth hover effect */
}

#social-icon:hover {
  transform: scale(1.3);
  /* Slightly enlarge on hover */
  color: #ffffff;
  /* Change color to yellow on hover */
}

/* ----------------Articles Section----------------- */
.articles-section {
  padding: 40px 0;
  background-color: #f8f9fa;
}

#articlesContainer {
  display: flex;
  flex-wrap: nowrap;
  /* Prevent wrapping */
  overflow-x: auto;
  /* Enable horizontal scrolling */
  gap: 1rem;
  /* Add spacing between cards */
  padding: 1rem;
  /* Optional: Add padding */
}

.article-card {
  flex: 0 0 300px;
  /* Fixed width for each card */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Optional: Add shadow */
  border-radius: 8px;
  /* Optional: Add rounded corners */
  background-color: #fff;
  /* Optional: Background color */
}

.articles-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
}

.articles-container::-webkit-scrollbar {
  display: none;
}

.article-card {
  width: 300px;
  height: 450px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  /* Ensure footer stays at the bottom */
}

.article-card:hover {
  transform: translateY(-10px);
}

.article-card img {
  width: 100%;
  height: 150px;
  /* Set a fixed height for the image */
  object-fit: cover;
  /* Ensure the image fits within the container */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.article-card .card-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  /* Prevent scrolling */
}


.article-card .card-body .d-flex.flex-column {
  width: 100%;
}

.article-card .card-body .btn {
  width: 60%;
  /* Center-align buttons and make them consistent in size */
}

.article-card .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  white-space: nowrap;
  /* Single-line truncation */
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card .card-text {
  font-size: 1rem;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  /* Limit to 10 lines */
  -webkit-box-orient: vertical;
  line-clamp: 10;
  /* Standard property for compatibility */
  box-orient: vertical;
  /* Standard property for compatibility */
}

.article-card .article-meta {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 10px;
  text-align: right;
}

.article-card .card-footer {
  background-color: #fff;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ddd;
  position: sticky;
  bottom: 0;
}

.articles-slider {
  width: 100%;
  margin-top: 10px;
  appearance: none;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

.articles-slider:hover {
  background: #ccc;
}

.articles-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.articles-slider::-webkit-slider-thumb:hover {
  background: #0056b3;
}

.articles-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.articles-slider::-moz-range-thumb:hover {
  background: #0056b3;
}

.article-meta {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: right;
}

.article-meta span {
  display: block;
}



#recentArticlesList p {
  cursor: pointer;
  transition: color 0.5s ease;
  color: white !important;
  /* Default color is now white */
}

#recentArticlesList p:hover {
  color: yellow !important;
  /* Hover color is now yellow */
}

/* --------------------Full Artilce Modal--------------------- */
#articleModalImage {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Ensure modal is centered on all screen sizes */
.modal-dialog {
  margin: 0 auto;
  top: 5%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .modal-dialog {
    width: 90%;
    /* Adjust width for smaller screens */
    max-width: 90%;
  }
}

/*--------------------- Services---------------------*/

#services .service-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 10px;
  transition: transform 0.3s ease;
}

#services .service-card:hover {
  transform: translateY(-10px);
}

#services .service-card i {
  color: #007bff;
}

/*--------------------- Learn More Section---------------------*/
.video-overlay {
  position: relative;
  cursor: pointer;
  border: 3px solid #070707c2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-overlay:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(22, 22, 22, 0.2);
}

.video-overlay .play-button {
  position: absolute;
  top: 30%;
  left: 40%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  /* Ensure the button is perfectly round */
  width: 100px;
  /* Set width */
  height: 100px;
  /* Set height equal to width */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 0.8s infinite;
}

.modal-video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 80vh;
  margin: 0;
}

.modal-dialog {
  max-width: 72%;
}


/* -----------Cards Brokers, Videos-------------*/
.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
  overflow-y: hidden;
  /* Hide overflow by default */

}

/*------------------------------- Brokers---------------------------*/
.broker-card {
  height: 500px;
  /* Retain original height for broker cards */
}

.broker-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* Ensure the image covers the card area */
}

.broker-card .card-text {
  text-align: justify;
  /* Ensure the broker summary text is justified */
}

.card-footer {
  position: relative;
  bottom: 0;
  background-color: white;
  padding: 10px;
  text-align: center;
  border: none;
}


/*--------------------------- Start Learning-------------------------*/
.videos-container {
  display: flex;
  overflow-x: auto;
  /* Add horizontal scrolling for the Start Learning section */
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
}

.videos-container::-webkit-scrollbar {
  display: none;
}

.video-card {
  background: #f3f3f3;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 10px;
  height: 300px;
}

.video-card video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.video-card {
  flex: 0 0 auto;
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: rgba(232, 230, 243, 0.932);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.video-card iframe {
  width: 100%;
  height: 150px;
  border: none;
}

.video-card .card-body {
  padding: 15px;
}

.video-card .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.video-card .card-text {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}


/*--------------------------- Contact Sections -------------------------*/
#ig-icon-color {
  color: #000000 !important;
}



/*-------------------------------- Footer -----------------------------*/
footer {
  background-color: #1a1919;
  /* Dark background for good contrast */
  color: #fff;
  /* Light text for good contrast */
}

footer h5 {
  color: #f1c40f;
}

footer h5:hover {
  color: #f8f9fa;
}

footer a {
  color: #fff;
  /* Light text for good contrast */
  text-decoration: none;
}

footer a:hover {
  color: #f1c40f;
  /* Yellow hover color for good contrast */
}

footer p {
  color: rgb(94, 89, 89);
}