/* =============================
   HEADER STYLES
============================= */
/* Steel blue gradient header strip */
.header-strip {
  position: relative;
  background: linear-gradient(90deg, 
    #1a2332 0%,     /* Dark steel blue */
    #2d3e52 25%,    /* Medium dark steel */
    #4a6085 50%,    /* Medium steel blue */
    #6b82a6 75%,    /* Lighter steel blue */
    #8ca5c7 100%    /* Light steel blue */
  );
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  height: 240px; /* Reduced from 300px */
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(26, 35, 50, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Steel gradient overlay effects */
.header-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 20%,
    transparent 80%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0.5;
  z-index: 1;
}

.header-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, 
      rgba(26, 35, 50, 0.4) 0%, 
      transparent 5%,
      transparent 95%,
      rgba(140, 165, 199, 0.2) 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* Images inside the header */
.header-strip img {
  display: block;
  height: 100%;
  width: auto;
  animation: fadeInZoom 3s ease-out forwards;
  opacity: 0;
  position: relative;
  z-index: 2;
  filter: brightness(1.1) contrast(1.05); /* Makes images pop against steel blue */
}

@keyframes fadeInZoom {
  0% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* Content centered over the images */
.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3; /* Above images and gradients */
  width: 100%;
  max-width: 1100px;
  padding: 0 15px;
  color: #ffffff; /* Changed to white for better contrast on steel blue */
  opacity: 0;
  animation: fadeIn 2s ease-out 1s forwards;
}

.header-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff; /* White text on steel blue background */
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.8),
    0 0 10px rgba(0,0,0,0.5); /* Stronger shadow for steel blue background */
}

/* Bottom logo and trusted text */
.header-bottom {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3; /* Above gradients */
  opacity: 0;
  animation: fadeIn 2s ease-out 1.5s forwards;
}

