/*#region  **** 1-General Var  ****/
:root {
  --learn-small-title: rgba(26, 26, 26, 0.9);
  --learn-small-desc: rgba(26, 26, 26, 0.6);
  --learncard: #ebebeb;
  --learn-h6: #1a1a1a;
  --learn-p1: #323234;
  --partnership-service: #f2f2f2;
  --partnership-h: #090909;
  --partnership-service-card: rgba(0, 0, 0, 0.04);
  --company-news-title1: rgba(56, 52, 52, 0.55);
  --company-news-title2: rgba(40, 44, 75, 1);
  --learn-market-news-bg: #ffffff;
}

html[data-bs-theme='dark'] {
  --learn-small-title: rgba(224, 224, 224, 0.9);
  --learn-small-desc: rgba(224, 224, 224, 0.6);
  --learn-card: #3d3d3d;
  --learn-h6: #ffffff;
  --learn-p1: #e0e0e0;
  --partnership-service: #1e1e1e;
  --partnership-h: #ffffff;
  --partnership-service-card: #3d3d3d;
  --company-news-title1: #ffffff;
  --company-news-title2: #ffffff;
  --learn-market-news-bg: #000000;
}

#legalDocument-section,
#refundPolicy-section,
#complaintsPolicy-section,
#riskWarning-section,
#termsConditions-section,
#privacyPolicy-section,
#supportTickets-section,
#whiteLabel-partnership-section,
#affiliate-partnership-section,
#introducingBroker-partnership-section,
#beginner-academy-section,
#learn-economic-calendar,
#learn-company-news,
#learn-Trading-faq-accordion,
#learn-Trading-faq-about,
#partnership-joinUS-section,
#partnership-service-section,
#partnership-desc-section,
.learn-hero {
  padding: 0 30px;
}

#legalDocument-section,
#refundPolicy-section,
#complaintsPolicy-section,
#riskWarning-section,
#termsConditions-section,
#privacyPolicy-section,
#learn-royce-academy,
#supportTickets-section,
#whiteLabel-partnership-section,
#affiliate-partnership-section,
#introducingBroker-partnership-section,
#beginner-academy-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/*#endregion*/

/*#region  **** 2-market Hero  ****/
.learn-hero {
  position: relative;
  height: 700px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-copy);
  text-align: center;
  overflow: hidden;
  border: unset;
  box-shadow: unset;
}



.learn-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 100px;
}

.learn-hero-content h1 {
  color: var(--hero-copy);
  text-align: center;
  font-size: 45px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  height: 43px;
  align-self: stretch;
}

.learn-hero-content p {
  color: var(--hero-copy-muted);
  text-align: center;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  align-self: stretch;
  margin-top: 40px;
  margin-bottom: 40px;
}

.btn-learn-hero-content {
  max-width: 300px;
  padding: 15px 20px 10px 20px;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.btn-learn-hero-content {
  max-width: 300px;
  padding: 15px 20px 10px 20px;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.learn-menu {
  position: relative;
  margin-top: 60px;
}

.pill-menu {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
}
.pill-menu::-webkit-scrollbar {
  display: none;
}

.pill-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 22px 24px 18px 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  /* backdrop-filter: blur(6px); */
  line-height: 30px;
}
.pill-item:hover {
  transform: translateY(-1px);
}
.pill-item.active {
  background: rgba(255, 255, 255, 0.62);
}

@media (prefers-reduced-motion: reduce) {
  .pill-item,
  .pill-nav-btn {
    transition: none !important;
  }
}

/*#endregion*/

/*#region  **** 3-Partnership Desc Section   ****/

#partnership-desc-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.learn-desc h3 {
  color: var(--platformCard-font2);
  font-size: 35px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}

#legalDocument-section h6,
#refundPolicy-section h6,
#complaintsPolicy-section h6,
#riskWarning-section h6,
#termsConditions-section h6,
#privacyPolicy-section h6,
#supportTickets-section h6,
#whiteLabel-partnership-section h6,
.introducingBroker-benefit h6,
.learn-benefit h6 {
  color: var(learn-small-title);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.6px;
}

.whiteLabel-benefit p,
.introducingBroker-benefit p,
.learn-benefit p {
  color: var(--learn-small-desc);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  display: list-item;
  margin-left: 20px;
  width: 70%;
}

.rtl .whiteLabel-benefit p,
.rtl .introducingBroker-benefit p,
.rtl .learn-benefit p {
  margin-left: unset;
  margin-right: 20px;
}

/*#endregion*/

/*#region  **** 4-Partnership Service   ****/

