/* ============================================
   GEN Z LAYOUT OVERHAUL - CSS ONLY
   Inspired by: lexilexi.ai, wix.com/studio, ai4.io
   NO HTML/JS CHANGES - Pure CSS Grid/Flexbox
   ============================================ */

/* ==== GLOBAL ANIMATIONS ==== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ==== LIGHT THEME - WHITE & BRAND ==== */
/* FORCE OVERRIDE ALL DARK THEME CSS */
:root {
  --brand-primary: #003092 !important;
  --brand-primary-light: #003092 !important;
  --brand-primary-dark: #003092 !important;
  --background-cream: #FFFFFF !important;
  --background-white: #FFFFFF !important;
  --text-primary: #003092 !important;
  --text-secondary: #003092 !important;
  --border-soft: #E5E7EB !important;
}

body {
  position: relative;
  overflow-x: hidden;
  background: #ffffff !important;
  color: #003092 !important;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #ffffff;
  opacity: 1;
  pointer-events: none;
}

/* Floating background shapes */
body::after {
  content: '';
  position: fixed;
  top: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 48, 146, 0.05), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Video background container - add video element with class="bg-video" */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.15;
  filter: blur(2px);
}

/* ==== HOMEPAGE LAYOUT OVERHAUL ==== */
section#heroSection.text-center {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px !important;
  align-items: center !important;
  padding: 80px 20px !important;
  text-align: left !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  position: relative;
  animation: fadeIn 0.8s ease-out;
}

/* LEFT COLUMN: HERO TEXT - match site typography */
section#heroSection.text-center > p.text-lg,
section#heroSection.text-center > p {
  grid-column: 1 !important;
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #003092 !important;
  margin-bottom: 1rem !important;
  animation: slideInLeft 0.8s ease-out;
  text-align: left !important;
  position: relative;
}

section#heroSection.text-center > p::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #003092, #ff8e00);
  border-radius: 2px;
  animation: slideInLeft 1s ease-out 0.3s both;
}

/* RIGHT COLUMN: CTA BUTTON - SINGLE BUTTON ONLY */
section#heroSection.text-center > div#shareBtnContainer {
  grid-column: 2 !important;
  animation: slideInRight 0.8s ease-out 0.2s both;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

/* Ensure only one button shows at a time */
section#heroSection.text-center #shareBtn[style*="display: none"],
section#heroSection.text-center #shareBtnLoggedIn[style*="display: none"] {
  display: none !important;
}

section#heroSection.text-center #shareBtn:not([style*="display: none"]),
section#heroSection.text-center #shareBtnLoggedIn:not([style*="display: none"]) {
  width: 100% !important;
  max-width: 400px !important;
  justify-self: center !important;
}

/* Testimonial cards container - create with JS or add HTML */
.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.5s; }

/* CTA Button styling */
#heroSection .btn-primary {
  font-size: 1.2rem !important;
  padding: 18px 36px !important;
  border-radius: 50px !important;
  background: linear-gradient(135deg, #003092 0%, #ff8e00 100%) !important;
  box-shadow: 0 10px 30px rgba(0, 48, 146, 0.3) !important;
  transition: all 0.3s ease !important;
  animation: pulse 2s ease-in-out infinite !important;
}

#heroSection .btn-primary:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(0, 48, 146, 0.4) !important;
  background: linear-gradient(135deg, #003092 0%, #003092 100%) !important;
}

/* Mobile: Stack columns */
@media (max-width: 968px) {
  section#heroSection.text-center {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
  }
  
  section#heroSection.text-center > p {
    grid-column: 1 !important;
    font-size: 1.5rem !important;
    text-align: center !important;
  }
  
  section#heroSection.text-center > button,
  section#heroSection.text-center > div {
    grid-column: 1 !important;
  }
}

/* ==== SEARCH BAR MODERN LAYOUT ==== */
#searchFilterSection {
  margin-top: 60px !important;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

#searchFilterSection > div {
  background: #ffffff !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 48, 146, 0.08) !important;
  padding: 24px !important;
  border: 1px solid #E5E7EB !important;
}

.search-container {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.search-input {
  min-height: 56px !important;
  font-size: 1.1rem !important;
  border-radius: 16px !important;
  border: 2px solid #E5E7EB !important;
  background: #ffffff !important;
  transition: all 0.3s ease !important;
}

.search-input:focus {
  border-color: #003092 !important;
  box-shadow: 0 0 0 4px rgba(0, 48, 146, 0.1) !important;
  transform: scale(1.01);
}

/* Filters grid */
#searchFilterSection .flex {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 16px !important;
}

