/* 
  Trading Mentor Group - Main Stylesheet
  Theme: Corporate with Dynamic Color Transitions
  Color Scheme: Triadic
*/

:root {
  /* Primary Colors - Triadic Scheme */
  --primary: #2a5298;
  --primary-dark: #1a3b7a;
  --primary-light: #3a67b8;
  
  --secondary: #982a5c;
  --secondary-dark: #7a1a3b;
  --secondary-light: #b83a6c;
  
  --tertiary: #2a9865;
  --tertiary-dark: #1a7a46;
  --tertiary-light: #3ab884;
  
  /* Neutral Colors */
  --dark: #1c1e2a;
  --dark-gray: #444655;
  --medium-gray: #888a99;
  --light-gray: #e5e6f0;
  --off-white: #f7f8fa;
  --pure-white: #ffffff;
  
  /* Text Colors */
  --text-dark: #2c2e3e;
  --text-medium: #505266;
  --text-light: #f7f8fa;
  
  /* Shadows */
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  --radius-full: 9999px;
}

/* Typography */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.title.is-1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.title.is-2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.subtitle {
  color: var(--text-medium);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

.content a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:not(.button):hover {
  text-decoration: none;
  color: var(--secondary);
}

/* Buttons & Form Elements */
.button {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  transition: all var(--transition-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

.button.is-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.button.is-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--pure-white);
}

.button.is-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: var(--pure-white);
}

.button.is-outlined {
  border: 2px solid currentColor;
}

.button.is-rounded {
  border-radius: var(--radius-full);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.input, .textarea, .select select {
  border: 1px solid var(--light-gray);
  box-shadow: none !important;
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1) !important;
}

.label {
  font-weight: 600;
  color: var(--text-dark);
}

.checkbox, .radio {
  margin-right: 1rem;
}

/* Layout & Containers */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1200px;
  padding: 0 1.5rem;
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
}

/* Header & Navigation */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-item {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary);
  background-color: transparent !important;
}

.navbar-burger {
  height: 4rem;
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-body {
  padding: 8rem 1.5rem;
  position: relative;
  z-index: 2;
}

.hero .title, .hero .subtitle, .hero p {
  color: var(--pure-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  max-width: 800px;
  margin-bottom: 2rem;
}

/* Features Section */
.card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.card-image {
  width: 100%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .title {
  margin-bottom: 1rem;
}

.card .content {
  flex-grow: 1;
}

.card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Workshops Section */
.has-background-light {
  background-color: var(--off-white) !important;
}

/* Resources Section */
.resources-card {
  text-align: center;
}

.resources-card .card-image {
  height: 200px;
}

.resources-card .card-image img {
  object-position: center;
}

/* Instructors Section */
.instructors-card .card-image {
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  width: 200px;
  height: 200px;
}

.instructors-card .card-content {
  text-align: center;
}

/* Contact Section */
.contact-form {
  background-color: var(--pure-white);
  border-radius: var(--radius-medium);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.contact-info {
  background-color: var(--primary);
  color: var(--pure-white);
  border-radius: var(--radius-medium);
  padding: 2.5rem;
}

.contact-info h3, .contact-info p, .contact-info a {
  color: var(--pure-white);
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--dark) !important;
  padding: 4rem 1.5rem 2rem;
}

.footer a {
  color: var(--pure-white);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer a:hover {
  opacity: 1;
  color: var(--pure-white);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer .title {
  color: var(--pure-white);
}

.footer p {
  color: var(--light-gray);
}

.social-links p {
  margin-bottom: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s forwards;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-card {
  max-width: 600px;
  width: 100%;
  padding: 3rem;
  background-color: var(--pure-white);
  border-radius: var(--radius-medium);
  box-shadow: var(--card-shadow);
}

.success-icon {
  font-size: 4rem;
  color: var(--tertiary);
  margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
.legal-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Cookie Consent */
#cookie-consent {
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

#cookie-consent.show {
  opacity: 1;
  transform: translateY(0);
}

#cookie-consent.hide {
  opacity: 0;
  transform: translateY(100%);
}

#accept-cookies {
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: #00c4a7 !important;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .title.is-2 {
    font-size: 2rem;
  }
  
  .hero-body {
    padding: 6rem 1rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .title.is-1 {
    font-size: 2rem;
  }
  
  .title.is-2 {
    font-size: 1.75rem;
  }
  
  .hero-body {
    padding: 5rem 1rem;
  }
}