/* Forex Hero */
.forex-hero {
  background: linear-gradient(rgba(29, 32, 36, 0.8), rgba(29, 32, 36, 0.8)),
    url("../../images/home/hero-bg3.jpg") center/cover no-repeat;
  height: 100vh;
  min-height: 500px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  margin-top: 80px;
}

.forex-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.forex-hero .lead {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Market Overview */
.market-overview {
  padding: 80px 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 50px;
}

.stat-card {
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--accent-color);
  font-size: 24px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.market-description p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Live Rates */
.live-rates {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.rates-table-container {
  overflow-x: auto;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.rates-table th {
  background-color: var(--accent-color);
  color: white;
  padding: 15px;
  text-align: left;
}

.rates-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.rates-table tr:hover {
  background-color: #f5f5f5;
}

.flag-icon {
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: 5px;
  background-size: cover;
  border-radius: 2px;
  vertical-align: middle;
}

.flag-icon.usd {
  background-image: url("../images/flags/us.png");
}
.flag-icon.eur {
  background-image: url("../images/flags/eu.png");
}
.flag-icon.gbp {
  background-image: url("../images/flags/gb.png");
}
.flag-icon.jpy {
  background-image: url("../images/flags/jp.png");
}
.flag-icon.aud {
  background-image: url("../images/flags/au.png");
}
.flag-icon.try {
  background-image: url("../images/flags/tr.png");
}
.flag-icon.pln {
  background-image: url("../images/flags/pl.png");
}

.pair-major {
  font-weight: 600;
}

.pair-minor {
  color: #555;
}

.pair-exotic {
  color: #777;
  font-size: 0.95rem;
}

.positive {
  color: #28a745;
  font-weight: 600;
}

.negative {
  color: #dc3545;
  font-weight: 600;
}

.btn-small {
  padding: 5px 15px;
  font-size: 0.85rem;
}

.table-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 8px;
}

.legend-color.major {
  background-color: var(--secondary-color);
}

.legend-color.minor {
  background-color: #555;
}

.legend-color.exotic {
  background-color: #777;
}

.disclaimer {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.disclaimer i {
  color: var(--accent-color);
  margin-right: 5px;
}

/* Educational Resources */
.educational-resources {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.resources-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-tab {
  padding: 12px 25px;
  background-color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.resource-tab.active {
  background-color: var(--accent-color);
  color: white;
}

.resources-content {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
}

.resources-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.resource-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
}

.resource-image {
  flex: 1;
  min-width: 150px;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-info {
  flex: 2;
  padding: 20px;
}

.resource-info h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.resource-info p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.resource-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.resource-meta span {
  display: flex;
  align-items: center;
}

.resource-meta i {
  margin-right: 5px;
}

/* Account Types */
.account-types {
  padding: 80px 0;
  background-color: white;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.account-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.account-card:hover {
  transform: translateY(-5px);
}

.account-card.highlighted {
  border: 2px solid var(--accent-color);
  transform: translateY(-10px);
}

.account-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.account-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.account-price span {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-light);
}

.account-features {
  margin-bottom: 25px;
  text-align: left;
}

.account-features li {
  margin-bottom: 10px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
}

.account-features i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-top: 3px;
}

.btn-large {
  padding: 12px 30px;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background-color: white;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.faq-question i {
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  padding: 0 25px 25px;
}

.faq-answer p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* CTA Section */
.forex-cta {
  padding: 80px 0;
  background-color: var(--accent-color);
  color: white;
  text-align: center;
}

.forex-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.forex-cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .forex-hero h1 {
    font-size: 2.5rem;
  }

  .forex-hero .lead {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .resources-content.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .forex-hero {
    height: 60vh;
  }

  .resource-card {
    flex-direction: column;
  }

  .resource-image {
    height: 200px;
  }
}

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

  .market-stats {
    grid-template-columns: 1fr 1fr;
  }

  .account-cards {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

.tradingview-widget-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.investment-packages {
  background-color: var(--light-color);
}

/* Add this to your existing CSS */
.package-card {
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1),
    box-shadow 0.3s ease;
}

.package-card.flipped {
  z-index: 10; /* Ensure flipped card appears above others */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Disable hover effects when a card is flipped */
body.has-flipped-card .package-card:not(.flipped):hover {
  transform: none !important;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  perspective: 1000px;
}

.package-card {
  position: relative;
  height: 480px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  margin: 2rem 0;
}

.package-card.featured {
  transform: translateY(-20px);
}

.package-card:hover {
  transform: translateY(-10px) rotateY(5deg);
}

.package-card.flipped {
  transform: rotateY(180deg);
}

.package-card.flipped:hover {
  transform: rotateY(180deg) translateY(-10px);
}

.package-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.package-card-front,
.package-card-back {
  position: absolute;
  width: 100%;
  height: 480px;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.package-card-front {
  background-color: var(--white);
  transform: rotateY(0deg);
}

.package-card-back {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: var(--white);
  transform: rotateY(180deg);
}

/* Package Front Styles */
.package-header {
  text-align: center;
  margin-bottom: 25px;
}

.package-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 32px;
  transition: all 0.3s ease;
}

.starter .package-icon {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.silver .package-icon {
  background-color: rgba(189, 195, 199, 0.1);
  color: #bdc3c7;
}

.gold .package-icon {
  background-color: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
}

.premium .package-icon {
  background-color: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
}

.package-price {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
  color: var(--secondary-color);
}

.starter .package-price {
  color: #2ecc71;
}

.silver .package-price {
  color: #bdc3c7;
}

.gold .package-price {
  color: #f1c40f;
}

.premium .package-price {
  color: #9b59b6;
}

.package-features {
  flex-grow: 1;
}

.package-features ul {
  list-style: none;
}

.package-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.package-features i {
  margin-right: 10px;
  margin-top: 3px;
  color: var(--accent-color);
}

.starter .package-features i {
  color: #2ecc71;
}

.silver .package-features i {
  color: #bdc3c7;
}

.gold .package-features i {
  color: #f1c40f;
}

.premium .package-features i {
  color: #9b59b6;
}

/* Package Back Styles */
.package-card-back h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.package-details {
  flex-grow: 1;
}

.package-details p {
  margin-bottom: 20px;
  text-align: center;
}

.package-details ul {
  list-style: none;
  margin-bottom: 25px;
}

.package-details li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.package-details strong {
  font-weight: 600;
  margin-right: 10px;
}

/* Flip Indicator */
.flip-indicator {
  text-align: center;
  margin-top: auto;
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.package-card-front .flip-indicator {
  color: var(--accent-color);
}

.package-card-back .flip-indicator {
  color: rgba(255, 255, 255, 0.8);
}

.package-card:hover .flip-indicator {
  opacity: 1;
  transform: scale(1.05);
}

/* Add this to your existing CSS */
.package-card {
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1),
    box-shadow 0.3s ease;
}

.package-card.flipped {
  z-index: 10; /* Ensure flipped card appears above others */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Disable hover effects when a card is flipped */
body.has-flipped-card .package-card:not(.flipped):hover {
  transform: none !important;
}

/* Featured Badge */
.flip-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(57, 125, 241, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .package-card {
    height: auto;
    min-height: 400px;
  }

  .package-card.featured {
    transform: none;
  }
}

/* Trading Platforms */
.trading-platforms {
  padding: 80px 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.platform-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 32px;
}

.platform-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.platform-stats {
  margin-top: 20px;
  font-size: 0.9rem;
}

.platform-stats div {
  margin: 5px 0;
}
