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

body {
  font-family: 'Roboto', sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: #f7f9fa;
}

a {
  color: #0055a5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #0055a5;
}

.nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #0055a5;
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  background-image: url('./images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 85, 165, 0.7), rgba(42, 175, 176, 0.7));
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 1rem;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  color: #0055a5;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: #0055a5;
  color: #ffffff;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.grid-item h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0055a5;
}

.grid-item p {
  flex: 1;
  margin-bottom: 1.5rem;
}

/* Sentiment tags styling */
.sentiment .tags {
  margin-bottom: 1rem;
}
.sentiment .tags span {
  display: inline-block;
  background-color: #eaf3fb;
  color: #0055a5;
  padding: 0.3rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Sentiment spread table styling */
.sentiment-spread {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem 0;
  font-size: 0.85rem;
}
.sentiment-spread th,
.sentiment-spread td {
  padding: 0.5rem;
  border: 1px solid #e5e8ec;
  text-align: left;
}
.sentiment-spread th {
  background-color: #0055a5;
  color: #ffffff;
  font-weight: 600;
}
.sentiment-spread tbody tr:nth-child(even) {
  background-color: #f5f7fa;
}

/* Sentiment section (full width) */
.sentiment-section {
  background-color: #ffffff;
  padding: 4rem 0;
  border-top: 1px solid #e5e8ec;
}
.sentiment-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #0055a5;
  margin-bottom: 1rem;
  text-align: center;
}
.sentiment-section .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}
.sentiment-section .tags span {
  display: inline-block;
  background-color: #eaf3fb;
  color: #0055a5;
  padding: 0.3rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}
.sentiment-section p,
.sentiment-section ul {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  color: #444;
  font-size: 1rem;
}
.sentiment-section h4 {
  max-width: 800px;
  margin: 1.5rem auto 0.5rem auto;
  font-size: 1.2rem;
  color: #0055a5;
  font-family: 'Montserrat', sans-serif;
}
.sentiment-section ul li {
  list-style: disc inside;
  margin-bottom: 0.5rem;
}
.sentiment-section table.sentiment-spread {
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

.cta {
  align-self: flex-start;
  background-color: #0055a5;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background-color: #2aafb0;
}

/* Market Data */
.market-data {
  background-color: #ffffff;
  padding: 3rem 0;
  border-top: 1px solid #e5e8ec;
}
.market-data h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #0055a5;
  margin-bottom: 1rem;
  text-align: center;
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 700px;
  background-color: #f7f9fa;
}
.market-table th,
.market-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e8ec;
  text-align: left;
}
.market-table th {
  background-color: #0055a5;
  color: #ffffff;
  font-weight: 600;
}
.market-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}
.market-time,
.disclaimer-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}
.disclaimer-text {
  font-style: italic;
}

/* Long‑Form Section */
.long-form {
  background-color: #f7f9fa;
  padding: 4rem 0;
}
/* Layout for long-form container */
.long-form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.main-content {
  flex: 2;
  min-width: 60%;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.sidebar {
  flex: 1;
  min-width: 280px;
  background-color: #fffdf7;
  border: 1px solid #f0e6d6;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.main-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #0055a5;
  margin-bottom: 1rem;
}
.main-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: #0055a5;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.main-content p {
  margin-bottom: 1rem;
  color: #444;
  font-size: 1rem;
}
.main-content blockquote {
  font-style: italic;
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid #0055a5;
  color: #555;
}
.dividend-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}
.dividend-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.9rem;
}
.dividend-table th,
.dividend-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e8ec;
  text-align: left;
}
.dividend-table th {
  background-color: #0055a5;
  color: #ffffff;
  font-weight: 600;
}
.dividend-table tbody tr:nth-child(even) {
  background-color: #f5f7fa;
}
.takeaway {
  font-weight: 600;
  margin-top: 1rem;
}

/* Responsive video wrapper for embedded videos */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Sidebar elements */
.book-cover-sidebar {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.ad-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #0055a5;
  margin-bottom: 0.5rem;
}
.ad-section p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.ad-section iframe {
  width: 100%;
}

/* Portfolio Section */
.portfolio-section {
  background-color: #ffffff;
  padding: 4rem 0;
  border-top: 1px solid #e5e8ec;
}

.portfolio-section .container h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #0055a5;
  margin-bottom: 1rem;
  text-align: center;
}

.portfolio-section .intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.portfolio-table {
  overflow-x: auto;
}

.portfolio-table table {
  width: 100%;
  border-collapse: collapse;
  /* slightly narrower table for model portfolio */
  min-width: 500px;
  margin: 0 auto;
}

.portfolio-table th,
.portfolio-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e8ec;
  text-align: left;
}

.portfolio-table th {
  background-color: #0055a5;
  color: #ffffff;
  font-weight: 600;
}

.portfolio-table tbody tr:nth-child(even) {
  background-color: #f5f7fa;
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e8ec;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.footer a {
  color: #0055a5;
  margin: 0 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #999;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}