﻿/*==================================================
  ALTO KIDS MODERN OVERRIDE ENGINE
  Injecting Premium, Mobile-First UI/UX 
==================================================*/

/* 1. GLOBAL PREMIUM COLOR PALETTE */
:root {
  /* Enforce Deep Blue and Vibrant Green as Core */
  --color-primary: #187496 !important;       /* Alto Deep Blue */
  --color-primary-5: #09A24F !important;     /* Alto Green */
  --color-primary-3: #FFC107 !important;     /* Warning/Warm Alto Yellow */
  
  /* Overwrite the childish/messy template colors */
  --color-primary-2: #187496 !important;
  --color-primary-4: #09A24F !important;
  --color-primary-6: #187496 !important;
  --color-primary-7: #187496 !important;
  --color-primary-8: #09A24F !important;
  --color-bg: #F8F9FA !important;            /* Very clean soft gray instead of pink */
  
  --color-body: #4A5568 !important;          /* Modern readable gray */
  --color-heading-1: #1A202C !important;     /* Near-black strong headings */
  
  --alto-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --alto-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --alto-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* 2. TYPOGRAPHY ENHANCEMENT */
body, p, a, span, li, h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
h1, h2, h3, h4 {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}
p {
  line-height: 1.6 !important;
}

/* 3. MODERN 'APPLE/STRIPE' BUTTON INTERFACES */
.rts-btn {
  border-radius: 50px !important;            /* Pill shape */
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--alto-shadow-sm) !important;
  border: none !important;
}
.rts-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--alto-shadow-md) !important;
  color: white !important;
  background-color: var(--color-primary-5) !important; /* Green action pop */
}
/* Strip ugly borders off buttons */
.rts-btn.btn-primary, .rts-btn.btn-secondary {
  border: none !important;
}

/* 4. GLASSMORPHISM & HEADER CLARITY */
.header-area {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  box-shadow: var(--alto-shadow-sm) !important;
}

/* 5. SOFTEN CARDS & WRAPPERS */
.course-wrapper-style-2, .wrapper-inner, .pricing-wrapper-style-1, .accordion-item {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: var(--alto-shadow-md) !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
.course-wrapper-style-2:hover, .pricing-wrapper-style-1:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--alto-shadow-lg) !important;
}

.accordion-button {
  background-color: #f8f9fa !important;
  border-radius: 15px !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
}

/* 6. MOBILE FIRST UX OPTIMIZATION (Below 992px - Tablets & Phones) */
@media screen and (max-width: 991px) {
  
  /* Slash all massive white-space padding globally */
  .rts-section-gap {
    padding: 60px 0 !important;
  }
  .rts-section-gapTop {
    padding-top: 60px !important;
  }
  .rts-section-gapBottom {
    padding-bottom: 60px !important;
  }

  /* Make text highly readable, not blocky */
  h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.8rem !important; }
  h3, h4 { font-size: 1.4rem !important; }
  
  /* Buttons must be massively tappable */
  .rts-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
  }
  
  /* Fix cramped grid layouts */
  .col-lg-6, .col-md-6 {
    margin-bottom: 25px !important;
  }
  
  /* Course/Pricing cards fix internal padding */
  .course-wrapper-style-2 .content, .pricing-wrapper-style-1 {
    padding: 25px !important;
  }

  /* Ensure footer info stacks nicely */
  .footer-widget-style-1 {
    text-align: left !important;
    margin-bottom: 30px !important;
  }
  
  /* Eliminate the messy breadcrumb height on phone */
  .rts-breadcrumb-area {
    padding: 60px 0 !important;
    min-height: auto !important;
  }
}
