h1, h2, h3, h4, h5, h6 {
    color: #475172;
}
:root {
    --primary-blue: #4864aa;
    --light-gray: #f8fafc;
    --text-dark: #334155;
    --text-light: #64748b;
    --success-green: #22c55e;
    --danger-red: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    background: #f8fafc;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue) !important;
}

/* Logo Styles */
.ptr-logo {
    height: 5.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    display: inline-block;
    margin-top: 1rem;
}

/* Logo Styles */
.summery-logo {
    height: 10rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    display: inline-block;
}
/* Hero Section Styles */
.hero-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 750px;
}

/* Search Container Styles */
.search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn {
    background: var(--primary-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #3d5599;
    transform: translateY(-1px);
}

/* Stock Card Styles */
.stock-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem; /* Increased for larger size */
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem; /* Increased gap */
    min-height: auto;
    height: fit-content;
}

.stock-card:hover {
    transform: translateY(-2px); /* Only vertical movement on hover */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stock-info {
    flex-grow: 1;
    min-width: 0;
    padding-top: 0.625rem; /* Increased from 0.5rem */
}

.stock-info h6 {
    margin-bottom: 0.625rem; /* Increased from 0.5rem */
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem; /* Slightly larger font */
}

.stock-description {
    font-size: 0.95rem; /* Increased from 0.875rem */
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Increased from 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5; /* Increased from 1.4 */
    margin-top: 0.625rem; /* Increased from 0.5rem */
}

/* Rating Badge Styles */
.rating-badge {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    flex-shrink: 0;
}

.small-rating-badge {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    flex-shrink: 0;
}

.rating-buy {
    background: var(--success-green);
}

.rating-sell {
    background: var(--danger-red);
}

.rating-hold {
    background: #6b7280;
}

/* Price and Stock Change Styles */
.price-positive {
    color: var(--success-green);
}

.price-negative {
    color: var(--danger-red);
}

.stock-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.stock-change {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Alerts Section Styles */
.alerts-section {
    padding: 0 0;
    background: #f8fafc;
}

/* Alerts Section Styles */
.early-warning-section {
    background: #f8fafc;
}

.alerts-subtitle {
    max-width: 750px;
    font-size: 1.55rem;
    color: var(--text-light);
}

/* Grid layout for alert cards - 4 columns, equal spacing */
.alerts-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.alerts-grid-row:last-child {
    margin-bottom: 0;
}

.alerts-grid-row > .col-3 {
    display: contents; /* Remove the col wrapper from grid layout */
}

/* Alert card styling to match screenshot */
.alert-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 140px; /* Fixed height instead of min-height */
    transition: all 0.2s ease;
}

.alert-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.alert-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.alerts-title {
    font-size: 3.5rem;
}

.alert-stock-info {
    flex: 1;
    min-width: 0;
}

.alert-stock-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.alert-stock-info > div {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    gap: 0.5rem;
}

/* CTA Section Styles */
.cta-section {
    background: #f8fafc;
    color: var(--text-dark);
    padding: 4rem 0;
    text-align: center;
}

.btn-signup {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: #3d5599;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 100, 170, 0.3);
}

/* Report Preview Styles */
.report-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-left: 2rem;
}

