* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.nav-container {
 position: sticky;
 top: 0;
 z-index: 1000;
 display: flex;
 justify-content: flex-start;
 align-items: center;
 overflow-x: auto;
 white-space: nowrap;
 padding: 10px;
 background: #1a73e8;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
 display: flex;
 flex-direction: row;
 gap: 16px;
 padding: 0;
 margin: 0;
 list-style: none;
}

.nav-menu li {
 flex: 0 0 auto;
}

.nav-menu a {
 display: inline-block;
 color: white;
 font-size: 14px;
 padding: 6px 10px;
 white-space: nowrap;
}

.nav-container::after {
 content: "";
 position: absolute;
 right: 0;
 top: 0;
 width: 20px;
 height: 100%;
 background: linear-gradient(to right, transparent, #1a73e8);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
 text-align: center;
 padding: 70px 20px;
 background: linear-gradient(135deg, #1a73e8, #00c6ff);
 color: white;
}

.hero h1 {
 font-size: 2em;
 margin-bottom: 10px;
}

.hero p {
 font-size: 1.1em;
 opacity: 0.9;
 margin-bottom: 1rem;
}

.btn-primary {
 display: inline-block;
 margin-top: 20px;
 background: white;
 color: #1a73e8;
 padding: 12px 22px;
 border-radius: 8px;
 font-weight: bold;
 text-decoration: none;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.article-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #3498db;
}

.article-card p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.newsletter {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.newsletter h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.newsletter p {
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.hero {
 text-align: center;
 padding: 60px 20px;
 background: linear-gradient(135deg, #1a73e8, #00c6ff);
 color: white;
}

.hero h2 {
 font-size: 2em;
 margin-bottom: 1rem;
}

.hero p {
 font-size: 1.2rem;
 margin-bottom: 2rem;
}

.btn {
 display: inline-block;
 margin-top: 20px;
 background: white;
 color: #1a73e8;
 padding: 15px 30px;
 border-radius: 8px;
 font-weight: bold;
 text-decoration: none;
 transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.features {
 display: flex;
 gap: 20px;
 justify-content: center;
 margin: 40px 0;
 flex-wrap: wrap;
}

.features .card {
 background: white;
 padding: 30px;
 border-radius: 12px;
 box-shadow: 0 5px 15px rgba(0,0,0,0.08);
 text-align: center;
 min-width: 200px;
 transition: transform 0.3s;
}

.features .card:hover {
 transform: translateY(-5px);
}

.latest {
 padding: 40px 20px;
 max-width: 1200px;
 margin: 0 auto;
}

.latest h2 {
 text-align: center;
 margin-bottom: 2rem;
 font-size: 2rem;
 color: #2c3e50;
}

footer {
 text-align: center;
 padding: 30px 20px;
 background: #111;
 color: white;
 margin-top: 60px;
}

/* Navigation styling */
header {
 background: #2c3e50;
 color: white;
 padding: 1rem 2rem;
 position: sticky;
 top: 0;
 z-index: 100;
}

header h1 {
 margin: 0;
 font-size: 1.5rem;
 display: inline;
 margin-right: 2rem;
 vertical-align: middle;
}

header nav {
 display: inline;
 vertical-align: middle;
}

header nav a {
 display: inline-block;
 color: white;
 font-weight: bold;
 text-decoration: none;
 padding: 8px 15px;
 margin: 0 5px;
}

header nav a:hover {
 text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
 .hero {
   padding: 50px 15px;
 }

 .hero h1 {
   font-size: 1.6em;
 }

 .nav-menu {
   gap: 12px;
 }

 header {
   text-align: center;
 }

 header h1 {
   display: block;
   margin-right: 0;
   margin-bottom: 1rem;
 }

 header nav {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
 }

 .features {
   flex-direction: column;
   align-items: center;
 }

 .features .card {
   width: 80%;
   max-width: 300px;
 }

 .btn-primary {
   padding: 12px 24px;
   font-size: 1rem;
 }

 .newsletter-form {
   flex-direction: column;
 }
}