:root {
  --primary: #ffffff;
  --secondary: #6b7280;
  --accent: #3b82f6;
  --electric: #6366f1;
  --light: #f9fafb;
  --dark: #1f2937;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #4b5563;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
    url('https://www.transparenttextures.com/patterns/clean-textile.png');
  z-index: -1;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e5e7eb !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

/* Fix for visited links in navigation */
.nav-links a:visited {
  color: #4b5563; /* Same as unvisited links */
  text-decoration: none; /* Remove underline */
}

.nav-links a:not(.logo):after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* Fix for visited state in CTA button */
.nav-cta:visited {
  color: white;
  text-decoration: none;
}

/* News Hero Section */
.news-hero {
  height: 28vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  text-align: center;
  margin-bottom: 60px;
}

.nav-links a:not(.logo):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, var(--accent), var(--electric));
    transition: var(--transition);
    border-radius: 2px;
}

.logo:after {
    display: none !important;
}

.news-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.news-hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #1f2937, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-hero p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  color: #6b7280;
}

/* News Filter Section */
.news-filters {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 25px 0;
  position: sticky;
  top: 80px;
  z-index: 999;
  margin-bottom: 40px;
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

/* News Grid */
.news-container {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Fix for visited article links */
.news-card:visited,
.featured-article:visited {
  color: inherit;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--electric);
}

.news-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.news-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.news-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #1f2937;
}



.news-excerpt {
  color: #6b7280;
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 0.95rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  margin-top: auto;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #4b5563;
}

.read-time {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Featured Article */
.featured-article {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.featured-image {
  flex: 1;
  min-height: 400px;
  background: no-repeat center center/cover;
}

.featured-content {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.featured-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #1f2937;
}

.featured-excerpt {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 35px;
  line-height: 1.8;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-author-name {
  font-weight: 600;
  color: #4b5563;
}

.featured-date {
  color: #9ca3af;
}

.cta-button {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  align-self: flex-start;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* Fix for visited state in CTA button */
.cta-button:visited {
  color: white;
  text-decoration: none;
}

/* Article Detail */
.article-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 2000;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 4vh 2vw;
}

.article-container {
  max-width: 1200px;
  width: 100%;
  margin: 5vh auto;
  padding: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.close-article {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-article:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.article-header {
  margin-bottom: 40px;
}

.article-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #1f2937;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.article-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info h4 {
  margin-bottom: 5px;
  color: #4b5563;
}

.article-date {
  color: #9ca3af;
  font-size: 0.95rem;
}

.article-image {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
}

.article-content p {
  margin-bottom: 25px;
}

.article-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  color: #1f2937;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 30px;
  margin: 30px 0;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 15px 0 0 15px;
  font-style: italic;
  color: #6b7280;
}

.article-content ul {
  margin-left: 20px;
  margin-bottom: 25px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.social-share {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-5px);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  bottom: -10px;
  left: 0;
  border-radius: 10px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1f2937;
}

.footer-text {
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fix for visited footer links */
.footer-links a:visited {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a i {
  color: var(--accent);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  gap: 15px;
}

.footer-links a:hover i {
  color: var(--electric);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #6b7280;
  font-size: 1rem;
}

/* Loading indicator */
.loading-indicator {
  text-align: center;
  padding: 50px 0;
  display: none;
}

.loader {
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Modal loader */
.modal-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  display: none;
}

.modal-loader .loader {
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .news-hero h1 {
    font-size: 3rem;
  }
  
  .featured-article {
    flex-direction: column;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-hero h1 {
    font-size: 2.5rem;
  }
  
  .article-header h1 {
    font-size: 2.2rem;
  }
  
  .article-container {
    padding: 30px 20px;
    margin: 50px auto;
  }
  
  .article-image {
    height: 300px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .featured-content {
    padding: 30px;
  }
  
  .featured-content h2 {
    font-size: 2rem;
  }
  
  .nav-cta {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Additional fix for all visited links */
a:visited {
  color: inherit;
  text-decoration: none;
}

.logo:after {
    display: none !important;
}