/* ==========================
   News API Demo 
   ========================== */

.news-demo {
	max-width: 1000px;
	margin: 3rem auto;
	padding: 1.5rem;
	background: rgb(213, 216, 231);
	border-radius: 16px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.news-demo h2 {
	margin-top: 0;
	color: #00796b;
	text-align: center;
}

.news-intro {
	text-align: center;
	font-size: 1rem;
	color: #831717;
	margin-bottom: 2rem;
	line-height: 1.6;
}

/* Controls */
.news-controls {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.news-controls input {
	padding: 0.6rem 0.8rem;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 0.95rem;
	min-width: 260px;
}

.news-controls input:focus {
	outline: none;
	border-color: #00796b;
	box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.2);
}

.demo-button {
  	display: inline-block;
  	padding: 0.8rem 1.6rem;
  	background: #0077b6;
  	color: #fff;
  	text-decoration: none;
  	border-radius: 6px;
  	font-weight: 600;
  	transition: background 0.3s ease, transform 0.2s ease;
}

.demo-button:hover {
  	background: #005f8a;
  	transform: translateY(-1px);
}
.demo-button button:disabled {
  	opacity: 0.6;
  	cursor: not-allowed;
}
/* Status */
.news-status {
	text-align: center;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: #00796b;
}

/* Results Grid */
.news-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

/* Article Card */
.news-card {
	background: #f9fafb;
	border-radius: 14px;
	padding: 1.2rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.news-card h3 {
	margin-top: 0;
	font-size: 1.1rem;
	color: #004d40;
}

.news-card p {
	font-size: 0.95rem;
	color: #444;
	line-height: 1.5;
	margin-bottom: 1rem;
}

.news-card a {
	align-self: flex-start;
	text-decoration: none;
	font-weight: bold;
	color: #00796b;
}

.news-card a:hover {
	text-decoration: underline;
	color: #004d40;
}