Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --secondary-color: #3498db;
+ --text-color: #333;
+ --background-color: #f5f6fa;
+ --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ }
+
+ header {
+ background-color: var(--primary-color);
+ padding: 1rem;
+ position: sticky;
+ top: 0;
+ z-index: 100;
+ }
+
+ nav {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ .logo {
+ color: white;
+ font-size: 1.5rem;
+ font-weight: bold;
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 2rem;
+ }
+
+ .nav-links a {
+ color: white;
+ text-decoration: none;
+ transition: color 0.3s ease;
+ }
+
+ .nav-links a:hover {
+ color: var(--secondary-color);
+ }
+
+ .nav-links a.active {
+ color: var(--secondary-color);
+ }
+
+ .menu-toggle {
+ display: none;
+ }
+
+ .hero {
+ text-align: center;
+ padding: 4rem 1rem;
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ }
+
+ .hero h1 {
+ font-size: 2.5rem;
+ margin-bottom: 1rem;
+ }
+
+ .news-grid {
+ max-width: 1200px;
+ margin: 2rem auto;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ padding: 0 1rem;
+ }
+
+ .news-card {
+ background: white;
+ border-radius: 8px;
+ overflow: hidden;
+ box-shadow: var(--card-shadow);
+ transition: transform 0.3s ease;
+ }
+
+ .news-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .news-card img {
+ width: 100%;
+ height: 200px;
+ object-fit: cover;
+ }
+
+ .news-card-content {
+ padding: 1.5rem;
+ }
+
+ .news-card h2 {
+ font-size: 1.25rem;
+ margin-bottom: 0.5rem;
+ }
+
+ .news-source {
+ color: var(--secondary-color);
+ font-weight: 500;
+ }
+
+ .loading {
+ text-align: center;
+ padding: 2rem;
+ }
+
+ .spinner {
+ width: 40px;
+ height: 40px;
+ border: 4px solid #f3f3f3;
+ border-top: 4px solid var(--secondary-color);
+ border-radius: 50%;
+ animation: spin 1s linear infinite;
+ margin: 0 auto;
+ }
+
+ footer {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 3rem 1rem;
+ margin-top: 4rem;
+ }
+
+ .footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ }
+
+ .footer-section h3 {
+ margin-bottom: 1rem;
+ }
+
+ .footer-section ul {
+ list-style: none;
+ }
+
+ .footer-section a {
+ color: white;
+ text-decoration: none;
+ }
+
+ @keyframes spin {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(360deg); }
+ }
+
+ @media (max-width: 768px) {
+ .nav-links {
+ display: none;
+ }
+
+ .menu-toggle {
+ display: block;
+ background: none;
+ border: none;
+ cursor: pointer;
+ padding: 0.5rem;
+ }
+
+ .menu-toggle span {
+ display: block;
+ width: 25px;
+ height: 3px;
+ background-color: white;
+ margin: 5px 0;
+ transition: 0.3s;
+ }
+ }