.partnership-service {
  background-color: var(--partnership-service);
  padding: 45px 30px !important;
}

.partnership-service-title1 {
  color: var(--custom2-color);
  font-size: 35px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.6px;
  /* margin-bottom: 20px; */
}

.partnership-service-title2 {
  color: var(--partnership-h);
  font-size: 35px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.6px;
}

.partnership-service-p {
  color: var(--partnership-h);
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: -0.6px;
}

.partnership-service-card-container {
  padding: 30px 60px;
}

.partnership-service-card {
  width: 80%;
  text-align: center;
  margin: auto;
  border-color: unset;
  background-color: var(--partnership-service-card);
  border-radius: 16px;
  padding: 30px 20px;
  height: auto;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.partnership-service-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c0c0c;
  transition: top 0.8s ease;
  z-index: 1;
}

.partnership-service-card:hover:before {
  top: 0;
}

.partnership-service-card * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.partnership-service-card h6 {
  color: var(--partnership-h);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.6px;
  margin-bottom: 30px;
}

.partnership-service-card p {
  color: var(--partnership-h);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  /* line-height: 32px; */
  letter-spacing: -0.6px;
  margin-bottom: 15px;
}

.partnership-service-card:hover h6,
.partnership-service-card:hover p {
  color: #fff;
}

/*#endregion*/

/*#region  **** 5-partnership joinUS section   ****/
.partnership-join-box {
  background: linear-gradient(270deg, #00f0ff 0%, #5200ff 48%, #ff2df7 100%);
  margin-bottom: 40px;
  margin-top: 40px;
  border-radius: 16px;
  padding: 50px;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); */
  /* background-size: 600% 600%;
  animation: gradientWave 3s ease-in-out infinite; */
}

.rtl .partnership-join-box {
  background: linear-gradient(270deg, #ff2df7 0%, #5200ff 48%, #00f0ff 100%);
  margin-bottom: 40px;
  margin-top: 40px;
  border-radius: 16px;
  padding: 50px;
}

.partnership-join-box h3 {
  color: #000000;
  font-size: 48px;
  line-height: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
  font-style: normal;
  font-weight: 500;
}

.partnership-join-box p {
  color: #ffffff;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.6px;
  font-style: normal;
  font-weight: 500;
  display: list-item;
  margin-left: 25px;
  cursor: pointer;
}

.rtl .partnership-join-box p {
  margin-left: unset;
  margin-right: 25px;
}

/*#endregion*/

/*#region  **** 6-Learn Soon section   ****/

.supportTickets-24,
.supportTickets-title {
  color: var(--platformCard-font2);
  font-size: 35px;
  font-style: normal;
  font-weight: 500;
  /* line-height: 25px; */
  letter-spacing: -0.6px;
  margin-bottom: 0;
  margin-top: 0;
}

.supportTickets-24 {
  color: var(--brand-gold) !important;
}

#legalDocument-section h3,
#refundPolicy-section h3,
#complaintsPolicy-section h3,
#riskWarning-section h3,
#termsConditions-section h3,
#privacyPolicy-section h3,
#whiteLabel-partnership-section h3,
#introducingBroker-partnership-section h3,
#beginner-academy-section h3 {
  color: var(--platformCard-font2);
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.learn-soon {
  text-align: center;
  padding: 50px;
}

.learn-soon h2 {
  font-size: 40px;
  line-height: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
  font-style: normal;
  font-weight: 500;
}

.learn-soon p {
  font-size: 20px;
  line-height: 20px;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
  font-style: normal;
  font-weight: 500;
}
/*#endregion*/

/*#region  **** 7-Learn Trading FAQ   ****/
#learn-Trading-faq-about {
  margin-top: 40px;
  margin-bottom: 40px;
}

/*#endregion*/

/*#region  **** 8-Learn Company News   ****/
.company-news-title {
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: center;
}

.company-news-title p {
  color: var(--company-news-title1);
  font-size: 22px;
  line-height: 25px;
  letter-spacing: -0.6px;
  font-style: normal;
  font-weight: 500;
}
.company-news-title h2 {
  color: var(--company-news-title2);
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
  font-style: normal;
  font-weight: 700;
}

/* .img-card {
  position: relative;
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  margin: auto;
}

.img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-badge {
 position: absolute;
    right: 0px;
    bottom: 15px;
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 18px;
    padding: 6px 10px 6px 10px;
}


.img-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
} */

.card {
  width: 70%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  /* background: #fff; */
  transition: transform 0.3s ease;
  margin: auto;
  cursor: pointer;
  border: unset;
}

