* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  line-height: 1.6; /* Improved readability */
  color: #333; /* Default text color for consistency */
}

/* Navbar */
.navbar {
  background: transparent;
  transition: all 0.4s ease;
  padding: 20px 0;
  backdrop-filter: blur(10px); /* Subtle glass effect for attractiveness */
}
.navbar.scrolled {
  background: linear-gradient(to right, #89CCC7, #89CCC7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Deeper shadow for depth */
  padding: 12px 0;
  color: white;
}

/* Navbar icon */
.navbar i {
  font-size: 21px;
  color: black;
  background-color: white;
  border-radius: 50px;
  padding: 9px 30px 11px 12px;
  transition: all 0.3s ease; /* Smoother hover */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for elevation */
}
.navbar i:hover {
  background-color: #065864 !important;
  transform: scale(1.05); /* Slight grow effect for attractiveness */
}
/* Nav Links */
.navbar-nav a {
  color: white !important;
  font-weight: 400;
  font-size: 16px;
  margin: 10px;
  transition: 0.3s;
  padding: 5px 10px; /* Added padding for better clickability */
  border-radius: 5px; /* Rounded hover area */
}

.navbar-nav a.active {
  color: #083b42 !important;
}

.navbar-nav a:hover {
  color: #065864 !important;
}

/* Navbar toggler */
.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none !important;
  padding: 0;
  margin-top: 0;
  margin-left: auto;
}

.navbar-toggler-icon {
  background: none !important;
  width: 25px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: all 0.3s ease-in-out;
  display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 25px;
  height: 2px;
  background: white;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before {
  top: 12px;
}

.navbar-toggler-icon::after {
  top: 22px;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}
/* ===== DROPDOWN HOVER STYLING ===== */

/* Hide dropdown by default */
.nav-item.dropdown .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  width: auto;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);

}

/* Dropdown menu design */
.dropdown-menu {
  background-color: #fff;
  color: #00576f;
  border: none;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow for attractiveness */
  border-radius: 12px; /* More rounded for modern look */
  padding: 10px 0;
  min-width: 180px;
}

/* Dropdown items */
 .dropdown-item {
  color: black;
  font-weight: 900;
  padding: 12px 20px; /* Increased padding for comfort */
  transition: all 0.3s ease;
  margin: 2px 8px; /* Slight margins for separation */
}

/* Hover effect on dropdown item */
.dropdown-item:hover {
  background: linear-gradient(to right, #1f8d95, #50c5c9) !important;
  color: white;
  transform: translateX(5px);
}

/* Remove outlines and borders */
.nav-link:focus,
.dropdown-item:focus,
.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hero-section */
.hero-section {
  min-height: 90vh; /* Adjusted from 100vh for better balance—prevents excessive height on mobile while keeping it attractive */
  background:
    linear-gradient(
      to bottom left,
      #7bd2cf,
      #00576f
    ) 0 0 / 100% 60%, /* Slightly taller gradient area for visual appeal */
    #89CCC7;
  background-repeat: no-repeat;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Better centering for content */
  padding: 120px 20px 40px; /* Adjusted padding: reduced top for navbar overlap, added sides for mobile margins */
  position: relative;
}
.hero-section::before { /* Added pseudo-element for subtle overlay texture */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05); /* Light overlay for depth */
  border-radius: inherit;
  pointer-events: none;
}
.hero-section h1 {
  font-size: 4em;
  font-weight: 700;
  margin-bottom: 20px; /* Added margin for spacing */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for attractiveness */
  z-index: 1; /* Above overlay */
}

.hero-section p {
  margin-bottom: 40px; /* Increased bottom margin for better separation */
  color: #00225497;
  font-size: 24px;
  font-weight: 700;
  text-align: center; /* Centered for better flow */
  z-index: 1;
}