/* ==== POST CARDS STAGGERED ANIMATION ==== */
div#postsContainer.space-y-6,
div#postsContainer {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
  gap: 30px !important;
  margin-top: 40px !important;
}

div.post-card.mb-6,
div.post-card {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  animation: fadeInUp 0.6s ease forwards !important;
  background: white !important;
  border-radius: 20px !important;
  padding: 28px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 0 !important;
}

div.post-card:nth-child(1) { animation-delay: 0.1s; }
div.post-card:nth-child(2) { animation-delay: 0.2s; }
div.post-card:nth-child(3) { animation-delay: 0.3s; }
div.post-card:nth-child(4) { animation-delay: 0.4s; }
div.post-card:nth-child(5) { animation-delay: 0.5s; }
div.post-card:nth-child(6) { animation-delay: 0.6s; }

div.post-card:hover {
  box-shadow: 0 8px 30px rgba(0, 48, 146, 0.15) !important;
  border-color: #003092 !important;
}

@media (max-width: 768px) {
  div#postsContainer.space-y-6,
  div#postsContainer {
    grid-template-columns: 1fr !important;
  }
}

/* ==== SHARE SALARY PAGE DUAL COLUMN ==== */
section#salaryPage:not(.hidden) {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 50px !important;
  padding: 40px 0 !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  animation: fadeIn 0.8s ease-out;
}

/* LEFT COLUMN: FORM */
section#salaryPage > h1.text-3xl,
section#salaryPage > h1 {
  grid-column: 1 / -1 !important;
  font-size: 3rem !important;
  margin-bottom: 20px !important;
  animation: fadeInUp 0.6s ease-out;
}

section#salaryPage > .form-container.p-6:first-of-type,
section#salaryPage > .form-container:first-of-type {
  grid-column: 1 !important;
  background: white !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
  animation: slideInLeft 0.8s ease-out;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  position: relative !important;
}

/* Salary Analytics Section */
#salaryAnalyticsContainer {
  grid-column: 1 / -1 !important;
  margin-top: 60px !important;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

#salaryStatsCards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
}

#salaryStatsCards > div {
  background: white !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

#salaryStatsCards > div:nth-child(1) { animation-delay: 0.1s; }
#salaryStatsCards > div:nth-child(2) { animation-delay: 0.2s; }
#salaryStatsCards > div:nth-child(3) { animation-delay: 0.3s; }
#salaryStatsCards > div:nth-child(4) { animation-delay: 0.4s; }

#salaryStatsCards > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

form#salaryForm.space-y-4,
form#salaryForm {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  width: 100% !important;
  position: relative !important;
}

form#salaryForm > div {
  width: 100% !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure nested grid in form works properly */
form#salaryForm > div.grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

form#salaryForm > div.grid > div {
  width: 100% !important;
  position: relative !important;
}

/* Salary slider container */
form#salaryForm > div:has(#salarySliderContainer),
form#salaryForm > div[id="salarySliderContainer"] {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

/* Info box */
form#salaryForm > div.bg-blue-50 {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Submit button */
form#salaryForm > button {
  width: 100% !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
}

.input-field,
.filter-select {
  min-height: 56px !important;
  border-radius: 12px !important;
  border: 2px solid #e0e0e0 !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
}

.input-field:focus,
.filter-select:focus {
  border-color: #003092 !important;
  box-shadow: 0 0 0 4px rgba(0, 48, 146, 0.1) !important;
  transform: translateY(-2px);
}

