/* Universal Article Styling */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-color: #0f172a;
  --light-text: #64748b;
  --background-color: #f1f5f9;
  --border-color: #cbd5e1;
  --accent-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --header-background: #ffffff;
  --dark-bg: #0f172a;
  --card-bg: #1e293b;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --sans-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Responsive Navbar */
.top-navbar {
  background-color: var(--header-background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  right: 0;
}

.nav-container {
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  margin: 0 auto;
  max-width: 100%;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-logo-img {
    top:5%;
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--header-background);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    padding: 1rem;
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Text alignment classes */
.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-6 {
  margin-top: 2.5rem;
}

/* Author and date styling */
.author-info {
  font-weight: 600;
  color: var(--primary-color);
}

.date-info {
  font-style: italic;
}

.read-time {
  font-weight: 500;
}

/* Featured text styling */
.featured-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* Custom icon styling */
.icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Improved heading styles */
.article-content h2 {
  font-family: var(--sans-font-family);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
  letter-spacing: -0.02em;
  color: #0f172a;
  text-align: left;
}

.article-content h3 {
  font-family: var(--sans-font-family);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans-font-family);
  background-color: #f1f5f9;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}

.article-container {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 0;
  box-shadow: 0 4px 6px -1px var(--shadow-color);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 0 1rem;
}

.article-header {
  background: var(--header-background);
  color: var(--text-color);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--light-text);
  font-weight: 400;
  font-family: var(--sans-font-family);
  padding: 1rem 0;
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  margin: 1.5rem auto;
  max-width: 80%;
}

.meta-item:not(:last-child):after {
  content: "•";
  margin-left: 2rem;
  color: var(--light-text);
  font-weight: bold;
}

.article-content {
  padding: 3rem 2.5rem;
  font-family: var(--font-family);
  font-size: 1.1rem;
  color: #334155;
  max-width: 700px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 1.75rem;
  line-height: 1.7;
  text-align: justify;
}

.article-content ul {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.article-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-color);
  list-style-type: none;
  line-height: 1.6;
}

.article-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.article-content a:hover {
  text-decoration: underline;
}

.btn {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: var(--sans-font-family);
  box-shadow: 0 4px 6px -1px var(--shadow-color);
  margin: 1.5rem 0;
}

.btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px var(--shadow-color);
}

.professional-card {
  background: #f8fafc;
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 5px solid var(--primary-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px -1px var(--shadow-color);
}

.professional-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #0f172a;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  text-align:left;
}

.professional-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.professional-card ul li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-color);
  list-style-type: none;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 2rem 2.5rem;
  font-style: italic;
  color: var(--text-color);
  margin: 3rem 0;
  background: #f8fafc;
  font-family: var(--font-family);
  font-size: 1.2rem;
  line-height: 1.6;
  box-shadow: 0 2px 4px -1px var(--shadow-color);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.blockquote p {
  margin: 0;
}

.article-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-text);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 400;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 640px) {
  .article-meta {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .meta-item:not(:last-child):after {
    content: "•";
    margin-left: 1.5rem;
    color: var(--light-text);
  }
  
  .article-title {
    font-size: 2.5rem;
  }
  
  .article-content {
    padding: 3rem 2.5rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  body {
    padding: 2rem;
  }
  
  .article-container {
    margin: 3rem auto;
  }
  
  .article-header {
    padding: 3rem 2.5rem;
  }
}

/* Advertisements Label */
.ad-label {
  text-align: center;
  font-family: sans-serif;
  font-size: 1rem;
  color: #000;
  font-weight: normal;
  margin: 0.5rem 0;
  padding: 0;
  border: none;
}

/* Alert Message */
.alert-message {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  margin: 2rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

.alert-message p {
  margin: 0;
  font-size: 1.1rem;
}

/* Ad Container */
.ad-container {
  margin: 2rem 0;
  text-align: center;
}

.article-ad {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

/* Small Ads */
.small-ad {
  max-width: 400px;
  margin: 1rem auto;
  background: #878787;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.small-image-ad {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

.small-video-ad {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

/* Video Ad Container */
.video-ad-container {
  margin: 2rem auto;
  text-align: center;
  max-width: 500px;
  background: #878787;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.article-video-ad {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

/* Footer Navbar */
.footer-navbar {
  background-color: var(--header-background);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin: 0 auto 2rem;
  max-width: 800px;
}

.footer-navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-navbar li {
  margin: 0 1rem;
}

.footer-navbar a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-navbar a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Additional Styles for Articles Page */
.subheading {
  font-family: var(--sans-font-family);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--light-text);
  margin-bottom: 2rem;
  text-align: center;
}

.ad-label {
  font-family: var(--sans-font-family);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--light-text);
  text-align: center;
  margin: 2rem 0 1rem 0;
}

/* Article Grid for Latest Articles (Future Implementation) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card h3 {
  font-family: var(--sans-font-family);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #e2e8f0;
}

.article-card p {
  font-family: var(--font-family);
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-card .meta {
  font-family: var(--sans-font-family);
  font-size: 0.875rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Featured badge for articles */
.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #f093fb, #f5576c);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(240, 147, 251, 0.3);
  z-index: 10;
}

/* Enhanced button styling */
.btn {
  background: linear-gradient(90deg, #818cf8, #a78bfa);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--sans-font-family);
  box-shadow: 0 4px 10px rgba(129, 140, 248, 0.3);
  margin: 1rem 0;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(129, 140, 248, 0.5);
}

/* Dynamic Ad Styles */
.dynamic-ad-container {
  margin: 2rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.dynamic-ad-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.dynamic-article-ad {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.dynamic-article-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.small-image-ad {
  max-height: 300px;
  object-fit: cover;
}

.small-video-ad {
  max-height: 300px;
  width: 100%;
  border-radius: 8px;
}

.small-ad {
  max-width: 400px;
  margin: 1.5rem auto;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.small-ad:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.video-ad-container {
  margin: 2.5rem auto;
  text-align: center;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.video-ad-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.dynamic-ad-container .ad-label {
  font-family: var(--sans-font-family);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-align: center;
  margin: 1rem 0 0.5rem 0;
}