/* Search Box */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  margin: 0 auto 30px; /* Added bottom margin for spacing */
  padding: 10px; /* Slightly increased padding */
  border-radius: 50px; /* More rounded for attractiveness */
  width: 100%;
  max-width: 650px; /* Wider for better proportion */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Added shadow for elevation */
  z-index: 1;
}
i {
  margin-left: 15px; /* Increased margin for better spacing */
  font-size: 1.3em;
  opacity: 0.9;
  color: #065864; /* Tinted for theme consistency */
}
.search-box input {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 20px; /* Increased padding */
  border-radius: 50px;
  font-size: 1.3rem;
  color: #333;
}
.search-box button {
  background: #6bc3bc;
  border: none;
  color: white;
  font-weight: 600;
  padding: 14px 45px; /* Increased padding */
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.3em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.search-box button:hover {
  background-color: #00576f;
  transform: translateY(-2px); /* Lift effect for attractiveness */
}

/* Cards Container */
.card-container {
  display: flex;
  justify-content: center;
  gap: 30px; /* Increased gap for better spacing */
  margin-top: 5%; /* Adjusted for proportion */
  padding: 0 20px; /* Added side padding for margins */
}

/* Cards */
.card {
  position: relative;
  border-radius: 20px !important; /* More rounded for modern look */
  padding: 30px; /* Increased padding for comfort */
  text-align: left;
  color: #333;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); /* Deeper shadow for attractiveness */
  transition: all 0.3s ease; /* Smooth hover */
  overflow: hidden; /* For potential overlays */
}
.card:hover {
  transform: translateY(-5px); /* Lift on hover for engagement */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.white {
  max-width: 380px; /* Slightly wider for better proportion */
  width: 100%;
}

.white p {
  color: #333333a8;
  font-size: 1.2em;
  font-weight: 400;
  margin: 15px 10px 20px; /* Adjusted margins for better flow */
}

.card.white img {
  margin-top: 15px; /* Increased margin */
  opacity: 0.9;
  border-radius: 10px; /* Rounded image for attractiveness */
  transition: opacity 0.3s ease;
}
.card.white img:hover {
  opacity: 1; /* Subtle hover effect */
}

.gradient {
  background-image: url("https://www.thetraderisk.com/wp-content/uploads/2021/02/BTC-EP-3-1024x536.jpg") !important;
  background-position: center;
  background-size: cover;
  color: white;
  max-width: 580px; /* Slightly wider */
  width: 100%;
  position: relative;
}
.gradient::after { /* Overlay for better text readability */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3); /* Dark overlay */
  border-radius: inherit;
  z-index: 0;
}

.gradient p {
  color: white;
  font-size: 1.2em;
  font-weight: 400;
  margin: 15px 10px 20px; /* Consistent margins */
  position: relative;
  z-index: 1;
}

.card.gradient .btn {
  background: #4cd0c7;
  width: 160px; /* Slightly wider */
  border: none;
  color: white;
  padding: 12px 25px; /* Increased padding */
  border-radius: 50px;
  margin-top: 20px; /* Increased margin */
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card.gradient .btn:hover {
  background-color: #00576f;
  transform: scale(1.05); /* Grow effect */
}

.card .badge {
  position: absolute;
  top: 20px; /* Adjusted position */
  right: 20px;
  background: #00aaff;
  color: white;
  font-size: 0.8rem;
  padding: 6px 10px; /* Increased padding */
  border-radius: 20px; /* More rounded */
  z-index: 1;
}

.share {
  display: flex;
  align-items: center;
  gap: 15px; /* Increased gap */
  margin-top: 25%; /* Adjusted for proportion */
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.share span {
  font-size: 1.5rem;
  font-weight: 600;
}

.share i {
  background: #4cd0c7;
  padding: 14px 32px 13px 14px; /* Increased padding */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share i:hover {
  background: #00576f;
  color: white;
  transform: scale(1.1); /* Subtle scale */
}

/* Responsive Media Queries */
/* Large desktops (1200px and up) - Defaults are optimized */

/* Medium desktops/laptops (992px to 1199px) */
@media (max-width: 1199px) {
  .hero-section h1 {
    font-size: 3.5em;
  }
  .hero-section p {
    font-size: 20px;
  }
  .search-box input {
    font-size: 1.1rem;
  }
  .search-box button {
    font-size: 1.1rem;
    padding: 12px 35px;
  }
  .gradient p {
    margin-right: 50px;
  }
  .card-container {
    gap: 25px; /* Slightly reduced gap */
  }
}

/* Small laptops/tablets (768px to 991px) */
@media (max-width: 991px) {
  .hero-section {
    padding: 100px 15px 30px; /* Adjusted padding */
    min-height: 85vh; /* Shorter for tablets */
  }
  .hero-section h1 {
    font-size: 3em;
  }
  .hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .search-box {
    max-width: 550px;
    padding: 12px;
  }
  .search-box input {
    font-size: 1rem;
  }
  .search-box button {
    font-size: 1rem;
    padding: 12px 30px;
  }
  .card {
    padding: 25px;
  }
  .white p,
  .gradient p {
    font-size: 1.1rem;
    margin: 12px 10px 18px;
  }
  .card.gradient .btn {
    width: 150px;
  }
  .share {
    margin-top: 20%;
  }
  .card-container {
    gap: 20px;
    padding: 0 15px;
  }
}

/* Tablets/phones (576px to 767px) */
@media (max-width: 767px) {
  .navbar {
  background: #7bd2cf;
  transition: all 0.4s ease;
  padding: 20px 0; 
}
  .hero-section {
    padding: 80px 10px 20px; /* Reduced padding for mobile */
    min-height: 75vh; /* Shorter height */
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
  }
  .hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .hero-section p {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .search-box {
    flex-direction: column;
    max-width: 90%;
    padding: 12px;
    margin-bottom: 20px;
  }
  .search-box input {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
    padding: 14px 20px;
  }
  .search-box button {
    width: 100%;
    padding: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
  }
  .white,
  .gradient {
    max-width: 100%;
  }
  .white p,
  .gradient p {
    margin: 10px 10px 15px;
    font-size: 1rem;
  }
  .card.white img {
    width: 150px;
    margin-top: 10px;
  }
  .card.gradient .btn {
    width: 100%;
    text-align: center;
  }
  .share {
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
  }
  /* .share i { */
    /* padding: 13px 31px 50px 14px; */
  /* } */
  /* .navbar i { */
    /* padding: 12px 29px 9px 13px; */
    /* font-size: 18px; */
  /* } */
  .navbar-nav a {
    font-size: 14px;
    margin: 5px;
    padding: 8px 12px;
  }
}
/* section-2 styling */
.topics h2 {
  font-size: 2.4rem;
}
.nav-link {
  color: rgb(69, 69, 69) !important;
  font-weight: 400;
  font-size: 1.2em;
  margin:15px;
  position: relative;  
}
.nav-link:hover{
  color:#217b9a !important;
  border-bottom: 2px solid #00aaff;
  border-radius: 5px;
}
.nav-link.active {
  color: #2e2e2e !important;
  border-bottom: 2px solid #2e2e2e !important;  
}
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(8,27,39,0.07);  
  transition: transform .28s ease, box-shadow .28s ease;
  background: #fff;
  height: 100%;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px rgba(8,27,39,0.09);
} 
.badge-count {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #7508fa;
  color: #fff;
  padding: 6px 9px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-top: 6px;  
}
#cardsContainer {
  position: relative;
  min-height: 300px;
  width: 100%;
}
.cards-row {
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
}  
.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
}
.slide-active {
  transform: translateX(0);
  opacity: 1;
}
.container {
  width: 100%;
  max-width: none;
  padding-left: 15px;
  padding-right: 15px;
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 576px) {
  .container { padding-left: 5px; padding-right: 5px; }
}
/* === FINANCE CARD CUSTOM STYLE === */
.finance-card {
  background: linear-gradient(135deg, #66c6c2, #217b9a);
  color: #fff;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(8,27,39,0.07);  
  transition: all 0.3s ease;
}
.finance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px rgba(8,27,39,0.09);      
}
.finance-card h5 {
  color: #fff;
  font-weight: 600;
}
.finance-card p {
  color: #eaf6f9;
}
.learn-btn {
  background-color: #8be0d8;
  color: #0a3c46;
  border: none;
  border-radius: 30px;
  padding: 8px 22px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.learn-btn:hover {
  background-color: #73d2cb;
}
.share-icons i {
  color: #8be0d8;
  margin: 0 8px;
  cursor: pointer;
  transition: color 0.3s;
}  
.share-icons i:hover {
  color: #fff;
}
.bookmark-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #8be0d8;
  font-size: 18px;
  cursor: pointer;  
}
/* === HEADING + BADGE INLINE === */
.card .card-header-line,
.finance-card .card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* section-3  desgin */
.how-it-works {
  min-height: 100vh;
  background:linear-gradient(to right,   #2c5b66d0, #528b88c0),url('https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;     
  padding: 100px 0;
  position: relative;
}
/* Section title */
.how-it-works h2 {
  font-weight: 700;
  font-size: 3rem;
  color: white;
  text-align: center;
  margin-bottom: 70px;
  letter-spacing: 1px;
}    
/* Card style (Glassmorphism) */
.timeline-item {
  padding: 30px 25px;
  transition: all 0.4s ease;
  margin-bottom: 40px;
  opacity: 0;
  transform: translatex(40px);
  animation: fadeUp 1s ease forwards;
}               
/* Icon styling */

.icon-circle{
  background-color: #00576f;
  padding: 15px 15px 15px 1px;
  border-radius: 50px;
}
.icon-circle i{
  color: white;
  border:3px solid #ffffff;
  padding: 18px 38px 18px 18px;
  border-radius: 50px;
  font-size: 20px;
}
.icon-circle:hover {
  background: linear-gradient(135deg, #00e0ff, #00ffd5);
  color: #0b1c2c;
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(0,255,157,0.4);
  animation: pulse 1.5s infinite;
}
  
/* Glow animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,157,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(0,255,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,157,0); }
}
/* Alternate slide-in animation */
.timeline-item:nth-child(odd) {
  animation: slideLeft 1s ease forwards;
}
.timeline-item:nth-child(even) {
  animation: slideRight 1s ease forwards;
}
@keyframes slideLeft {
  from {opacity: 0; transform: translateX(-100px);}
  to {opacity: 1; transform: translateX(0);}
}
@keyframes slideRight {
  from {opacity: 0; transform: translateX(100px);}
  to {opacity: 1; transform: translateX(0);}  
}
@keyframes fadeUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}  
}
/* Text styling */
.timeline-item h4 {
  font-weight: 600;
  font-size: 1.6rem;
  color: white;  
}
.timeline-item p {
  color: #d1d1d1;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 12px;  
}
/* Icon column centering */
.timeline-item .col-2 {
  display: flex;
  justify-content: center;
  align-items: center;  
}

    /* section-4 faq-section  */

    .faq-section {

      max-width: 1100px;

      margin: auto;

      padding: 40px 20px;

    }



    .faq-title {

      font-weight: 700;

      font-size: 2.2rem;

      margin-bottom: 30px;

    }



    .faq-image {

      width: 100%;

      max-width: 400px;

    }



    .accordion-button:focus {

      box-shadow: none;
      border-radius: 50px !important;

    }



    .accordion-button {

      font-weight: 500;
      border-radius: 50px !important;

    }



    .accordion-button:not(.collapsed) {

      background-color: #5f7a9a;
      border-radius: 50px !important;
      color: #4c5665;

    }



    .accordion-body {

      color: #6c757d;
      border: none !important;


    }



    @media (max-width: 768px) {

      .faq-content {

        flex-direction: column;

        text-align: center;

      }

      .faq-image {

        margin-bottom: 25px;

      }

    }

/* section-5  */
.section-5{
  background-color: #c2e3ef;
  
}
.section-5 h3{
  font-size: 2.8em;
  font-weight: 700;
}
.section-5 h5{
  font-size: 24px;
}
.section-5 p{
  border-bottom: 1.4px solid gray;
  padding-bottom: 15px;
}
.section-5 a{
  text-decoration: none;
  
}


    /* footer  */
.footer {

  position: relative;

  background-color: #f9f9f9;

  padding: 60px 80px;

  overflow: hidden;

}
span{
  font-size:2em;
  font-weight: 700;
}


.footer-container {

  display: flex;

  justify-content: space-between;

  flex-wrap: wrap;

  z-index: 2;

  position: relative;
  padding:30px;

}



.footer-logo h3 {

  font-size: 22px;

  color: #222;

  font-weight: 600;

}



.footer-column {

  min-width: 180px;

}



.footer-column h4 {

  color: #276678;

  font-size: 25px;

  margin-bottom: 10px;

}



.footer-column ul {

  list-style: none;

}



.footer-column ul li {

  margin: 6px 0;

}



.footer-column ul li a {

  color: #5acbc5;

  text-decoration: none;

  font-size: 18px;

}



.footer-column ul li a:hover {

  color: #1687a7;

}



.footer-column p, 

.footer-column a {

  color:  #5acbc5;

  font-size: 18px;

  text-decoration: none;

}



.language-select {

  background-color: #4fa29a;

  color: white;

  border: none;

  padding: 8px 26px 8px 10px;

  border-radius: 5px;

  font-size: 14px;

  cursor: pointer;

  margin-bottom: 10px;

}



.language-select:hover {

  background-color: #b4b4b4;

}



.copyright, .design {

  font-size: 12px;

  color: #666;

  margin-top: 6px;

}



.design a {

  color: #1687a7;

  text-decoration: none;

}



.footer-angle {

  position: absolute;

  right: 0;

  bottom: 0;

  width: 300px;

  height: 120px;

  background-color: #a6e3dc;

  clip-path: polygon(100% 0, 0 100%, 100% 100%);

  z-index: 1;

}