.report-header {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-chart {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Report Image Shadow Styles */
.report-image-shadow {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.report-image-shadow:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Company Logos Carousel Styles */
.logos-carousel-section {
    padding: 4rem 0;
    overflow: hidden;
    background: #f8fafc;

}

.logos-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.logos-carousel {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.logos-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.logo-placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-placeholder:hover {
    color: #64748b;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-image {
    max-height: 90px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.logo-image:hover {
    filter: grayscale(80%) opacity(0.8);
    transform: translateY(-2px);
}

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

/* Pause animation on hover */
.logos-carousel:hover .logos-track {
    animation-play-state: paused;
}

/* Responsive adjustments for logos carousel */
@media (max-width: 768px) {
    .logos-carousel-section {
        padding: 3rem 0;
    }

    .logos-title {
        font-size: 1.5rem;
    }

    .logos-track {
        gap: 2rem;
        animation-duration: 15s;
    }

    .logo-item {
        min-width: 160px;
    }

    .logo-placeholder {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .alerts-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-container {
        margin-bottom: 2rem;
    }

    .search-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .search-btn i {
        margin-right: 0;
    }

    .search-btn .btn-text {
        display: none;
    }

    .report-preview {
        margin-left: 0;
        margin-top: 2rem;
    }

    .stock-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        /* Removed transform scale for consistency */
    }

    .stock-card:hover {
        transform: translateY(-2px);
    }

    .alert-card {
        padding: 1rem;
        height: 140px; /* Ensure fixed height on mobile */
    }

    .alerts-grid-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stock-price {
        font-size: 1.1rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .alerts-title {
        font-size: 4rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .search-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-input {
        text-align: center;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .search-btn .btn-text {
        display: inline;
    }

    .stock-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .stock-info {
        text-align: center;
    }

    .stock-description {
        -webkit-line-clamp: 3;
    }

    .alerts-grid-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modal Styles for Stock Card Popups */
.modal-header .d-flex {
    gap: 1rem;
}

.modal-header #modalStockPrice {
    gap: 0.5rem;
}

.modal-header #modalStockPrice .stock-price {
    font-size: 1.1rem;
}

.modal-header #modalStockPrice .stock-change {
    font-size: 0.9rem;
}

/* Custom button styles to override Bootstrap colors */
.btn-outline-primary {
  border-color: #4864aa !important;
  color: #4864aa !important;
}

.btn-outline-primary:hover {
  background-color: #4864aa !important;
  border-color: #4864aa !important;
  color: white !important;
}

.btn-primary {
  background-color: #4864aa !important;
  border-color: #4864aa !important;
}

.btn-primary:hover {
  background-color: #3d5599 !important;
  border-color: #3d5599 !important;
}

/* Rating Update specific styles */
.rating-container {
  min-height: 100vh;
  padding: 2rem 0;
  background: #f8fafc;
}

.rating-header {
  background: #f8fafc;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.rating-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.rating-subtitle {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.rating-badge-large {
  display: inline-block;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 1rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-section {
  background: #f8fafc;
  padding: 3rem;
  margin-bottom: 2rem;
}

.section-title {
  color: #4864aa;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #4864aa;
  padding-bottom: 0.5rem;
}

.rating-content {
  line-height: 1.7;
  color: var(--text-dark);
}

.rating-content p {
  margin-bottom: 1.5rem;
}

.rating-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.rating-content li {
  margin-bottom: 0.75rem;
}

.rating-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.rating-content img.alignright {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.rating-content img.alignleft,
.rating-content img.wpalignleft {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.rating-content img.alignnone {
  display: block;
  margin: 1.5rem auto;
}

.highlight-text {
  text-decoration: underline;
  font-weight: bold;
}

.back-to-home {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background: white;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 300;
}

.back-to-home:hover {
  color: #4864aa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Paywall specific styles */
.paywall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.paywall-overlay.show {
  display: flex;
  opacity: 1;
}

.paywall-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.paywall-overlay.show .paywall-content {
  transform: translateY(0);
}

.paywall-icon {
  font-size: 3rem;
  color: #4864aa;
  margin-bottom: 1rem;
}

.paywall-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.paywall-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #666;
}

.paywall-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paywall-btn-primary,
.paywall-btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
  width: 100%;
  text-decoration: none;
}

.paywall-btn-primary {
  background: #4864aa;
  color: white;
  border: none;
  transition: background 0.3s ease;
}

.paywall-btn-primary:hover {
  background: #3d5599;
}

.paywall-btn-secondary {
  background: transparent;
  color: #4864aa;
  border: 2px solid #4864aa;
  transition: background 0.3s ease, color 0.3s ease;
}

.paywall-btn-secondary:hover {
  background: #4864aa;
  color: white;
}

.paywall-features {
  margin-top: 1.5rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #333;
}

.feature-item i {
  font-size: 1.5rem;
  color: #4864aa;
  margin-right: 0.5rem;
}

/* Rating page responsive styles */
@media (max-width: 768px) {
  .content-section {
    margin: 1rem;
    padding: 2rem;
  }

  .rating-title {
    font-size: 2rem;
  }

  .rating-content img.alignright,
  .rating-content img.alignleft,
  .rating-content img.wpalignleft {
    float: none;
    margin: 1rem auto;
    display: block;
  }

  .back-to-home {
    position: relative;
    top: auto;
    left: auto;
    margin: 1rem auto 2rem auto;
    display: inline-flex;
    width: fit-content;
  }

  .paywall-overlay {
    padding: 0.5rem;
  }

  .paywall-content {
    padding: 1.5rem;
    width: 90%;
  }
}

/* Features specific styles */
.features-container {
  min-height: 100vh;
  padding: 2rem 0;
  background: #f8fafc;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 4rem 0 2rem 0;
  background: #f8fafc;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.features-subtitle {
  color: var(--text-light);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 4rem 3rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.feature-title {
  color: #4864aa;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}


.feature-content {
  line-height: 1.7;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.feature-content p {
  margin-bottom: 1.5rem;
}

.feature-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.feature-content li {
  margin-bottom: 0.75rem;
}