/* RIGHT COLUMN: SALARY INSIGHTS */
.salary-insights {
  grid-column: 2 !important;
  background: linear-gradient(135deg, #003092 0%, #ff8e00 100%) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  color: white !important;
  box-shadow: 0 8px 30px rgba(0, 48, 146, 0.25) !important;
  animation: slideInRight 0.8s ease-out;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.insight-card {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.insight-card:nth-child(1) { animation-delay: 0.2s; }
.insight-card:nth-child(2) { animation-delay: 0.4s; }
.insight-card:nth-child(3) { animation-delay: 0.6s; }

.insight-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.insight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.insight-card p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Mobile: Stack columns */
@media (max-width: 1100px) {
  section#salaryPage:not(.hidden) {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
  }
  
  section#salaryPage .form-container {
    grid-column: 1 !important;
    padding: 24px 20px !important;
  }
  
  .salary-insights {
    grid-column: 1 !important;
    position: static !important;
  }
  
  form#salaryForm.space-y-4,
  form#salaryForm {
    gap: 20px !important;
  }
  
  /* Stack form fields on mobile */
  form#salaryForm > div.grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Smaller mobile devices */
@media (max-width: 768px) {
  section#salaryPage:not(.hidden) {
    padding: 16px 12px !important;
    gap: 24px !important;
  }
  
  section#salaryPage > h1 {
    font-size: 2rem !important;
    margin-bottom: 16px !important;
  }
  
  section#salaryPage .form-container {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  
  form#salaryForm.space-y-4,
  form#salaryForm {
    gap: 16px !important;
  }
  
  form#salaryForm > div.grid {
    gap: 12px !important;
  }
  
  .input-field,
  .filter-select {
    min-height: 48px !important;
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
  }
  
  #salarySliderContainer {
    padding: 8px 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }
  
  #salarySliderContainer .flex {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  #salarySliderContainer input {
    min-width: 70px !important;
    flex-shrink: 0 !important;
  }
  
  #salarySliderContainer .grow {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }
  
  #salarySliderContainer > div {
    width: 100% !important;
  }
  
  form#salaryForm > div.bg-blue-50 {
    padding: 16px !important;
  }
  
  form#salaryForm > button {
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }
}

/* ==== CAREER TIPS MASONRY GRID ==== */
section#howToPage.hidden {
  animation: fadeIn 0.8s ease-out;
}

section#howToPage:not(.hidden) {
  animation: fadeIn 0.8s ease-out;
}

section#howToPage > h1.text-3xl,
section#howToPage > h1 {
  font-size: 3rem !important;
  margin-bottom: 40px !important;
  animation: fadeInUp 0.6s ease-out;
}

.howto-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px !important;
  margin: 40px 0 !important;
}

/* VARYING CARD HEIGHTS (MASONRY EFFECT) */
.howto-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: fadeInUp 0.6s ease forwards !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 32px !important;
  box-shadow: 0 4px 20px rgba(0, 48, 146, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer !important;
  border: 2px solid #E5E7EB !important;
  position: relative;
  overflow: hidden;
}

.howto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.howto-card:hover::before {
  left: 100%;
}

/* Removed row spanning for cleaner 2x2 grid layout */

.howto-card:nth-child(1) { animation-delay: 0.1s; }
.howto-card:nth-child(2) { animation-delay: 0.2s; }
.howto-card:nth-child(3) { animation-delay: 0.3s; }
.howto-card:nth-child(4) { animation-delay: 0.4s; }

.howto-card:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 8px 30px rgba(0, 48, 146, 0.2) !important;
  border-color: #003092 !important;
}

.howto-icon {
  font-size: 64px !important;
  margin-bottom: 20px !important;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.howto-card:nth-child(2) .howto-icon {
  animation-delay: 0.5s;
}

.howto-card:nth-child(3) .howto-icon {
  animation-delay: 1s;
}

.howto-card:nth-child(4) .howto-icon {
  animation-delay: 1.5s;
}

/* Mobile: Single column */
@media (max-width: 768px) {
  .howto-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Blog-style card layout for Career Tips */
.howto-blog-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  transition: all 0.3s ease;
  background: #ffffff;
  border: 1px solid #E5E7EB;
}

.howto-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 48, 146, 0.15);
  border-color: #003092;
}

.aspect-\\[16\\/9\\] {
  aspect-ratio: 16 / 9;
}

.text-muted-foreground {
  color: var(--text-secondary);
}

.bg-card {
  background-color: #ffffff;
}

.bg-secondary {
  background-color: #FFFFFF;
}

.text-secondary-foreground {
  color: var(--text-secondary);
}

.text-card-foreground {
  color: var(--text-primary);
}

#howToPage .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  #howToPage .container {
    padding: 0 4rem;
  }
}

/* ==== NAVIGATION MODERN STYLING ==== */
.nav-bar {
  background: #ffffff !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 2px 10px rgba(0, 48, 146, 0.1) !important;
  border-bottom: 1px solid #E5E7EB !important;
}

