﻿/* Define the palettes as maps */
/* Mixin to generate CSS custom properties from a color map */
/* Apply themes as classes */
.light-mode {
  --hero-color: rgb(11, 70, 80);
  --hero-contrast: rgb(80, 21, 11);
  --inverse-hero: white;
  --inverse-contrast: #151515;
  --plain-text: black;
  --bg-color: white;
  --inverse-text-color: white;
  --highlight1: rgba(11, 70, 80, 0.2);
  --highlight2: rgba(11, 70, 80, 0.15);
  --highlight3: rgba(11, 70, 80, 0.1);
  --link-hover: rgb(34, 88, 195);
  --cta-block-1-bg: rgba(11, 70, 80, 0.2);
  --cta-block-2-bg: rgba(11, 70, 80, 0.15);
  --cta-block-3-bg: rgba(11, 70, 80, 0.1);
  --tinted-bg: rgba(11, 70, 80, 0.1);
  --tinted-bg-2: rgba(11, 70, 80, 0.1);
  --tinted-bg-3: rgba(11, 70, 80, 0.2);
  --complimentary70: rgb(80, 21, 11);
  --thumbnail-background: rgba(0, 0, 0, 0);
  --sidebar-bg: rgba(255, 255, 255, 0.4);
  --edge-fade-color: #e8ecec;
}

.dark-mode {
  --hero-color: white;
  --hero-contrast: rgba(179, 47, 25, 0.7);
  --inverse-hero: rgb(11, 70, 80);
  --inverse-contrast: rgb(80, 21, 11);
  --plain-text: white;
  --bg-color: rgb(85, 85, 85);
  --inverse-text-color: rgb(11, 70, 80);
  --highlight1: rgba(165, 231, 243, 0.8);
  --highlight2: rgba(165, 231, 243, 0.75);
  --highlight3: rgba(165, 231, 243, 0.7);
  --link-hover: rgb(34, 88, 195);
  --cta-block-1-bg: rgba(165, 231, 243, 0.8);
  --cta-block-2-bg: rgba(165, 231, 243, 0.75);
  --cta-block-3-bg: rgba(165, 231, 243, 0.7);
  --tinted-bg: rgba(11, 70, 80, 0.7);
  --tinted-bg-2: rgb(72, 114, 121);
  --tinted-bg-3: rgb(72, 114, 121);
  --complimentary70: rgba(179, 47, 25, 0.7);
  --thumbnail-background: white;
  --sidebar-bg: rgba(0, 0, 0, 0.5);
  --edge-fade-color: #254951;
}

.news-page-title-container {
  margin: 0;
  padding: 16px;
  text-align: center;
  background-color: var(--tinted-bg);
}

.news-page-title {
  color: var(--hero-color);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}

.news-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 500px;
  padding-right: 500px;
  background-color: var(--tinted-bg);
}
@media (max-width: 1600px) {
  .news-gallery-wrapper {
    padding-left: 100px;
    padding-right: 100px;
  }
}
@media (max-width: 1050px) {
  .news-gallery-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 600px) {
  .news-gallery-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.news-article-wrapper {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}
.news-article-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.news-article-wrapper .article-headline {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--hero-color);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}
.news-article-wrapper .article-summary {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--plain-text);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}
.news-article-wrapper .article-content {
  font-size: 0.95rem;
  color: var(--plain-text);
  line-height: 1.6;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}

@keyframes glowHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 70, 80, 0.6);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(11, 70, 80, 0.75);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 70, 80, 0.1);
  }
}
.highlight-glow {
  animation: glowHighlight 3s ease forwards;
  border-radius: 8px;
}

@media (max-width: 1600px) {
  .news-article-wrapper {
    padding: 1.75rem;
  }
  .news-article-wrapper .article-headline {
    font-size: 1.3rem;
  }
  .news-article-wrapper .article-summary {
    font-size: 0.95rem;
  }
  .news-article-wrapper .article-content {
    font-size: 0.9rem;
  }
  .news-gallery-wrapper {
    gap: 1.8rem;
  }
}
@media (max-width: 1050px) {
  .news-article-wrapper {
    padding: 1.5rem;
  }
  .news-article-wrapper .article-headline {
    font-size: 1.2rem;
  }
  .news-article-wrapper .article-summary {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .news-article-wrapper .article-content {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .news-gallery-wrapper {
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .news-page-title-container {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .news-article-wrapper {
    padding: 1rem;
  }
  .news-article-wrapper .article-headline {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .news-article-wrapper .article-summary {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }
  .news-article-wrapper .article-content {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .news-gallery-wrapper {
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .news-page-title-container {
    padding: 8px;
  }
  .news-page-title {
    font-size: 1.5rem;
  }
}
