body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
}

#ImgSrc{
    height: 70px;
    width: 70px;
}

.rss-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.rss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}



.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup-content button {
  margin: 10px;
  /* background-color: #007bff; */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    max-width: 300px;
}




.rss-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 400px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.rss-card:hover {
  transform: translateY(-5px);
}

.rss-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.rss-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.rss-content.no-image {
  justify-content: flex-end; /* push content to bottom */
  min-height: 180px; /* simulate space as if image existed */
}


.rss-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.rss-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.rss-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    max-width: 100px;
    margin: auto;
}

#YoutubeBtn{

  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  background-color: red;
  color: white;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;


}

#Google-btn{
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  color: white;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;

}


.rss-content button:hover {
    background-color: #0056b3;
}

select,input,#rssSearchBtn {
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
  }
  
  select:hover {
    border-color: #999;
  }
  
  select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  }
  

  .flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .flex-row label {
    font-weight: 600;
    min-width: 140px;
  }
  
  input{
    max-width: 500px;
  }
 
  #rssSearchInput:focus,
  #rssType:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  }
  

  #rssSearchBtn {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #rssSearchBtn:hover {
    background-color: #45a049;
    /* transform: scale(1.05); */
  }
  
  #rssSearchBtn:disabled {
    background-color: #aaa;
    /* cursor: not-allowed;
    transform: none; */
  }


  .rss-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    font-family: 'Segoe UI', sans-serif;
    color: #444;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  
  .rss-empty {
    text-align: center;
    padding: 50px 20px;
    color: #555;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .rss-empty-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.6;
  }
  
  .rss-empty h3 {
    margin: 0;
    font-size: 1.4rem;
  }
  
  .rss-empty p {
    margin: 5px 0 20px;
    font-size: 1rem;
  }
  
  .rss-reload-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .rss-reload-button:hover {
    background-color: #0056b3;
  }
  


  .news-heading {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
  }
  
  .news-heading h2 {
    font-size: 2rem;
    color: #222;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
  }
  
  .news-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    margin: 0 auto;
    border-radius: 2px;
  }
  

  .editor-btn {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .editor-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
  }
  