/* Premium Modern & Calming Design System */
:root {
  /* Soft Pastel Colors for Mental Health */
  --primary: #2B7A78;       /* Deep calm teal */
  --primary-light: #3AAFA9; /* Bright calm teal */
  --primary-soft: #DEF2F1;  /* Very soft teal background */
  --secondary: #FEFFFF;     /* Pure soft white */
  --accent: #FFD166;        /* Warm uplifting yellow */
  
  --text-dark: #17252A;     /* Soft black */
  --text-muted: #64748B;    /* Cool gray */
  --text-light: #F8FAFC;    /* Off-white text */
  
  --bg-main: #FAFAFA;       /* Main background */
  --bg-card: #FFFFFF;       /* Card background */
  --bg-light: #F8FAFC;      /* Crisp light grey for inputs */
  
  --success: #06D6A0;       /* Green for success */
  --error: #EF476F;         /* Soft red for errors */
  
  /* Typography */
  --font-main: 'Outfit', 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif; /* For elegant headings */
  
  /* Border Radius for Softness */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -5px rgba(43, 122, 120, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

/* Bootstrap Overrides */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-secondary { color: var(--text-muted) !important; }
.bg-secondary { background-color: var(--primary-light) !important; }
.bg-light { background-color: var(--primary-soft) !important; }
.text-dark { color: var(--text-dark) !important; }

/* Glassmorphism Utilities */
.glass-panel, .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(43, 122, 120, 0.2);
}

/* Buttons */
.btn-premium {
  background: var(--primary);
  color: var(--secondary);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-premium:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-accent:hover {
  background: #FFC13B;
  transform: translateY(-2px);
}

/* Form Elements */
.input-premium {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: var(--text-dark);
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.input-premium:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}







/* Premium Footer Link Hover Effects */
.footer-link {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.footer-link:hover {
    transform: translateX(8px);
}
.footer-link:hover .footer-link-text {
    color: var(--primary-light) !important;
    font-weight: 500;
}
.footer-link:hover i {
    color: var(--primary) !important;
}





/* Google Translate Custom Styling - Completely hidden until select dropdown is loaded */
.custom-translate-container {
    display: none;
    min-height: 32px;
    height: 32px;
    align-items: center;
    border-radius: var(--radius-pill);
    background: var(--primary-soft) !important;
    padding: 0 8px 0 12px;
    border: 1px solid var(--primary);
    margin-right: 15px;
    transition: opacity 0.25s ease, background 0.2s ease;
    box-sizing: border-box;
}
.custom-translate-container:empty,
.custom-translate-container:not(:has(.goog-te-combo)) {
    display: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
}
.custom-translate-container:has(.goog-te-combo),
.custom-translate-container.is-loaded {
    display: inline-flex !important;
}
.goog-te-gadget {
    font-family: var(--font-main) !important;
    font-size:  0px !important;
    color: transparent !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.goog-te-gadget .goog-te-combo {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 12px !important;
    font-family: var(--font-main) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    width: 100px !important;
    max-width: 100px !important;
    text-overflow: ellipsis;
}
.goog-logo-link, .goog-te-gadget span {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-te-banner-frame {
    display: none !important;
}

/* Mobile Navbar Toggler Enhancement */
.navbar-toggler {
    border: none !important;
    padding: 8px 12px !important;
    background: rgba(43, 122, 120, 0.1) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    outline: none !important;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(43, 122, 120, 0.25) !important;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-toggler {
        display: none !important;
    }
}
.navbar-toggler .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232B7A78' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Premium 3D Game Map Aesthetic */
.game-map-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 90% at center, transparent 40%, rgba(255,255,255,0.7) 75%, #ffffff 100%);
    z-index: 15;
}

.game-map-container {
    border-radius: 100px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 65%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 90% at center, black 65%, transparent 100%);
}

.map-point {
    position: absolute;
    z-index: 10;
    text-decoration: none;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-point:hover {
    transform: translate(-50%, -115%) scale(1.15);
    z-index: 20;
}

.pin-shadow {
    position: absolute;
    bottom: -5px;
    width: 20px;
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    filter: blur(3px);
    transition: all 0.4s ease;
}

.map-point:hover .pin-shadow {
    width: 25px;
    height: 12px;
    bottom: -15px;
    background: rgba(0,0,0,0.3);
    filter: blur(5px);
}

.pin-body {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(17,153,142,0.6), inset 0 2px 0 rgba(255,255,255,0.5);
    border: 3px solid white;
    position: relative;
    animation: float-pin 3s ease-in-out infinite;
}

.map-point:nth-child(2n) .pin-body { animation-delay: 0.5s; }
.map-point:nth-child(3n) .pin-body { animation-delay: 1.2s; }
.map-point:nth-child(4n) .pin-body { animation-delay: 0.8s; }
.map-point:nth-child(5n) .pin-body { animation-delay: 1.5s; }

@keyframes float-pin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pin-label {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    color: #2c3e50;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.map-point:hover .pin-label {
    background: white !important;
    color: #11998e;
    opacity: 1;
    box-shadow: 0 8px 25px rgba(17,153,142,0.3);
}

/* Premium Form Visual Input System */
.visual-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.visual-input-wrap .input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 1.05rem;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 5;
}
.visual-input-wrap .input-icon-top {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #94A3B8;
    font-size: 1.05rem;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 5;
}
.visual-input-wrap .form-control {
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 18px 14px 46px !important;
    font-size: 0.95rem !important;
    color: #1E293B !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100%;
}
.visual-input-wrap .form-control:hover {
    border-color: #94A3B8 !important;
    background: #FFFFFF !important;
}
.visual-input-wrap .form-control:focus {
    background: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(43, 122, 120, 0.15) !important;
    outline: none !important;
}
.visual-input-wrap .form-control::placeholder {
    color: #94A3B8 !important;
    font-weight: 400;
}
.visual-input-wrap:focus-within .input-icon,
.visual-input-wrap:focus-within .input-icon-top {
    color: var(--primary) !important;
    transform: scale(1.15);
}

/* Premium Blog Card System */
.blog-card {
    background: #FFFFFF;
    border: 1px solid rgba(43, 122, 120, 0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(43, 122, 120, 0.12);
    border-color: rgba(43, 122, 120, 0.3);
}
.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    width: 100%;
    background: #F1F5F9;
}
.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.08);
}
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}
.blog-card-title a {
    color: #1E293B;
    text-decoration: none;
    transition: color 0.25s ease;
}
.blog-card:hover .blog-card-title a {
    color: var(--primary);
}
.blog-card-excerpt {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-card-footer {
    padding: 16px 24px;
    background: #F8FAFC;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-pill {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid rgba(43, 122, 120, 0.15);
    background: #FFFFFF;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(43, 122, 120, 0.25);
}

/*--------------------------------------------------------------
# Mind Meadow Animated Logo Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(222, 242, 241, 0.5) 0%, #FFFFFF 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsing outer aura ring */
#preloader:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-left: -60px;
  border-radius: 34px;
  background: transparent;
  border: 3.5px solid rgba(43, 122, 120, 0.08);
  border-top-color: #7BC2D4;
  border-right-color: #A5CE4F;
  border-bottom-color: #4BA265;
  border-left-color: #2B7A78;
  animation: preloader-ring-spin 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 30px rgba(58, 175, 169, 0.2);
}

/* Animated logo icon */
#preloader:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  background-image: url("../img/mindmeadow_icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: preloader-logo-float 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 22px rgba(43, 122, 120, 0.28));
}

@keyframes preloader-ring-spin {
  0% {
    transform: rotate(0deg) scale(0.92);
    border-radius: 28px;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    border-radius: 50%;
  }
  100% {
    transform: rotate(360deg) scale(0.92);
    border-radius: 28px;
  }
}

@keyframes preloader-logo-float {
  0% {
    transform: scale(0.92) translateY(2px);
    filter: drop-shadow(0 6px 14px rgba(43, 122, 120, 0.15));
  }
  50% {
    transform: scale(1.05) translateY(-3px);
    filter: drop-shadow(0 16px 28px rgba(43, 122, 120, 0.35));
  }
  100% {
    transform: scale(0.92) translateY(2px);
    filter: drop-shadow(0 6px 14px rgba(43, 122, 120, 0.15));
  }
}