.header-bottom img {
  max-width: 180px;
  height: auto;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.trusted-bar {
  display: inline-block;
  background: rgba(26, 35, 50, 0.8); /* Dark steel blue background */
  padding: 5px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

.trusted-bar p {
  font-size: 17px;
  font-weight: bold;
  color: #ffffff; /* White text for better contrast */
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Branding strip below header */
.branding-strip {
  width: 100%;
  height: 80px; /* Increased height for better spacing */
  background: linear-gradient(90deg, 
    #0f1419 0%,     /* Very dark steel */
    #1a2332 25%,    /* Dark steel blue */
    #2d3e52 50%,    /* Medium steel */
    #4a6085 75%,    /* Steel blue */
    #6b82a6 100%    /* Light steel blue */
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    0 2px 8px rgba(26, 35, 50, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.branding-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.brand-text {
  position: absolute;
  top: 50%; /* vertically center */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap; /* Force them on one line */
  display: inline-block; /* Treat as single line block */
}


.site-name {
  font-size: 1.8em;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.5),
    0 0 8px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  display: inline; /* Make sure it's inline */
}

.since {
  font-size: 1.1em;
  color: #e8f0ff;
  font-style: italic;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  display: inline; /* Make sure it's inline */
  margin-left: 15px; /* Space before the dash */
}

.since::before {
  content: '- '; /* Add dash before "Since 1997" */
}


/* Fade-in keyframes */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
  .header-content h1 { font-size: 36px; }
  .header-bottom img { max-width: 140px; }
  .header-strip { height: 180px; }
  
  .brand-text {
    flex-direction: column;
    gap: 5px;
  }
  
  .site-name {
    font-size: 1.4em;
  }
}

@media screen and (max-width: 600px) {
  .header-strip {
    background: linear-gradient(90deg, 
      #1a2332 0%, #2d3e52 25%, #4a6085 50%, 
      #6b82a6 75%, #8ca5c7 100%
    ), url('http://mindtraining.net/images/logo-headers/brain-circuitry4.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    flex-direction: column;
    height: 240px;
  }
  .header-strip img { display: none; }
  .header-content h1 { font-size: 28px; }
  
  .since {
    font-size: 1em;
  }
}

/* =============================
   CONTENT + BLOCKQUOTES
============================= */

/* Main content wrapper */
.blog-content {
  max-width: 1140px; /* Expanded width for portfolio and content */
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Blockquotes with flex layout */
.blockquote-flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin: 30px auto;
  border-left: 6px solid #8431C3;
  background-color: #F9F4FE;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blockquote-flex-container img {
  flex-shrink: 0;
  width: 103px;
  height: 130px;
  border-radius: 12px;
}

.blockquote-flex-container p {
  flex: 1 1 300px;
  font-size: 20px;
  color: #054DBC;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* Responsive tweaks for blockquotes */
@media (max-width: 767px) {
  .blockquote-flex-container {
    flex-direction: column;
    max-width: 100%;
    margin: 20px 0;
  }
  .blockquote-flex-container img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
  }
  .blockquote-flex-container p {
    flex: none;
  }
}
.blue-strip {
  background-color: #007BFF;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-name {
  font-size: 1.4em; /* 20% smaller than previous 1.75em */
  font-weight: bold;
  margin-bottom: 4px;
}

.since {
  font-size: 1em;
  font-weight: normal;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* =============================
   TESTIMONIALS SECTION (FINAL POLISHED VERSION)
============================= */

.testimonials-section {
  padding: 50px 20px;
  background: #f9f9fc;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.testimonials-section h2 {
  text-align: center;
  font-size: 34px;
  color: #054DBC;
  margin-bottom: 50px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  margin: 40px auto;
  max-width: 900px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonial-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 25px;
}

.testimonial-text {
  flex: 2;
  min-width: 280px;
}

.testimonial-image {
  flex: 1;
  min-width: 140px;
}

.testimonial-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.testimonial-card h3 {
  font-size: 21px;
  font-weight: 500;
  color: #3F51B5; /* softened blue */
  margin-bottom: 12px;
  text-shadow: none; /* remove the harsh black shadow */
}

.testimonial-card p {
  font-size: 19px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
}

.testimonial-name {
  font-size: 16px;
  color: #666;
  font-style: italic;
  margin-top: 6px;
}

blockquote {
  background: #f2f0fd;
  border-left: 5px solid #7b4fc2;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.read-more-toggle {
  background-color: #3F51B5;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.read-more-content {
  display: none;
}

/* =============================
   PAYMENT OPTIONS - MOBILE FRIENDLY
============================= */

.payment-options {
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.payment-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
  color: #054DBC;
}

.payment-option {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* allows the amounts to wrap on small screens */
  margin-bottom: 15px;
  gap: 10px;
}

.payment-option span {
  flex: 1 1 auto; /* allows spans to shrink and wrap */
  min-width: 120px; /* ensures readability */
  word-break: break-word; /* prevents overflow for long numbers */
}

@media (max-width: 480px) {
  .payment-title {
    font-size: 18px;
  }

  .payment-option span {
    min-width: unset;
    font-size: 16px;
  }
}

/* =============================
   TESTIMONIALS SECTION - MOBILE FRIENDLY ADDITIONS
============================= */

@media (max-width: 768px) {
  .testimonial-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-text {
    min-width: unset;
    flex: 1 1 auto;
  }

  .testimonial-image {
    min-width: unset;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .testimonial-card.visible .testimonial-image {
    opacity: 1;
    transform: translateY(0);
  }

  .testimonial-card {
    padding: 25px 20px;
    gap: 20px;
  }

  .testimonial-card h3 {
    font-size: 19px;
  }

  .testimonial-card p {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 30px 15px;
  }

  .testimonials-section h2 {
    font-size: 26px;
    margin-bottom: 35px;
  }

  .testimonial-card {
    padding: 20px 15px;
  }
}

/* =============================
   SELF HELP MOBILE FALLBACK
============================= */

@media only screen and (max-width: 768px) {
  .header-strip {
    background-image: url('http://mindtraining.net/images/logo-headers/header-man-success-program-mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px; /* adjust height as needed */
  }

  .header-strip img {
    display: none; /* hide original images on small screens */
  }
}


/* =============================
   CUSTOM HYPNOSIS PAGE MOBILE FALLBACK
============================= */
@media only screen and (max-width: 768px) {
  /* Target the custom hypnosis page specifically */
  body.custom-hypnosis-page .header-strip,
  /* OR if you don't have body classes, target by URL pattern */
  .header-strip {
    background-image: url('http://mindtraining.net/images/logo-headers/header-man-success-program2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
  }

  body.custom-hypnosis-page .header-strip img,
  .header-strip img {
    display: none; /* hide the three desktop images on mobile */
  }
}

/* FORCE MOBILE HEADER FIX - PUT AT VERY END OF CSS FILE */
@media screen and (max-width: 768px) {
  .header-strip {
    background: url('http://mindtraining.net/images/logo-headers/header-man-success-program2.png') center/cover no-repeat !important;
    height: 200px !important;
  }
  
  .header-strip img {
    display: none !important;
    visibility: hidden !important;
  }
}
/* =============================
   SPORTS HEADER MOBILE FALLBACKS
============================= */
@media screen and (max-width: 600px) {
  .sports-header {
    background: url('https://mindtraining.net/images/sports/sports-mobile-fallback.jpg') center/cover no-repeat;
  }
  .sports-header img {
    display: none;
  }

  /* Sport-specific overrides */
  .header-strip.sports-all-sports { background: url('http://mindtraining.net/images/logo-headers/header-all-sports-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-archery { background: url('http://mindtraining.net/images/logo-headers/header-archery-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-baseball { background: url('http://mindtraining.net/images/logo-headers/header-baseball-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-basketball { background: url('http://mindtraining.net/images/logo-headers/header-basketball-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-boxing { background: url('http://mindtraining.net/images/logo-headers/header-boxing-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-dancing { background: url('http://mindtraining.net/images/logo-headers/header-dance-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-fencing { background: url('http://mindtraining.net/images/logo-headers/header-fencing-mobile.png') center/cover no-repeat; }
  .header-strip.sports-golf { background: url('http://mindtraining.net/images/logo-headers/header-golf-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-gridiron { background: url('http://mindtraining.net/images/logo-headers/header-gridiron-mobile.jpeg') center/cover no-repeat; }
  .header-strip.sports-gymnastics { background: url('http://mindtraining.net/images/logo-headers/header-gymnastics-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-ice-hockey { background: url('http://mindtraining.net/images/logo-headers/header-ice-hockey-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-martial-arts { background: url('http://mindtraining.net/images/logo-headers/header-martial-arts-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-motor-sports { background: url('http://mindtraining.net/images/logo-headers/header-motor-sports-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-pool-snooker { background: url('http://mindtraining.net/images/logo-headers/header-pool-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-racquetball { background: url('http://mindtraining.net/images/logo-headers/header-racquetball-mobile.png') center/cover no-repeat; }
  .header-strip.sports-running { background: url('http://mindtraining.net/images/logo-headers/header-running-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-shooting { background: url('http://mindtraining.net/images/logo-headers/header-shooting-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-soccer { background: url('http://mindtraining.net/images/logo-headers/header-soccer-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-surfing { background: url('http://mindtraining.net/images/logo-headers/header-surfing-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-swimming { background: url('http://mindtraining.net/images/logo-headers/header-swimming-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-table-tennis { background: url('http://mindtraining.net/images/logo-headers/header-table-tennis-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-tennis { background: url('http://mindtraining.net/images/logo-headers/header-tennis-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-track-field { background: url('http://mindtraining.net/images/logo-headers/header-running-mobile.jpg') center/cover no-repeat; }
  .header-strip.sports-triathlon { background: url('http://mindtraining.net/images/logo-headers/header-triathlon-mobile.png') center/cover no-repeat; }
  .header-strip.sports-wrestling { background: url('http://mindtraining.net/images/logo-headers/header-wrestling-mobile.jpg') center/cover no-repeat; }
}


/* =============================
   PORTFOLIO GRID
============================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 40px auto;
}

.portfolio-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portfolio-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.recent-work-wrap {
  padding: 15px;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

/* Responsive columns */
@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