.nav-container a,
.nav-container button,
.nav-tab,
.nav-container * {
  color: #003092 !important;
}

.nav-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 40px !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
}

.nav-left {
  display: flex !important;
  align-items: center !important;
  gap: 40px !important;
}

.nav-tabs {
  display: flex !important;
  gap: 8px !important;
}

.nav-tab {
  position: relative !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  color: #003092 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #003092, #ff8e00);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-tab:hover::after,
.nav-tab.active::after {
  width: 80%;
}

.nav-tab:hover {
  background: rgba(0, 48, 146, 0.1) !important;
  transform: translateY(-2px);
}

.nav-tab.active {
  background: rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
}

/* ==== BUTTONS MODERN STYLING ==== */
.btn-primary {
  background: linear-gradient(135deg, #003092 0%, #ff8e00 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  box-shadow: 0 8px 25px rgba(0, 48, 146, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer !important;
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-primary > *,
.btn-primary svg,
.btn-primary img {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn-primary svg + span,
.btn-primary span + svg,
.btn-primary img + span,
.btn-primary span + img {
  margin-left: 0;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 35px rgba(0, 48, 146, 0.4) !important;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02) !important;
}

.btn-secondary {
  background: white !important;
  color: #003092 !important;
  border: 2px solid #003092 !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-secondary > *,
.btn-secondary svg,
.btn-secondary img {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn-secondary svg + span,
.btn-secondary span + svg,
.btn-secondary img + span,
.btn-secondary span + img {
  margin-left: 0;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: rgba(0, 48, 146, 0.1);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  background: #003092 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 48, 146, 0.25);
}

/* ==== GENERAL BUTTON STYLING - ICON/TEXT SPACING ==== */
button,
.btn-primary,
.btn-secondary,
.helpful-btn,
[class*="btn-"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

button > *,
button svg,
button img,
.btn-primary > *,
.btn-secondary > *,
.helpful-btn > * {
  flex-shrink: 0;
}

button svg,
button img,
.btn-primary svg,
.btn-primary img,
.btn-secondary svg,
.btn-secondary img,
.helpful-btn svg,
.helpful-btn img {
  position: relative;
  z-index: 1;
}

/* ==== HELPFUL BUTTON FADE EFFECT ==== */
.helpful-btn {
  position: relative;
  overflow: hidden;
}

.helpful-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(0, 48, 146, 0.1);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.helpful-btn:hover::before {
  opacity: 1;
}

.helpful-btn > * {
  position: relative;
  z-index: 1;
}

/* ==== FORM CONTAINERS ==== */
.form-container {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 48, 146, 0.08) !important;
  padding: 40px !important;
  border: 1px solid #E5E7EB !important;
  animation: fadeInUp 0.6s ease-out;
}

/* ==== POST ARTICLE ==== */
#howToSubPage .post-article {
  max-width: 720px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 0 32px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
}
.post-article {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 48px !important;
  box-shadow: 0 4px 20px rgba(0, 48, 146, 0.08) !important;
  border: 1px solid #E5E7EB !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  animation: fadeInUp 0.6s ease-out;
}

/* ==== MENTORSHIP PAGE ==== */
#mentorshipPage {
  animation: fadeIn 0.8s ease-out;
}

main:has(#mentorshipPage:not(.hidden)) {
  max-width: 100% !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

#mentorshipPage:not(.hidden) {
  max-width: 100% !important;
  width: 100% !important;
}

#mentorshipAskSection .mentorship-grid {
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
  width: 100% !important;
}

#mentorshipAskSection .form-container {
  width: 100% !important;
  max-width: 100% !important;
}

.mentorship-hero {
  animation: fadeInUp 0.8s ease-out;
  background: linear-gradient(135deg, rgba(0, 48, 146, 0.08), rgba(250, 248, 245, 0.95)) !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 20px rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
}

.mentorship-hero * {
  color: #003092 !important;
}

.mentorship-hero h1 {
  color: #003092 !important;
}

.mentorship-tabs {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
}

.mentorship-tab {
  color: #003092 !important;
}

.mentorship-tab.active {
  background: rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
  border: 1px solid #003092 !important;
  box-shadow: 0 4px 15px rgba(0, 48, 146, 0.15) !important;
}

.mentorship-section {
  animation: fadeInUp 0.8s ease-out;
}

.accent-card {
  background: linear-gradient(160deg, rgba(0, 48, 146, 0.08), rgba(250, 248, 245, 0.98)) !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
}

.accent-card * {
  color: #003092 !important;
}

.info-list .icon {
  background: rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
}

.info-list .item p {
  color: #003092 !important;
}

.pill {
  background: rgba(0, 48, 146, 0.1) !important;
  border: 1px solid #E5E7EB !important;
  color: #003092 !important;
}

/* ==== VERIFIED BADGE HOVER EFFECTS ==== */
.verified-badge,
.badge-soft {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  background: rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
  animation: pulse 2s ease-in-out infinite !important;
}

.verified-badge:hover,
.badge-soft:hover {
  background: rgba(0, 48, 146, 0.2) !important;
  transform: scale(1.05);
}

/* ==== MOBILE RESPONSIVENESS ==== */
@media (max-width: 768px) {
  #howToSubPage .post-article { padding: 0 0 24px !important; }
  .nav-container {
    padding: 16px 20px !important;
  }
  
  .nav-tabs {
    display: none !important;
  }
  
  .form-container {
    padding: 24px !important;
  }
  
  .post-article {
    padding: 24px !important;
  }
  
  /* Ensure tap targets are ≥48px */
  .nav-tab,
  .btn-primary,
  .btn-secondary,
  .input-field,
  .filter-select {
    min-height: 48px !important;
    min-width: 48px !important;
  }
}

@media (max-width: 320px) {
  body {
    overflow-x: hidden !important;
  }
  
  #heroSection,
  #salaryPage,
  #howToPage {
    padding: 20px 16px !important;
  }
}

