body {
    font-family: Arial, sans-serif;
    background: black; /* Black background for the entire page */
    color: #fff; /* White text for contrast */
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    min-height: 100vh; /* Ensures full-page height */
    
}

.main-container { /* The wrapper for your content */
  flex-grow: 1; /* Pushes the ticker to the bottom */
}

/* Universal Section Styling */
.section {
  padding: 40px 20px;
  text-align: center;
}

/* Hero section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;    
    padding: 10px 10px 10px; /* Reduce bottom padding from, say, 80px to 20px */
    margin-top: 0px; /* Adjust as needed */
    margin-bottom: 10px;    
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    background: url('../images/rik-tech1.png') no-repeat center center;
    background-position: center bottom;
    background-size: cover;
    min-height: 600px;  
    border: none;
    outline: 2px solid #CC7700;  
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(204, 119, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: bottom 1px;;
    text-align: center;
    color: #edeae1;
}



.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #CC7700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.hero-btn {
    text-decoration: none;
    color: #edeae1;
    background: #CC7700; /* Creamish white */
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.hero-btn:hover {
    background: #ff9800;
}

.hero-btn:last-child {
    background-color: #007bff;  /* a nice blue for Trending Tech News */
    color: #edeae1;
}

.hero-btn:last-child:hover {
    background-color: #005f99;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        background-position: center center;
        background-size: cover;
        min-height: 400px;
        padding: 20px;
    }
  }

@media (max-width: 768px) {
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 10px;
    width: 100%;
   
  }

  .hero-buttons .hero-btn:nth-child(5) {
    grid-column: span 2; /* last button spans both columns */
    justify-self: center;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95rem;    
  }
}



/* Must Know Styles */
.must-know-section {
  background-color: black;
  padding: 2.5rem 1rem; /* slightly reduced padding */
}

.must-know-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #EDEAE1;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2rem;
  text-align: center;  
}

.must-know-section h2 {
  font-size: 2rem; /* slightly reduced */
  font-weight: bold;
  color: #333;
  margin-bottom: 2.5rem;
}

.card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem; /* slightly tighter gap */
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px 10px 10px 10px;
  transition: transform 0.3s ease;
  margin-top: 30px; /* ⭐ slight downward push */
  margin-left: 20px; /* Adds space between the image and the left edge of the card */
}


.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 16px; /* tighter content padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.card-content .meta-description{
  font-size: 0.9rem; /* slightly smaller text */
  color: #666;
  margin-bottom: 14px;
  line-height: 1.4;
}

.card-content .read-more {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 6px 12px; /* smaller button */
  margin-top: 0.8rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
  align-self: flex-start;
}

.card-content .read-more:hover {
  text-decoration: underline;
  background-color: #0056b3;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr; /* Single column */
    gap: 1rem;
  }

  .must-know-wrapper {
    max-width: 100%;
    margin: 0;
    background-color: transparent; /* or white if needed */
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
    text-align: center;
  }

  .must-know-section h2 {
    font-size: 1.5rem; /* smaller for mobile */
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
  }

  .card {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
  }

  .card img {
    width: 90%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
  }

  .card-content {
    padding: 1.2rem;
    width: 100%;
  }

  .card-content h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .card-content .meta-description {
    font-size: 1rem;
  }

  .card-content .read-more {
    font-size: 1rem;
    align-self: center;
  }
}


