<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>News Today</title>
<style>
/* Global Styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
color: #333;
overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Header */
header {
background-color: #1c1c1c;
color: white;
padding: 20px 0;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
width: 100%;
box-sizing: border-box; /* Ensure header doesn't overflow */
}
header .logo h1 {
font-size: 2.5rem;
margin-left: 20px;
letter-spacing: 2px;
}
header nav ul {
list-style: none;
display: flex;
margin-right: 20px;
}
header nav ul li {
margin: 0 20px;
}
header nav ul li a {
color: white;
text-decoration: none;
font-size: 1.2rem;
text-transform: uppercase;
}
header nav ul li a:hover {
color: #f39c12;
}
/* Main Content */
main {
margin: 30px;
}
/* Featured Section */
.featured {
display: flex;
justify-content: center;
margin-bottom: 40px;
}
.featured .article {
max-width: 800px;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.featured .article img {
width: 100%;
border-radius: 8px;
}
.featured .article h2 {
font-size: 2rem;
margin-top: 20px;
color: #333;
}
.featured .article p {
font-size: 1rem;
color: #555;
}
.featured .article a {
display: inline-block;
margin-top: 15px;
color: #f39c12;
text-decoration: none;
font-weight: bold;
}
/* Categories Section */
.categories {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 categories per row on larger screens */
gap: 40px;
margin-top: 30px;
text-align: center;
justify-items: center; /* Center categories in grid */
}
.category {
background-color: #fff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
width: 100%; /* Ensure categories take full width */
max-width: 450px; /* Set max width for categories */
height: 200px; /* Fixed height */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin: 0 auto;
}
.category:hover {
transform: scale(1.05);
}
.category h3 {
font-size: 1.5rem;
color: white;
margin: 10px 0;
}
.category p {
font-size: 1rem;
color: white;
margin: 10px 0;
text-align: center;
}
.category a {
color: white;
text-decoration: none;
font-weight: bold;
}
.category a:hover {
text-decoration: underline;
}
/* Individual Category Colors */
.world { background-color: #3498db; }
.sports { background-color: #e74c3c; }
.entertainment { background-color: #9b59b6; }
.politics { background-color: #2ecc71; }
.health { background-color: #f39c12; }
.technology { background-color: #1abc9c; }
/* Footer */
footer {
background-color: #1c1c1c;
color: white;
text-align: center;
padding: 20px;
margin-top: 50px;
width: 100%;
box-sizing: border-box; /* Ensure footer doesn't overflow */
}
/* Responsive Design */
@media (max-width: 1024px) {
.categories {
grid-template-columns: repeat(2, 1fr); /* 2 categories per row on medium screens */
gap: 30px;
}
header .logo h1 {
font-size: 2rem; /* Reduce header size */
}
}
@media (max-width: 768px) {
.categories {
grid-template-columns: 1fr; /* Stack categories on mobile */
gap: 20px;
padding: 0 10px; /* Add padding for mobile */
}
.category {
width: 80%; /* Increase category width on mobile */
height: auto; /* Auto height for better fit */
padding: 20px;
margin-left: auto;
margin-right: auto; /* Center the categories */
}
header .logo h1 {
font-size: 1.8rem; /* Reduce header size on mobile */
}
header nav ul {
flex-direction: column;
align-items: center; /* Center align nav links on mobile */
}
header nav ul li {
margin: 10px 0;
}
/* Remove extra margin and padding */
body, header, footer {
padding-right: 0;
margin-right: 0;
}
}
</style>
</head>
<body>
<header>
<div class="logo">
<h1>News Today</h1>
</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">World</a></li>
<li><a href="#">Politics</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Entertainment</a></li>
</ul>
</nav>
</header>
<main>
<section class="featured">
<div class="article featured-article">
<img src="https://via.placeholder.com/800x400" alt="Featured News">
<h2>Breaking News: Major Event Happens!</h2>
<p>Latest updates on the breaking news event happening right now...</p>
<a href="#">Read more</a>
</div>
</section>
<section class="categories">
<div class="category world">
<h3>World News</h3>
<p>Get the latest updates from around the globe. From political turmoil to global economy shifts...</p>
<a href="#">Read more</a>
</div>
<div class="category sports">
<h3>Sports</h3>
<p>All the major sports events, from football to cricket. Stay tuned for match results and highlights...</p>
<a href="#">Read more</a>
</div>
<div class="category entertainment">
<h3>Entertainment</h3>
<p>Catch up on the latest celebrity news, movie releases, and trending shows...</p>
<a href="#">Read more</a>
</div>
<div class="category politics">
<h3>Politics</h3>
<p>Get insights into political movements, upcoming elections, and leadership decisions...</p>
<a href="#">Read more</a>
</div>
<div class="category health">
<h3>Health</h3>
<p>Stay informed on the latest medical research, health tips, and wellness advice...</p>
<a href="#">Read more</a>
</div>
<div class="category technology">
<h3>Technology</h3>
<p>Breaking news in tech, new gadget reviews, and updates on innovations...</p>
<ul>
<a href="https://neonnoiseproject.com"></a>
<a href="https://littlemissfuneral.com"></a>
<a href="https://vaticfoundation.com"></a>
<a href="https://wyomingbioinformatics.org"></a>
<a href="https://modernindianman.com"></a>
<a href="https://pimpmyexcel.com"></a>
<a href="https://americanhints.com"></a>
<a href="https://stepball.co"></a>
<a href="https://racerxcustoms.com"></a>
<a href="https://neatcelltattooremovalpen.com"></a>
<a href="https://invisionartworks.com"></a>
<a href="https://elitegolfgraphics.com"></a>
<a href="https://canwestgames.com"></a>
<a href="https://webi-whatsapp.com"></a>
<a href="https://brockleybuilders.com"></a>
<a href="https://jammuescortservice.in">Jammu escorts service & escort service in jammu</a>
<a href="https://officialwholemelts.com"></a>
<a href="https://kidsts.com"></a>
<a href="https://mechanictoolsworld.com"></a>
<a href="https://callgirlsjammu.com"></a>
<a href="https://maxplumbingservices.com.au"></a>
<a href="https://viralbasket.com"></a>
<a href="https://brownsvilleconcreteservices.com"></a>
<a href="https://bpr-striping.com"></a>
<a href="https://lanceslinepainting.com"></a>
<a href="https://desertstripes.com"></a>
<a href="https://difilippoholisticlaw.com"></a>
<a href="https://angiesrestaurantlittletonco.com"></a>
<a href="https://jo-elflorist.com"></a>
<a href="https://perduelawoffice.com"></a>
<a href="https://canobiefan.com"></a>
<a href="https://futureleaderstoday.org"></a>
<a href="https://genderpower.org"></a>
<a href="https://mapkl.org"></a>
<a href="https://tiretec.pro"></a>
<a href="https://treeo-life.com"></a>
<a href="https://suffolkjournal.co.uk"></a>
<a href="https://cambridgejournal.co.uk"></a>
<a href="https://manchestermag.co.uk"></a>
<a href="https://voicebeautycenter.com"></a>
<a href="https://rambhai.com"></a>
<a href="https://miamifirstbrethren.org"></a>
<a href="https://shoottheball.net"></a>
<a href="https://infissipvcroma.it"></a>
<a href="https://ottawaccs.com"></a>
<a href="https://birminghammag.co.uk"></a>
<a href="https://topnewsmags.com"></a>
<a href="https://escort-viva.net"></a>
<a href="https://casinoliveprenium.casino"></a>
<a href="https://privatedpoker.casino"></a>
<a href="https://plantiumroutelle.casino"></a>
<a href="https://kingofbaccarat.casino"></a>
<a href="https://thepokerstar.casino"></a>
<a href="https://slotgameinvegas.casino"></a>
<a href="https://macauparaside.casino"></a>
<a href="https://casinoliveclub.casino"></a>
<a href="https://clubofpoker.casino"></a>
<a href="https://casinothefive.casino"></a>
</ul>
<a href="#">Read more</a>
</div>
</section>
</main>
<footer>
<p>© 2025 News Today. All rights reserved.</p>
</footer>
</body>
</html>