.card:hover {
  transform: translateY(-4px);
}

/* الصورة */
.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  /* height: 150px; */
  object-fit: cover;
  display: block;
}

/* النص الأبيض العادي */
.label {
  position: absolute;
  bottom: 18px;
  right: 0px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  padding: 7px 10px 5px 10px;
  /* border-radius: 6px; */
  transition: opacity 0.3s ease;
}

/* الغطاء الزرقاء (تظهر عند الهوفر) */
.hover-overlay {
  border-radius: 12px;
  position: absolute;
  inset: 0;
  background: rgba(0, 19, 255, 0.69);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 15px; */
  transition: opacity 0.4s ease-in-out;
}

/* الأيقونة */
.icon {
  align-self: flex-end;
  background: white;
  color: #4c59fc;
  font-size: 22px;
  border-radius: 8px;
  /* padding: 6px; */
  padding: 6px 8px 0px 8px;
  margin-top: 20px;
  margin-right: 20px;
}

/* العنوان والوصف */
.hover-content {
  color: black;
  text-align: center;
  background-color: white;
  padding: 10px;
}

.hover-content h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.hover-content p {
  margin-top: 5px;
  font-size: 13px;
  color: black;
}

/* عند الهوفر */
.card:hover .hover-overlay {
  opacity: 1;
}

.card:hover .label {
  opacity: 0; /* إخفاء المستطيل الأبيض عند الهوفر */
}

/*#endregion*/

/*#region  **** 9-Royce Academy   ****/
#learn-royce-academy h2 {
  text-align: center;
}

.academy-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  height: 220px;
  min-height: 360px;
}

#learn-royce-academy p,
.academy-card p,
.academy-card h5 {
  text-align: center;
}

.academy-card p {
  font-size: 20px;
  line-height: 24px;
  font-style: normal;
  margin-top: 40px;
}

/*#endregion*/

/*#region  **** 10-Market News   ****/

#learn-market-news {
  padding: 50px 30px;
  background-color: var(--learn-market-news-bg);
}

#learn-market-news-content {
  background-color: var(--learn-market-news-bg) !important;
}

/*#endregion*/

/*#region  **** 11-Learn Economic Calendar   ****/
#learn-economic-calendar {
  margin-bottom: 40px;
  margin-top: 40px;
}

.txt-genral:hover,
.txt-genral:focus {
  box-shadow: unset !important;
  border-color: unset !important;
}

.calendar-bg-img {
  position: relative;
  background-color: #2a263d;
  min-height: 900px;
  width: 100%;
  padding-top: 200px;
}

.calendar-container {
  text-align: center;
  /* padding: 0 200px; */
  margin-bottom: 80px;
}

.calendar-container h1 {
  color: #ffc425;
  /* margin-bottom: 40px; */
}

.calendar-table-container {
  overflow: auto;
  height: 600px;
  margin-bottom: 100px;
}

.calendar-table {
  border-bottom: 1px solid #f3f5f7;
  width: 100%;
  background-color: #2a263d;
}

.calendar-table thead {
  border: 0 solid;
  border-color: inherit;
  background-color: #323234;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 40px;
}

.calendar-table thead tr td {
  text-align: center;
  color: #e6b328;
  border-bottom-color: #f3f5f7;
  font-weight: 600;
}

.calendar-full-tr {
  background-color: #fff !important;
  border: 0 solid;
  font-weight: bold;
  color: #1e1e1e;
}

.calendar-tr-data td,
.calendar-full-tr td {
  text-align: center;
  padding: 0.5rem;
  background-color: transparent;
  border-bottom-width: 1px;
  box-shadow: inset 0 0 0 9999px transparent;
}

.calendar-tr-data {
  border: 0 solid #f3f5f7;
  color: white;
  text-align: center;
}

.calendar-tr-data:nth-child(even) {
  background-color: #201139;
}

.calendar-table-container::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.calendar-table-container::-webkit-scrollbar-track {
  border: 1px solid #f8f9fa;
  border-radius: 10px;
}

.calendar-table-container::-webkit-scrollbar-thumb {
  background: #ffc42594;
  border-radius: 10px;
}

.calendar-table-container::-webkit-scrollbar-thumb:hover {
  background: #5d4646;
}

.econmicCalendar-lbl {
  font-size: 15px;
  font-weight: 700;
  color: var(--platformCard-font2);
}

.econmicCalendar-filterContainer {
  margin-bottom: 30px;
}

/*#endregion*/

.whiteLabel-btn-container {
  display: grid;
  /* flex-wrap: wrap; */
}

