/* Global styles */
:root {
  --primary-color: #ff5722;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --border-color: #ddd;
}

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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
  max-width: 1200px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Header styles */
header {
  padding: 15px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  white-space: nowrap;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 0.9rem;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Hero section */
.hero {
  background-color: var(--light-gray);
  padding: 25px 15px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.hero-text h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Bank Statement Styles */
.bank-statement {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
}

.statement-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
}

.statement-header h3 {
  margin: 0;
  color: #2d3748;
  font-size: 1.2rem;
}

.statement-date {
  color: #718096;
  font-size: 0.9rem;
}

.transaction-list {
  padding: 20px;
}

.transaction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.transaction:last-child {
  border-bottom: none;
}

.transaction-name {
  color: #2d3748;
  font-weight: 500;
}

.amount {
  font-weight: bold;
  font-family: monospace;
}

.deposit {
  color: #38a169;
}

.total-savings {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.total-amount {
  color: #38a169;
  font-size: 1.2rem;
  font-family: monospace;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 0.8;
  visibility: visible;
}

#back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Data table styles */
.redtrack-data-table {
  margin: 15px 0 25px;
  padding: 0 10px;
}

.redtrack-data-table h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

th {
  background-color: var(--light-gray);
  font-weight: bold;
  white-space: nowrap;
}

tr:hover {
  background-color: var(--light-gray);
}

/* List item styles */
.list-offer {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.list-item {
  display: flex;
  flex-direction: column;
}

.item-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.item-number {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-color);
  flex-shrink: 0;
}

.item-header h3 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.3;
  color: var(--text-color);
  font-weight: bold;
}

.item-content {
  margin-bottom: 20px;
}

.item-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.item-content ul {
  margin-left: 1.5em;
  padding-left: 1.5em;
  list-style: disc inside;
}

.item-content li {
  margin-bottom: 0.5em;
}

.item-image {
  margin-bottom: 20px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.item-image img {
  width: 100%;
  border-radius: 0;
}

/* Breaking news style for offer images */
.breaking-banner {
  position: relative;
  overflow: hidden;
}

.breaking-banner::before {
  content: "BREAKING";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f00;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 5px 15px;
  z-index: 1;
  letter-spacing: 1px;
}

.breaking-banner::after {
  content: "ANNOUNCEMENT";
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 1;
  letter-spacing: 1px;
}

.live-tag {
  position: absolute;
  top: 15%;
  right: 5%;
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
  padding: 2px 20px;
  font-size: 1.2rem;
  z-index: 1;
}

.offer-intro {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 20px 0;
}

.highlight-text {
  color: #4169e1; /* Royal blue */
  font-weight: bold;
  text-decoration: underline;
}

/* Action buttons - new style */
.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.btn {
  padding: 15px;
  background-color: #4169e1; /* Royal blue */
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #4169e1; /* Royal blue */
}

.btn-check {
  background-color: #4caf50; /* Green */
  font-size: 1.5rem;
  padding: 22px 0;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
  animation: btnPulse 1.5s infinite;
}

@keyframes btnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
  }
}

.btn-check:hover {
  background-color: #388e3c; /* Slightly darker green */
  color: #fff;
  box-shadow: 0 6px 18px rgba(56, 142, 60, 0.22);
  transform: translateY(-2px) scale(1.04);
}

/* Footer styles */
footer {
  text-align: center;
  padding: 20px 15px;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
}

.legal-disclaimers {
  margin-top: 20px;
  text-align: left;
}

.legal-disclaimers p {
  font-size: 0.45rem;
  color: #777;
  margin-bottom: 15px;
  line-height: 1.3;
}

.legal-disclaimers h4 {
  font-size: 0.55rem;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: bold;
}

.copyright {
  margin: 20px 0 10px;
  font-size: 0.45rem;
  color: #777;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-links a {
  color: #2c5282;
  text-decoration: none;
  font-size: 0.45rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-links .separator {
  color: #718096;
  font-size: 0.45rem;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: row;
    gap: 12px;
  }

  .footer-links .separator {
    display: none;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }
}

/* Author info styles */
.author-info {
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.author-container {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.author-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 12px;
}

.author-image.rounded {
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-name {
  font-weight: 600;
  color: #333;
  margin-right: 16px;
}

.post-date {
  color: #666;
  margin-right: 15px;
  font-size: 0.9rem;
}

.trending-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trending-tag {
  background-color: #f5f5f5;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  display: inline-flex;
  align-items: center;
}

.reader-count {
  color: #2c5282;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}

.reader-count .counter {
  font-weight: bold;
  color: #2d3748;
}

.author-divider {
  display: none; /* Hide the divider since we're using border-bottom on .author-info */
}

/* Offer stats styles */
.offer-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.hot-offer {
  background-color: #ff4d4d;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulse 2s infinite;
  white-space: nowrap;
}

.participant-count {
  color: #2c5282;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.counter {
  font-weight: bold;
  color: #2d3748;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (min-width: 576px) {
  header h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .item-header h3 {
    font-size: 1.7rem;
  }

  .item-number {
    font-size: 2rem;
  }

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .breaking-banner::before {
    font-size: 3rem;
  }

  .breaking-banner::after {
    font-size: 3rem;
  }
}

@media (min-width: 992px) {
  .container {
    padding: 0 30px;
  }

  .item-content {
    padding: 0;
    margin-bottom: 25px;
  }

  .item-image {
    width: 100%;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .disclaimer-section {
    padding: 12px;
  }

  .footer-links {
    flex-direction: row;
    gap: 12px;
  }

  .footer-links .separator {
    display: none;
  }
}

/* Roof Age Buttons */
.roof-age-buttons {
  margin: 20px 0;
}

.roof-age-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.roof-age-btn {
  background-color: #388e3c;
  color: white;
  text-align: center;
  padding: 15px 10px;
  border-radius: 8px;
  flex: 0 0 32%;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s;
}

.roof-age-btn:hover {
  background-color: #43b348;
}

@media (max-width: 600px) {
  .roof-age-row {
    flex-direction: column;
  }
  .roof-age-btn {
    margin-bottom: 10px;
    width: 100%;
  }
}