/* ==== SCROLL ANIMATIONS (INTERSECTION OBSERVER READY) ==== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==== LOADING STATES ==== */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ==== FLOATING PARTICLES EFFECT ==== */
main::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 150px;
  height: 150px;
  background: transparent;
  border-radius: 50%;
  z-index: -1;
  animation: float-shape 15s ease-in-out infinite;
  pointer-events: none;
}

main::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: transparent;
  border-radius: 50%;
  z-index: -1;
  animation: float-shape 18s ease-in-out infinite reverse;
  pointer-events: none;
}

/* ==== ACCESSIBILITY ==== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==== FOCUS STATES ==== */
*:focus-visible {
  outline: 3px solid #003092 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* ==== FINAL OVERRIDES - FORCE LIGHT THEME ==== */
/* Override any dark theme CSS in HTML */
body {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #003092 !important;
}

body::before {
  background: rgba(250, 248, 245, 0.75) !important;
  background-image: none !important;
  background-color: rgba(250, 248, 245, 0.75) !important;
}

.nav-bar {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

.nav-container,
.nav-container *,
.nav-tab,
.nav-tab *,
.nav-left *,
.nav-right * {
  color: #003092 !important;
}

.mentorship-hero {
  background: linear-gradient(135deg, rgba(0, 48, 146, 0.08), rgba(250, 248, 245, 0.95)) !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
}

.mentorship-hero * {
  color: #003092 !important;
}

.mentorship-hero h1 {
  color: #003092 !important;
}

.accent-card {
  background: linear-gradient(160deg, rgba(0, 48, 146, 0.08), rgba(250, 248, 245, 0.98)) !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
}

.accent-card * {
  color: #003092 !important;
}

.info-list .icon {
  background: rgba(0, 48, 146, 0.1) !important;
  color: #003092 !important;
}

.mentorship-tabs {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #E5E7EB !important;
}

.mentorship-tab {
  color: #003092 !important;
  background: transparent !important;
}

.mentorship-tab.active {
  color: #003092 !important;
  background: rgba(0, 48, 146, 0.1) !important;
  border-color: #003092 !important;
  box-shadow: 0 4px 15px rgba(0, 48, 146, 0.15) !important;
}

.pill {
  background: rgba(0, 48, 146, 0.1) !important;
  border: 1px solid #E5E7EB !important;
  color: #003092 !important;
}

/* Remove any blue/purple gradients - but keep actual images */
body,
.nav-bar,
.mentorship-hero,
.accent-card,
.form-container,
.post-card {
  background-image: none !important;
}

/* Force white backgrounds on all cards */
.form-container,
.post-card,
.post-article,
.mentor-card,
.salary-chart-container {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Force brand on all focus states */
*:focus {
  border-color: #003092 !important;
  outline-color: #003092 !important;
}