/*#region  **** 12-Responsive  ****/

@media (min-width: 1320px) {
  .pill-menu {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px 0;
  }
}

@media (max-width: 991px) {
  .partnership-service-title {
    justify-content: center;
  }

  .partnership-service-p {
    text-align: center;
  }

  .partnership-service-p {
    margin-bottom: 20px;
  }

  .partnership-service-card-container {
    padding: unset;
  }

  .partnership-service-card {
    width: 100%;
    min-height: 200px;
  }

  .company-news-title h2,
  .partnership-join-box h3 {
    font-size: 30px;
    line-height: 40px;
    margin-bottom: 10px;
  }

  .partnership-join-box p {
    font-size: 20px;
    line-height: 25px;
  }

  .card {
    width: 50%;
    min-width: 250px;
  }

  .supportTickets-24,
  .supportTickets-title {
    font-size: 25px;
  }

  #learn-royce-academy h2 {
    font-size: 25px;
  }

  #learn-royce-academy p {
    font-size: 18px;
  }

  .academy-card h5 {
    font-size: 18px !important;
    margin: unset;
    padding: 5px !important;
  }

  .academy-card p {
    font-size: 16px !important;
    margin-top: 0px;
  }
}
@media (max-width: 767px) {
  .learn-hero {
    min-height: unset;
    height: 600px;
  }

  .learn-hero-content h1 {
    font-size: 25px;
    line-height: 35px;
    margin-top: 30px;
  }

  .learn-hero-content p {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .company-news-title h2,
  .partnership-service-title1,
  .partnership-service-title2,
  .learn-desc h3 {
    font-size: 25px;
    line-height: 30px;
  }

  .partnership-service-p {
    font-size: 16px;
  }

  .partnership-join-box h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .partnership-join-box p {
    font-size: 16px;
    line-height: 20px;
    margin-left: 18px;
  }

  .rtl .partnership-join-box p {
    margin-left: unset;
    margin-right: 18px;
  }

  .partnership-join-box {
    padding: 40px 30px !important;
  }

  .learn-soon h2 {
    font-size: 25px;
  }

  .company-news-title p,
  .learn-soon p {
    font-size: 16px;
  }

  .pill-item {
    font-size: 18px;
  }

  .supportTickets-24,
  .supportTickets-title {
    font-size: 20px;
  }

  .academy-card {
    height: unset;
    min-height: unset;
  }
}

@media (max-width: 520px) {
  .partnership-join-box h3 {
    font-size: 22px;
    line-height: 25px;
  }

  .partnership-join-box p {
    font-size: 14px;
    line-height: 16px;
  }

  #legalDocument-section h3,
  #refundPolicy-section h3,
  #complaintsPolicy-section h3,
  #riskWarning-section h3,
  #termsConditions-section h3,
  #privacyPolicy-section h3,
  #supportTickets-section h3,
  #whiteLabel-partnership-section h3,
  #introducingBroker-partnership-section h3,
  #beginner-academy-section h3 {
    font-size: 18px;
    line-height: 21px;
  }

  #learn-royce-academy h2 {
    font-size: 20px;
  }
  #learn-royce-academy p {
    font-size: 16px;
  }
}

@media (max-width: 460px) {
  .learn-hero {
    height: 500px;
  }

  .learn-hero-content h1 {
    font-size: 18px;
    line-height: 35px;
    margin-top: 30px;
  }

  .partnership-service-p,
  .learn-hero-content p {
    font-size: 12px;
  }

  .partnership-service-title1,
  .partnership-service-title2,
  .learn-desc h3 {
    font-size: 18px;
    line-height: 21px;
  }

  .beginner-academy-section h3 {
    font-size: 18px;
    line-height: 21px;
  }

  .introducingBroker-benefit h6,
  .learn-benefit h6 {
    font-size: 14px;
  }

  .introducingBroker-benefit p,
  .learn-benefit p {
    font-size: 12px;
    width: 95%;
  }

  .partnership-service-card h6 {
    font-size: 18px;
  }

  .partnership-service-card p {
    font-size: 12px;
  }

  .company-news-title h2 {
    font-size: 20px;
  }

  .pill-item {
    font-size: 12px;
    padding: 10px;
  }
}

@media (max-width: 425px) {
  .partnership-join-box {
    padding: 30px 20px !important;
  }

  .partnership-join-box h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .partnership-join-box p {
    font-size: 12px;
    line-height: 12px;
  }

  #learn-market-news {
    padding: 50px 0;
  }
}

/*#endregion*/
