/*
Theme Name: Upside Learning
Theme URI: https://upsidelearning.com
Author: Upside Learning
Author URI: https://upsidelearning.com
Description: Custom WordPress theme for Upside Learning - AI-Powered Learning Solutions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upside-learning
*/

/* ========================================
   CSS Custom Properties / Design Tokens
   ======================================== */
:root {
  --green-primary: #6d9a22;
  --green-secondary: #a8cf45;
  --green-hover: #8bb83a;
  --green-light: #f0f7e0;
  --orange-primary: #f26522;
  --orange-secondary: #d94f18;
  --dark: #030213;
  --white: #ffffff;
  --radius: 0.625rem;
}


  
/* ========================================
   Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-y: scroll !important;
  scrollbar-width: auto !important;
}

html::-webkit-scrollbar {
  display: block !important;
  width: 8px !important;
}

html::-webkit-scrollbar-track {
  background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   Mask Gradient for Logo Marquee
   ======================================== */
.mask-gradient {
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.lets-talk-form input[type="tel"] {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}
/* ========================================
   Animations
   ======================================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

.animate-fade-in-up {
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-marquee-left {
  animation: marquee-left 50s linear infinite;
}

.animate-marquee-right {
  animation: marquee-right 60s linear infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-scroll-dot {
  animation: scroll-dot 1.5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-1000 { animation-delay: 1s; }
.delay-1500 { animation-delay: 1.5s; }

/* ========================================
   Navigation Styles
   ======================================== */
.nav-scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Switch nav text to white when scrolled */
.nav-scrolled button,
.nav-scrolled > div > ul > li > a,
.nav-scrolled > div > ul > li > button {
  color: rgba(255, 255, 255, 0.8) !important;
}
.nav-scrolled button:hover,
.nav-scrolled > div > ul > li > a:hover,
.nav-scrolled > div > ul > li > button:hover {
  color: #fff !important;
}
.nav-scrolled #mobile-menu-btn {
  color: #fff !important;
}
/* Keep the CTA button styled correctly */
.nav-scrolled > div > ul > li:last-child > a {
  color: #fff !important;
  background-color: #a8cf45 !important;
}

/* Mega Menu — fixed to viewport so it never clips at screen edges */
.mega-menu {
  position: fixed;
  top: 72px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(10px);
  z-index: 60;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Shrink top offset when nav is in scrolled (compact) state */
.nav-scrolled ~ * .mega-menu,
#main-nav.nav-scrolled .mega-menu {
  top: 62px;
}

