:root {
    --primary-color: #05192a;
    --secondary-color: #1b8062;
    --background-color: #062436;
    --surface-color: #0e3446;
    --text-color: #e0f2f1;
    --text-muted: #88c0c1;
    --accent-color: #1b8062;
    --border-color: #1a5365;
    --card-bg: #0e3446;
    --hover-color: #1c60756e;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Source Sans Pro', sans-serif;

     /* Gradient colors - System Dark */
     --gradient-start: 5 25 42;
     --gradient-middle: 14 52 70;
     --gradient-end: 6 36 54;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 2%) 0 0,
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 2%) 8px 8px,
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(
            125deg,
            rgb(var(--gradient-start)) 0%,
            rgb(var(--gradient-middle)) 25%,
            rgb(var(--gradient-end)) 50%,
            rgb(var(--gradient-middle)) 75%,
            rgb(var(--gradient-start)) 100%
        );
    background-size: 16px 16px, 16px 16px, 32px 32px, 32px 32px, 400% 400%;
    background-position: 0 0, 8px 8px, 0 0, 0 0, 0 0;
}


iframe {
   margin-top: 5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container.main {
    min-height: 80vh;
}


/* Header Styles */
header {
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    transition: padding 0.3s ease;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

.brand h1,
.footer-brand h2 {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    max-width: 400px;
    transition: opacity 0.3s ease, margin 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    height: 40px;
    align-self: flex-start;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.3s;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 0;
}

/* Featured Section */
.featured-section {
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.featured-main {
    grid-column: 1 / -1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

/* Article Cards */
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.article-card.list {
    display: flex;
    flex-direction: row;
}

.article-card.list img {
    width: 250px;
    object-fit: cover;
}

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

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h2 {
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-content h3 {
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    font-weight: 500;
}
.article-content h2 a,
.featured-content h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.article-content h2 a:hover {
    color: var(--accent-color);
}

.article-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.article-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li::marker { 
    color: var(--accent-color);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-color-light);
  font-size: 0.9rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.article-meta .author,
.article-meta .date {
  display: flex;
  align-items: center;
}

.article-meta .date::before {
  content: '•';
  margin-right: 1rem;
  opacity: 0.5;
}
.article-excerpt {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.share-buttons-container {
  display: flex;
  gap: 0.5rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-color-light);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.share-button:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.share-button i {
  font-size: 1rem;
}

.share-button.twitter:hover {
  color: #1DA1F2;
}

.share-button.linkedin:hover {
  color: #0077B5;
}

.share-button.email:hover {
  color: #EA4335;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-meta {
    gap: 0.75rem;
  }
  
  .share-buttons {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }
  
  .share-button {
    width: 28px;
    height: 28px;
  }
  
  .share-button i {
    font-size: 0.9rem;
  }
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tag:hover {
    background-color: var(--hover-color);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
    padding: 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-family: var(--body-font);
    font-weight: 500;
}

.recent-post-content a {
    color: var(--text-color);
    text-decoration: none;
}

.recent-post-content a:hover {
    color: var(--accent-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tag-cloud .tag:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 500px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

.footer-brand .tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
}

.footer-links h3 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Single Article Page */
.single-article {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}


.single-article .view-count {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.single-article .view-count i {
    font-size: 0.8rem;
}

.article-hero {
    margin: -2rem -2rem 2rem;
    position: relative;
}

.image-source-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 19px;
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;  
    opacity: 0.7;
    line-height: .6rem;
}

.image-source-icon:hover {
    opacity: 1;
} 

.image-source-icon a {
    color: var(--text-muted);
    text-decoration: none;
}
.image-source-icon i {
    font-size: 0.6rem;
}

.cover-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Article Sources */
.article-sources {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(0);
}

.article-sources h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-sources h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.article-sources h2:hover::after {
  width: 120px;
}

.sources-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.source-journey {
  position: relative;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--background-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.source-journey:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.source-journey:hover .path-line,
.source-journey:hover .path-arrow {
  opacity: 0.6;
  background-color: var(--accent-color);
}

.source-stage {
  flex: 1;
  position: relative;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.stage-number {
  width: 32px;
  height: 32px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.source-journey:hover .stage-number {
  transform: scale(1.1);
}

.stage-header h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--text-color);
  margin: 0;
  transition: color 0.3s ease;
}

.source-journey:hover .stage-header h3 {
  color: var(--accent-color);
}

.source-card {
  background: var(--surface-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-color);
  transition: height 0.3s ease;
}

.source-card:hover {
  transform: translateY(-2px) translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.source-card:hover::before {
  height: 100%;
}

.source-card h4 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
}

.source-card h4 a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.source-card:hover h4 a {
  color: var(--accent-color);
  transform: translateX(8px);
}

.source-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.source-card:hover .source-meta {
  transform: translateX(8px);
}

.source-meta i {
  margin-right: 0.25rem;
  transition: transform 0.3s ease;
}

.source-card:hover .source-meta i {
  transform: scale(1.2);
  color: var(--accent-color);
}

.source-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  transition: transform 0.3s ease;
}

.source-card:hover .source-description {
  transform: translateX(8px);
}

.subsources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journey-path {
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.path-line {
  flex-grow: 1;
  width: 2px;
  background: var(--accent-color);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.path-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-color);
  opacity: 0.3;
  transition: all 0.3s ease;
  position: relative;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Research Transition */
.research-transition {
  margin: 4rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.research-transition .transition-icon i {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.research-transition.visible .transition-icon i:nth-child(1) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.research-transition.visible .transition-icon i:nth-child(2) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

.research-transition.visible .transition-icon i:nth-child(3) {
  transition-delay: 0.7s;
  opacity: 1;
  transform: translateY(0);
}

.transition-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color) 20%,
    var(--accent-color) 80%,
    transparent
  );
  opacity: 0.3;
}

.transition-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent-color);
  font-size: 1.5rem;
}

.transition-icon i:nth-child(2) {
  font-size: 1rem;
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-family: var(--body-font);
    font-weight: 400;
}

.about-header img {
    max-width: 150px;
    height: auto;
    margin: 2rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-family: var(--body-font);
    font-weight: 400;
}

.about-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.about-list {
    list-style: none;
    padding-left: 1.5rem;
}

.about-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.about-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
    font-size: 1.2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.value-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.value-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.value-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-family: var(--body-font);
    font-weight: 400;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.breadcrumbs .current {
    color: var(--text-color);
    font-weight: 500;
}

/* Intro Banner */
.intro-banner {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 2rem 0;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.banner-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-content {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 90%;
}

.banner-text {
    flex: 1;
}

.banner-logo {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    z-index: 0;
}

.banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.intro-banner h2 {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.intro-banner p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.intro-banner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    max-width: 400px;
}

.intro-banner ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.intro-banner ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0.5rem;
}

.dismiss-banner {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: color 0.2s ease;
    z-index: 2;
}

.dismiss-banner:hover {
    color: var(--text-color);
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Privacy Policy Page */
.privacy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-header h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.privacy-section ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -0.5rem;
}

.privacy-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-section a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Terms of Service Page */
.terms-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.terms-header h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.terms-header .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.terms-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-section ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    line-height: 1.5;
}

.terms-section ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -0.5rem;
}

.terms-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-section a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Make both privacy and terms pages consistent */
.privacy-container,
.terms-container {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.privacy-header,
.terms-header {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.privacy-header::after,
.terms-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: var(--border-color);
}

.privacy-section,
.terms-section {
    padding: 0 1rem;
}

.privacy-section h2,
.terms-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section h2::before,
.terms-section h2::before {
    content: "";
    width: 4px;
    height: 1.5rem;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Article Reactions */
.article-reactions {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reactions-title {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.reactions-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 1;
}

.reaction-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  background: var(--background-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  transform-origin: center;
  opacity: 1;
  color: var(--text-color);
}

.reaction-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.reaction-button.active {
  background: var(--accent-color-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.reaction-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: transparent;
}

.reaction-button.disabled:hover {
  transform: none;
  border-color: transparent;
}

.reaction-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.reaction-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color-light);
}

.reaction-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--surface-color-dark);
  color: var(--text-color-inverse);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

.reaction-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface-color-dark);
}

.reaction-button:hover .reaction-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Animations */
@keyframes reactionPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes reactionBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes reactionPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.reaction-button:hover .reaction-icon {
  animation: reactionBounce 0.5s ease;
}

.reaction-button.active .reaction-icon {
  animation: reactionPop 0.3s ease;
}

.reaction-button.active {
  animation: reactionPulse 1s ease;
}

.reaction-count.animate {
  animation: countChange 0.3s ease-out;
}

@keyframes countChange {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Success animation */
@keyframes successPop {
  0% { transform: scale(1); }
  10% { transform: scale(1.2); }
  20% { transform: scale(0.9); }
  30% { transform: scale(1.1); }
  40% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  60% { transform: scale(0.98); }
  70% { transform: scale(1.02); }
  80% { transform: scale(0.99); }
  90% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.reaction-button.success {
  animation: successPop 0.8s ease;
}

/* Error state */
.reaction-button.error {
  animation: errorShake 0.5s ease;
  border-color: var(--error-color);
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Active state glow effect */
.reaction-button.active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(var(--accent-rgb), 0.4),
    rgba(var(--accent-rgb), 0.1)
  );
  border-radius: 10px;
  z-index: -1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reactions-container {
    gap: 1rem;
  }

  .reaction-button {
    padding: 0.5rem 1rem;
  }

  .reaction-icon {
    font-size: 1.25rem;
  }
}

/* Article Engagement */
.article-engagement {
  max-width: 800px;
  margin: 3rem auto;
}

/* Share Buttons */
.share-buttons {
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.share-label {
  display: block;
  text-align: center;
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.share-buttons-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background-color);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.share-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.share-button i {
  font-size: 1.2rem;
}

.share-button.twitter:hover {
  border-color: #1DA1F2;
  color: #1DA1F2;
}

.share-button.linkedin:hover {
  border-color: #0077B5;
  color: #0077B5;
}

.share-button.email:hover {
  border-color: #EA4335;
  color: #EA4335;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .share-buttons {
    padding: 1rem;
  }
  
  .share-label {
    font-size: 1rem;
  }
  
  .share-button {
    width: 36px;
    height: 36px;
  }
  
  .share-button i {
    font-size: 1rem;
  }
}

.back-button {
  position: fixed;
  display: flex;
  text-align: center;
  width: 80px;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-button:hover {
    color: var(--text-color);
    background: var(--hover-color);
}

.back-button i {
    font-size: 0.8rem;
}

/* Search Bar Styles */
.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(27, 128, 98, 0.1);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--body-font);
    padding: 0;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.75rem;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: var(--secondary-color);
    transform: translateX(2px);
}

.search-button i {
    font-size: 1rem;
}

/* Search Results Styles */
.search-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.search-info {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-form-container {
    margin-bottom: 3rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-results .article-card {
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-results .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.search-results .article-content {
    flex: 1;
}
