body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    width:100%;
    
  }
  
  .main-container{
  justify-self: center;
  width: 100%;
  }
  
  head {
    color: #333;
    text-align: center;
  }
  .news-ticker {
    width: 100%;
    background-color: #333;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
  }
  
  .news-ticker-content {
    display: inline-block;
    height: 10px;
    padding: 3px 0;
    animation: scrollLeft 30s linear infinite;
  }
  
  .news-ticker-content > div {
    display: inline-block;
    margin-right: 50px;
  }
  
  @keyframes scrollLeft {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  
  .news-header-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px;
  background-color:  #ffffff;/* Light background for the container */
  border-radius: 8px;
  margin-top: -40px;
  }
  
  .news-header-container::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
  }
  .news-header-container {
  -ms-overflow-style: none;  /* For Internet Explorer and Edge */
  scrollbar-width: none;    /* For Firefox */
  }
  
  /* Card styling */
  .news-heading-container {
  color: #333; /* Darker text for contrast */
  text-align: center;
  border-right:1px solid #e5e5e5 ;
  flex: 0 0 auto;
  padding:0 40px 0 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .news-heading-container h1 {
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1px;
  color: #2c3e50; /* Slightly darker blue for the heading */
  }
  
  .news-heading-container h2 {
  font-size: 0.75rem;
  margin: 0;
  font-weight: 700;
  }
  
  .news-title {
  font-size: 16px;
  font-weight: bold;
  color: #0056b3;
  margin: 0;
  }
  
  .news-items {
  display: flex;
  align-items: flex-start;
  background-color: white;
  overflow: hidden;
  border-top:1px solid #ddd ;
  }
  
  .news-images {
  flex-shrink: 0;
  width: 110px;
  height: 70px;
  object-fit: cover;
  margin: 20px 0 20px 0;
  }
  
  .news-contents {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  }
  
  .news-titles {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 0 0;
  }
  
  .news-date {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  font-weight: 500;
  }
  
  .news-date i {
  font-size: 16px;
  color: #999;
  margin-right: 5px;
  }
  
  
  .latest-news-section {
  margin: 20px ;
  padding: 0 15px;
  }
  .latest-card{
  width: 100%;
  justify-self: center;
  }
  .latest-divider{
  background-color: #ddd;
  height: 1px;
  margin-bottom: 20px;
  }
  .latest-news-header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  
  }
  .latest-news-container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  }
  .divider{
  margin: 20px 0 10px 0;
  height: 3px;
  width: 100%;
  background-color: #000;
  justify-self: center;
  }
  .news-item-card {
  height: 300px;
  width: 100%;
  margin-bottom: 20px;
  justify-self: center;
  position: relative;
  overflow: hidden;
  }
  
  .news-item-image {
  width: 100%;
  object-fit: contain;
  }
  
  .news-item-content {
  position: absolute;
  bottom: 0;
  color: white;
  background: #000;
  background: linear-gradient(to bottom, transparent 10%,  #000 90%);
  padding: 10px;
  width: 100%;
  }
  
  .news-item-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  }
  
  .news-item-date {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-top: 5px;
  color: #ddd;
  }
  
  .news-item-date i {
  font-size: 16px;
  margin-right: 5px;
  }
  
  .grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  }
  
  .card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  }
  
  .card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  }
  
  .card-content {
  padding: 10px 15px;
  }
  
  .card-content h3 {
  font-size: 18px;
  color: #0056b3;
  margin: 0 0 10px;
  line-height: 1.4;
  }
  
  .card-content h3 a {
  text-decoration: none;
  color: inherit;
  }
  
  .card-content h3 a:hover {
  text-decoration: underline;
  }
  
  .card-content .date {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  }
  
  .card-content .date i {
  margin-right: 5px;
  font-size: 16px;
  color: #999;
  }
  
  .investment-banner {
  background-color: #00C9B7;
  /* padding:0 10px 10px 10px; */
  margin: 10px 0;
  display: flex;
  width: 100%;
  justify-self: center;
  justify-content: start;
  align-items: center;
  }
  
  .banner-content {
  text-align: start;
  color: white;
  }
  
  .brand-title {
  font-size: 20px;
  margin-bottom: 10px;
  }
  
  .advisor-tagline {
  font-weight: bold;
  font-size: 16px;
  }
  
  .banner-description {
  color: #000;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  }
  
  .action-buttons {
  display: flex;
  justify-content: start;
  gap: 20px;
  }
  
  .cta-button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  }
  
  .cta-button:hover {
  text-decoration: underline;
  }
  
  .slider-news-cards {
  display: flex;
  justify-content: center; /* Center cards horizontally */
  align-items: center; /* Center cards vertically */
  gap: 10px; /* Space between cards */
  margin-bottom: 10px;
  
  }
  
  .news-card {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Stack content inside the card */
  justify-content: flex-end; /* Align content to the bottom */
  align-items: center; /* Center content horizontally */
  background-color: #f0f0f0; /* Optional background for visibility */
  }
  .news-card:hover{
  background-color: #000;
  background: linear-gradient(to bottom, transparent 10%,  #000 100%);
  }
  
  .news-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  }
  
  .news-title {
  position: relative;
  z-index: 99;
  text-align: start;
  color: white;
  background: #000;
  background: linear-gradient(to bottom, transparent 10%,  #000 90%);
  padding: 8px 12px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
  }
  
  .main-card{
    display: flex; 
    justify-content: center;
  }
  
  .ads-cards {
    width: 350px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .ad-card {
    position: relative;
    width: 150px;
    height: 200px;
  }
  
  .ad-card img {
    width: 340px;
    height: 400px;
    object-fit: fill;
  }
  
  .close-btn {
    position: absolute;
    top: 15px;
    right: -180px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
  }
  
  .close-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
  }
  .ads-card img{
      height: 220px;
      width: 100%;
  }
  
  
  
  
  @media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-news-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .main-card{
    display: block;
  }
  .news-item-card{
    /* width: 520px; */
    /* margin-top: 10px; */
  }
  }
  
  @media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden; /* Prevents horizontal scrolling */
    }
  .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* Full width on small screens */
        padding: 5px;
    }

  .latest-news-container{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* gap: 10px; */
    
  }
  .latest-card {
    width: 90%;
    margin:0 15px;
  }
  
  .news-titles {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 10px 0 0 0;
  }
  .divider{
  width: 95%;
  margin : 10px;
  }
  .main-container{
  width: 100%;
  justify-self: center;
  
  }
  .news-date {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-weight: 500;
  }
  .news-date i {
  font-size: 11px;
  color: #999;
  margin-right: 5px;
  }
  .slider-news-cards {
    display: grid;
    justify-content: center; /* Center cards horizontally */
    align-items: center; /* Center cards vertically */
    gap: 10px; /* Space between cards */
    
  }
  
  .investment-banner {
    background-color: #00C9B7;
    margin: 10px;
    display: flex;
    width: 90%;
    justify-self: center;
    justify-content: start;
    align-items: center;
  }
  .banner-description {
    color: #000;
    font-size: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    width: 80%;
  }
  
  .cta-button {
    background-color: black;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .news-item-card {
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  
  .news-card {
    position: relative;
    height: 400px;
    width: 90%;
    margin: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-color: #f0f0f0;
  }
  .news-heading-container {
  padding: 0 20px;
  }
  
  .news-heading-container h1 {
  font-size: 0.75rem;
  }
  
  .news-heading-container h2 {
  font-size: 0.75rem;
  }
  .ads-card img{
      width:350px;
      margin:0 15px;
  }
  .emptySpace{
      width:90%;
  }
  }
  
 

  