/* Invisible bridge for dropdown hover */
.mega-menu-bridge {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 1.5rem;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.nav-item:hover .mega-menu-bridge {
  pointer-events: auto;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   Parallax Hero
   ======================================== */
.hero-parallax {
  position: relative;
  overflow: hidden;
}

.hero-parallax .hero-bg {
  will-change: transform;
  transition: transform 0.1s linear;
  /* Extend 20% taller so parallax shift doesn't expose body bg */
  top: 0;
  left: 0;
  right: 0;
  bottom: -20%;
}

/* ========================================
   Vertical Scroll Solutions
   ======================================== */
.solutions-container {
  height: 400vh;
  position: relative;
}

.solutions-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.solution-card {
  position: absolute;
  inset: 0;
  transition: transform 0.1s linear;
}

/* Hide scrollbars while keeping scroll functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ========================================
   Image Fallback
   ======================================== */
.img-fallback {
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
}

/* ========================================
   Gradient Text
   ======================================== */
.text-gradient-green {
  background: linear-gradient(to right, #a8cf45, #8bb83a, #a8cf45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-dark {
  background: linear-gradient(to right, #111827, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ========================================
   WordPress Specific Overrides
   ======================================== */
.wp-block-group,
.entry-content > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Remove default WordPress styles that conflict */
.entry-content p { margin-bottom: 0; }
img { max-width: 100%; height: auto; }

/* Blog carousel card images — fixed height */
.blog-carousel-track img { height: 180px !important; object-fit: cover; }

/* Blog carousel arrow centering */
.blog-prev, .blog-next { top: 50%; transform: translateY(-50%); }
a { text-decoration: none; color: inherit; }

/* Inline links within paragraphs should always show underline */
p a, .leading-relaxed a {
  text-decoration: underline !important;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   Bootstrap Overrides
   ======================================== */
/* Prevent Bootstrap from overriding Tailwind base styles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  background-size: 50%;
  padding: 1rem;
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #a8cf45;
}

/* Modal z-index above everything */
.modal-backdrop {
  z-index: 9998;
}
.modal {
  z-index: 9999;
}

/* Prevent Bootstrap button resets from affecting our buttons */
.modal .btn-close:focus {
  box-shadow: none;
}

/* ========================================
   Contact Form 7 - Dark Theme Styling
   ======================================== */

/* Row grid layout */
.wpcf7 .cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wpcf7 .cf7-row-2col .cf7-col {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
}

.wpcf7 .cf7-col-full {
  flex: 1 1 100%;
}

/* Labels */
.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.wpcf7 .cf7-req {
  color: #db2723;
  margin-left: 2px;
}

/* Reduce CF7 default spacing between label and input */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0;
}

.wpcf7 p {
  margin-bottom: 0;
}

.wpcf7 br {
  display: none;
}

/* All input fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 input.wpcf7-quiz {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpcf7 input.wpcf7-quiz:focus {
  outline: none;
  border-color: #a8cf45;
  background: rgba(255, 255, 255, 0.15);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Select dropdown arrow */
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8cf45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.wpcf7 select option {
  background: #1f2937;
  color: #fff;
}

/* Textarea - 5 rows height */
.wpcf7 textarea {
  height: 7.5rem;
  resize: vertical;
}

/* Quiz label */
.wpcf7 .wpcf7-quiz-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Captcha row */
.wpcf7 .cf7-captcha-row {
  align-items: flex-start;
}

/* Checkbox / Subscribe */
.wpcf7 .cf7-subscribe-row {
  margin-bottom: 0.5rem;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

/* Submit button */
.wpcf7 input[type="submit"],
.wpcf7 .ul-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #a8cf45;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  padding: 0.8rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .ul-btn:hover {
  background: #8bb83a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 207, 69, 0.3);
}

.wpcf7 .cf7-submit-row {
  text-align: center;
  margin-top: 0.5rem;
}

/* Hidden fields */
.wpcf7 .f-hidden {
  display: none !important;
}

/* Validation */
.wpcf7 .wpcf7-response-output {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 14px;
  margin-top: 1rem;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #f87171;
  font-size: 13px;
  margin-top: 0.25rem;
}

/* Business email validation error */
.cf7-business-email-error {
  color: #f87171;
  font-size: 13px;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7 input.cf7-invalid {
  border-color: #f87171 !important;
}

/* reCAPTCHA badge position */
.wpcf7 .cf7-captcha-row .wpcf7-form-control-wrap {
  display: block;
}

/* Light theme form (scoped to .lets-talk-form) */
.lets-talk-form .wpcf7 label {
  color: #000;
  font-weight: 700;
}

.lets-talk-form .wpcf7 input[type="text"],
.lets-talk-form .wpcf7 input[type="email"],
.lets-talk-form .wpcf7 input[type="tel"],
.lets-talk-form .wpcf7 select,
.lets-talk-form .wpcf7 textarea,
.lets-talk-form .wpcf7 input.wpcf7-quiz {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  border-radius: 0.75rem;
}

.lets-talk-form .wpcf7 input::placeholder,
.lets-talk-form .wpcf7 textarea::placeholder {
  color: #9ca3af;
}

.lets-talk-form .wpcf7 input[type="text"]:focus,
.lets-talk-form .wpcf7 input[type="email"]:focus,
.lets-talk-form .wpcf7 input[type="tel"]:focus,
.lets-talk-form .wpcf7 select:focus,
.lets-talk-form .wpcf7 textarea:focus,
.lets-talk-form .wpcf7 input.wpcf7-quiz:focus {
  border-color: #a8cf45;
  background: #fff;
  outline: none;
}

.lets-talk-form .wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.lets-talk-form .wpcf7 select option {
  background: #fff;
  color: #000;
}

.lets-talk-form .wpcf7 .wpcf7-quiz-label {
  color: #000;
  font-weight: 700;
}

.lets-talk-form .wpcf7 .wpcf7-checkbox .wpcf7-list-item-label {
  color: #6b6b6b;
}

.lets-talk-form .wpcf7 .cf7-req {
  color: #db2723;
}

/* Light submit button */
.wpcf7 .ul-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  padding: 0.8rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 .ul-btn-light:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .wpcf7 .cf7-row-2col .cf7-col {
    flex: 1 1 100%;
  }
}

/* @media (max-width: 768px) {
  .mobile-font-30,
  h1,
  h2 {
    font-size: 30px;
  }
} */
/* ========================================
   Kirti styles
   ======================================== */
   .blackbg-heading{color:#fff;}
   .hero-heading {
    font-size: 2.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}
   .section-heading {
    line-height: 1.2;
}
   .gobeyondsec img{
    width: auto;
    height: 45px;
   }
.press-release-content ul,.pr-list {
    list-style-type: disc;
    padding-left: 0;
}
/* ========================================
   My responsive styles
   ======================================== */
   .content-link{
    color: #a8cf45;
    text-decoration: underline;
   }
   .content-link:hover{
    color: #8ab530;
   }

   @media screen and (max-width:767px){

    #contact-v2 .contact-form-card{
      padding: 0 !important;
    }
    #who-we-are-v2 .wwa-content{
      padding: 20px 0px!important;
    }
    .bannermobile-heading{
      font-size: 30px;
    }
    .bannermobile-h2{
      font-size: 25px !important;
    }
   }