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

@font-face {
  font-family: Riotous;
  src: url(Fonts/NeoSansProMedium.OTF);
}

@font-face {
  font-family: Author;
  src: url(Fonts/EliotHeadline-Regular.ttf);
}

body {
  font-family: "Knowledge", Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  cursor: url(img/background/cursors/Cursor.svg),
    url(img/background/Pointer.svg), pointer;
  user-select: none;
  -moz-user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Reuters-style header */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
  background-color: #000;
  height: 2.2dvw;
  color: white;
  font-size: 1.6dvw;
  overflow: hidden;
  position: relative;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #000;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 3dvw;
  gap: 0.5dvw;
}

.ticker-symbol {
  font-weight: 700;
  color: #fff;
}

.ticker-price {
  color: #fff;
}

.ticker-change {
  font-weight: 600;
}

.ticker-change.positive {
  color: #00ff00;
}

.ticker-change.negative {
  color: #ff0000;
}

.ticker-separator {
  color: #666;
  margin: 0 1dvw;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.market-bar {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1dvw;
  gap: 2dvw;
}

.market-items {
  display: flex;
  gap: 2dvw;
  flex-wrap: wrap;
  align-items: center;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 0.3dvw;
  font-weight: 500;
}

.market-symbol {
  color: #333;
  font-weight: 600;
}

.market-value {
  color: #333;
}

.market-change {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2dvw;
}

.market-change.positive {
  color: #0a8500;
}

.market-change.negative {
  color: #d62e1f;
}

.market-change::before {
  content: "▲";
}

.market-change.negative::before {
  content: "▼";
}

.market-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3dvw;
  white-space: nowrap;
}

.market-link::before {
  content: "▶";
  font-size: 0.7dvw;
}

.market-link:hover {
  text-decoration: underline;
  cursor: url(img/background/cursors/Pointer1.svg), pointer;
}

/* Featured content bar (podcast-style) */
.featured-bar {
  background-color: #f4ede4;
  border-bottom: 1px solid #e0d5c7;
  padding: 12px 20px;
  overflow-x: auto;
  overflow-y: hidden;
}

.featured-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2dvw;
  max-width: 1280px;
  margin: 0 auto;
}

.featured-icon {
  font-size: 2dvw;
  color: #666;
  flex-shrink: 0;
}

.featured-label {
  font-size: 2dvw;
  font-weight: 100;
  color: #333;
  margin-right: 4px;
  white-space: nowrap;
  text-decoration: none;
}

.featured-label:hover {
  text-decoration: none;
}

.featured-separator {
  color: #999;
  margin: 0 8px;
}

.featured-title {
  font-size: 1.2dvw;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.featured-title:hover {
  color: #000;
  text-decoration: underline;
  cursor: url(img/background/cursors/Pointer1.svg), pointer;
}

.featured-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: url(img/background/cursors/Pointer1.svg), pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color 0.2s;
}

.featured-close:hover {
  color: #000;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  font-family: Riotous;
  color: black;
  text-decoration: none;
  letter-spacing: -0.5px;
  cursor: url(img/background/cursors/Pointer1.svg),
    url(img/background/Pointer.svg), pointer;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-size: 1.6dvw;
  font-weight: 400;
  transition: all 0.2s;
  text-transform: capitalize;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: black;
  border-bottom-color: #ff8000;
  border-bottom-width: thick;
  cursor: url(img/background/cursors/Pointer1.svg), pointer;
}

/* Main content area */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Quote section styled like Reuters article */
.quote-container {
  max-width: 800px;
  width: 100%;
  background: #fff;
  padding: 10px;
  border-left: 4px solid #ff8000;
  margin-bottom: 0px;
}

.quote-label {
  font-size: 1.5dvw;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0px;
  font-weight: 600;
}

.quote-text {
  font-size: 2dvw;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 0px;
  font-weight: 400;
}

.quote-author {
  font-size: 3vw;
  color: #666;
  font-family: Author;
  font-style: italic;
  padding-left: 20px;
  border-left: 2px solid #e0e0e0;
}

/* Reuters-style button */
.action-button {
  background-color: #faa61a;
  color: black;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.6dvw;
  margin: 4px 2px;
  border: 4px solid #00becd;
}

.action-button {
  border-radius: 10px;
}

.action-button:hover {
  border: 4px solid #faa61a;
  background-color: #00becd;
  color: white;
  cursor: url(img/background/Pointer.svg), pointer;
}

/* Footer */
.footer {
  background-color: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 1.1dvw;
  margin-top: auto;
}

.footer a {
  padding: 10px;
  color: black;
  text-decoration: none;
}

.footer a:hover {
  cursor: url(img/background/cursors/Pointer.svg), pointer;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    gap: 16px;
  }

  .quote-text {
    font-size: 20px;
  }

  .quote-container {
    padding: 0px;
  }
}

/* Loading animation */
.loading {
  color: #999;
  font-style: italic;
}
