/* Finnish Stocks CSS - Static HTML Site */

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

.info-section p
{
    text-align: left !important;
    margin-bottom: 1.2em;
}

.info-section h2
{
    text-align: left !important;
}

.info-section table {
    width: 100%;
    border: 1px solid #999 !important;
    border-collapse: collapse; /* Works only on table */
}

.info-section th,
.info-section td {
    border: 1px solid #999 !important;
    padding: 8px; /* optional but recommended */
}



:root {
  /* Color System */
  --background: #0a0e27;
  --foreground: #f8fafc;
  --card: #141b3a;
  --card-foreground: #f8fafc;
  --primary: #60d1e8;
  --primary-dark: #4db8cf;
  --secondary: #1a2344;
  --muted: #2a3354;
  --muted-foreground: #cbd5e1;
  --accent: #8b5cf6;
  --border: #2a3354;
  --success: #22c55e;
  --danger: #ef4444;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 0.75rem;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 1rem;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav {
  display: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: block;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
  color: var(--foreground);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-link-mobile {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link-mobile:hover {
  color: var(--primary);
}

.mobile-menu-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--muted);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 6rem 1rem 4rem;
  background-image: url("https://stocks24.fi/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .hero-content {
    min-width: 100px;

  }
}

@media (max-width: 767px) {
  .hero,
  .stocks-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    min-width: 400px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    min-width: 800px;
  }
}

.hero-title {
  font-size: 45px !important;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 30px !important;
    margin-bottom: 2rem;
    line-height: 1.3;
  }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .hero-description {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

.tradingview-widget-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.tradingview-widget-container__widget {
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--background);
  box-shadow: 0 4px 20px rgba(96, 209, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(96, 209, 232, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  width: 100%;
}

.btn-outline:hover {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* Info Section (Light) */
.info-section {
  padding: var(--section-padding);
  background: #f8fafc;
  color: #0a0e27;
}

.info-section .container {
  max-width: 960px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
}

.section-description-stocks {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(96, 209, 232, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  color: var(--background);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0a0e27;
}

.feature-description {
  font-size: 1rem;
  color: #475569;
  line-height: 1.8;
}

/* Stocks Section (Dark) */
.stocks-section {
  position: relative;
  padding: var(--section-padding);
  background-image: url("https://stocks24.fi/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stocks-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.stocks-section .container {
  position: relative;
  z-index: 2;
  max-width: 1300px;
}

.stocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.75rem 0 0.75rem;
  transition: all 0.3s ease;
  width: 100%;
  margin: 0 auto;
}

.stock-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 209, 232, 0.1);
}

.stock-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stock-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-weight: 700;
  font-size: 1.25rem;
}

.stock-info {
  flex: 1;
}

.stock-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.stock-ticker {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stock-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.price-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}

.price-change {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
}

.price-change.positive {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.price-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.stock-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.section-cta {
  text-align: center;
}

/* Footer */
.footer {
  padding: 4rem 1rem 2rem;
  background: var(--secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-weight: 700;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.footer-description {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.footer-links-grid {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1;
}

.footer-column-contact {
  min-width: 300px;
}

.footer-disclaimer {
  margin-bottom: 2rem;
}

.disclaimer-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.disclaimer-icon {
  flex-shrink: 0;
}

.disclaimer-icon svg {
  color: var(--accent);
}

.disclaimer-content {
  flex: 1;
}

.disclaimer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.disclaimer-text {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-content {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (min-width: 1024px) {
  .stocks-grid {
    grid-template-columns: repeat(3, 280px);
    justify-content: center;
  }

  .stock-card {
    width: 280px;
  }
}

/* Smooth Scrolling */
/* Alphabet Stocks Layout */
.alphabet-stocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.alphabet-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.alphabet-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 209, 232, 0.3);
  transform: translateY(-2px);
}

.letter-group {
  margin-bottom: 2rem;
}

.letter-group:last-child {
  margin-bottom: 0;
}

.letter-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.stock-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stock-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: block;
}

.stock-link:hover {
  background: rgba(96, 209, 232, 0.1);
  color: var(--primary);
  padding-left: 1.25rem;
}

@media (min-width: 768px) {
  .alphabet-stocks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .alphabet-stocks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .alphabet-card {
    padding: 2.5rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding);
  background: #f8fafc;
  color: #0a0e27;
}

.faq-section .container {
  position: relative;
  max-width: 960px;
}

.faq-section .section-title {
  color: #0a0e27;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* FAQ Column */
.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(96, 209, 232, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #0a0e27;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
}

/* News Column */
.news-column {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
}

.news-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0e27;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0a0e27;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: var(--primary);
  cursor: pointer;
}

/* Responsive Design for FAQ Section */
@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

