/* ---- Your Existing Styles (unchanged) ---- */
.tech-news-header { background-image: linear-gradient(to top, #d5cfee 0%, #fceaf7 100%); text-align: center; padding: 70px 20px;}
.tech-news-header h1 { max-width: 900px; font-size: 50px; line-height: 1.2; margin: auto;}
.tech-news-header p { font-size: 1.2rem; margin: 20px auto; max-width: 800px; line-height: 1.5; color: #333;}
.tech-news-highlight { background: linear-gradient(to right, #6366f1, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.tech-news-buttons { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;}
.tech-news-btn { padding: 0.75rem 4rem; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
.tech-news-btn.refresh-btn { background: linear-gradient(to right, #6366f1, #ec4899); color: white;}
.tech-news-btn.top-btn { background-color: #ffffff; color: #191717;}
.tech-news-btn:hover { transform: scale(1.05); opacity: 0.9;}
@media (max-width: 768px) {
  .tech-news-header { padding: 50px 16px; }
  .tech-news-header h1 { text-align: left; font-size: 2.5rem; margin-left: 10px; }
  .tech-news-header p { font-size: 1rem; }
  .tech-news-buttons { flex-direction: column; align-items: center; gap: 0.8rem; }
  .tech-news-btn { width: 100%; max-width: 320px; }
}
/* Wrapper with 3 columns */
.layout-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr 240px; /* left | middle | right */
  gap: 10px;
  max-width: 1400px;
  margin: auto;
 
}

/* Sidebars */
.sidebar {

  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

/* Main Content (Middle Column) */
.main-content {
  background: transparent;
}

#newsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.news-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  flex: 1 1 800px;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(99,102,241,0.1),
              0 10px 30px rgba(99,102,241,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  font-family: 'Roboto', sans-serif;
}

.news-card:hover {
  box-shadow: 0 10px 20px rgba(99,102,241,0.3),
              0 20px 40px rgba(99,102,241,0.15);
}

.news-card h2 {
  font-size: 1.4rem;
  color: #6366f1;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.news-card p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
  font-family: 'Roboto Mono', monospace;
}

.news-card small {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout-wrapper {
    grid-template-columns: 1fr; /* Stack */
  }
  .sidebar {
   display: none;
  }
  .news-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Default hide mobile ad */
.mobile-ad { display: none; }
.desktop-ad { display: block; }

/* When screen is below 1024px → show phone ad */
@media (max-width: 1024px) {
  .desktop-ad { display: none; }
  .mobile-ad { display: block; }
}

/* Center ads safely */
.responsive-ad {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}
/* Global */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: white;
  color: #333;
}

/* Section Heading */
.section-heading-text {
  font-size: clamp(1.75rem, 4vw, 3rem);
  /* Mobile → Desktop scaling */
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 auto 0.75rem;
  letter-spacing: -0.02em;
  font-family: "Inter", "Poppins", sans-serif;
  padding: 0 1rem;
  /* Safe padding on small screens */
  max-width: 90%;
}