@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  --primary-gold: #f89e1b;
  --primary-orange: #f15a24;
  --primary-maroon: #811e14;
  --primary-green: #2b562a;
  
  --primary: var(--primary-orange);
  --primary-hover: #d54917;
  --secondary: #1a1a1a;
  --background: #faf4ec;
  --surface: #ffffff;
  --text-main: #152237;
  --text-muted: #6b7280;
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(241, 90, 36, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  background: linear-gradient(to right, var(--primary-gold) 0%, var(--primary-orange) 50%, var(--primary-maroon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section with Mesh Gradient */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background-color: #0f172a;
  background-image: url('silicon_chip_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    radial-gradient(at 0% 0%, rgba(248, 158, 27, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(241, 90, 36, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(129, 30, 20, 0.35) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(15, 23, 42, 0.85) 0px, transparent 50%);
  filter: blur(60px);
  animation: pulseMesh 15s ease-in-out infinite alternate;
}

@keyframes pulseMesh {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.9));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero-tagline {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Features Section */
.features {
  background-color: var(--surface);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(242,102,34,0.05) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(242, 102, 34, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(242, 102, 34, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
}

/* Call to Action Sections */
.cta-section {
  position: relative;
  background-color: var(--secondary);
  color: white;
  overflow: hidden;
}

.cta-section.light {
  background-color: var(--primary);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
  transition: transform 0.7s ease;
}

.cta-section:hover .cta-bg {
  transform: scale(1.05);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Page Headers (Services/About) */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--background) 0%, #fff 100%);
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.page-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.footer-brand span {
  color: var(--primary);
}

.footer h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
}

/* Animations (Intersection Observer - JS Enabled Fallback) */
.fade-in {
  opacity: 1;
  transform: none;
}

/* Only trigger initial hidden state if JavaScript is fully loaded and active */
.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Responsive */
@media (max-width: 768px) {
  /* Performance optimizations for mobile - disable scroll opacity locks and avoid heavy image weights */
  .js-enabled .fade-in:not(.testimonials .feature-card) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Testimonial corner & edge-flying grid animations - MOBILE ONLY */
  .js-enabled .testimonials .feature-card {
    opacity: 0 !important;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform, opacity;
  }

  /* Card 1 (Top-Left) */
  .js-enabled .testimonials .feature-card:nth-child(9n+1) {
    transform: translate(-70vw, -60vh) scale(0.6) rotate(-25deg);
  }
  /* Card 2 (Top-Center) */
  .js-enabled .testimonials .feature-card:nth-child(9n+2) {
    transform: translate(0, -60vh) scale(0.6);
  }
  /* Card 3 (Top-Right) */
  .js-enabled .testimonials .feature-card:nth-child(9n+3) {
    transform: translate(70vw, -60vh) scale(0.6) rotate(25deg);
  }
  /* Card 4 (Left-Center) */
  .js-enabled .testimonials .feature-card:nth-child(9n+4) {
    transform: translate(-70vw, 0) scale(0.6) rotate(-15deg);
  }
  /* Card 5 (Center Zoom) */
  .js-enabled .testimonials .feature-card:nth-child(9n+5) {
    transform: scale(0.1);
  }
  /* Card 6 (Right-Center) */
  .js-enabled .testimonials .feature-card:nth-child(9n+6) {
    transform: translate(70vw, 0) scale(0.6) rotate(15deg);
  }
  /* Card 7 (Bottom-Left) */
  .js-enabled .testimonials .feature-card:nth-child(9n+7) {
    transform: translate(-70vw, 60vh) scale(0.6) rotate(25deg);
  }
  /* Card 8 (Bottom-Center) */
  .js-enabled .testimonials .feature-card:nth-child(9n+8) {
    transform: translate(0, 60vh) scale(0.6);
  }
  /* Card 9 (Bottom-Right) */
  .js-enabled .testimonials .feature-card:nth-child(9n+9) {
    transform: translate(70vw, 60vh) scale(0.6) rotate(-25deg);
  }

  /* Testimonial Stagger Delays */
  .js-enabled .testimonials .feature-card:nth-child(9n+1) { transition-delay: 0ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+2) { transition-delay: 100ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+3) { transition-delay: 200ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+4) { transition-delay: 150ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+5) { transition-delay: 250ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+6) { transition-delay: 350ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+7) { transition-delay: 300ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+8) { transition-delay: 400ms !important; }
  .js-enabled .testimonials .feature-card:nth-child(9n+9) { transition-delay: 500ms !important; }

  /* Active appear state */
  .js-enabled .testimonials .feature-card.appear {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) rotate(0deg) !important;
  }

  .hero {
    background-position: center center !important;
  }

  .navbar .container {
    height: 60px;
  }

  .nav-brand {
    font-size: 1.2rem;
  }

  .nav-logo {
    height: 26px;
  }

  /* Right-side Sliding Drawer Mobile Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    left: auto;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(241, 90, 36, 0.15);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s ease;
    overflow-y: auto;
    padding: 80px 1.75rem 1.75rem 1.75rem;
    gap: 1.25rem;
    box-shadow: 0 0 0 rgba(15, 23, 42, 0);
    z-index: 999;
  }

  .nav-links::before {
    content: "PRIME MOS SECTORS";
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(241, 90, 36, 0.12);
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    right: 0;
    left: auto;
    opacity: 1;
    box-shadow: -15px 0 35px rgba(15, 23, 42, 0.12);
  }

  .nav-links.active::before {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateX(45px) scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  
  .nav-links.active li:nth-child(1) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.20s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.30s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.35s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.40s; }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: transform 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
  }

  .nav-links a:active {
    color: var(--primary-orange);
    padding-left: 6px;
    transform: translateX(4px);
  }

  .nav-links a::after {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    font-size: 1.15rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(242, 102, 34, 0.08);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease, 
                color 0.3s ease;
  }
  
  .mobile-toggle i {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .mobile-toggle.active {
    background: rgba(241, 90, 36, 0.15);
    color: var(--primary-orange);
    transform: rotate(90deg);
  }
  
  .mobile-toggle.active i {
    transform: scale(0.95);
  }
  
  .mobile-toggle:active {
    background: rgba(242, 102, 34, 0.16);
    transform: scale(0.9);
  }
  
  .hero {
    min-height: 70vh;
    padding-top: 60px;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-text h2 {
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    margin-bottom: 1rem;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .mb-8 {
    margin-bottom: 1.5rem !important;
  }

  .page-header {
    padding-top: 100px;
    padding-bottom: 30px;
  }

  .page-title {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  .page-desc {
    font-size: 0.88rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.15rem, 4vw, 1.4rem);
  }

  .py-24 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .py-16 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .features-grid {
    gap: 0.85rem;
  }

  .feature-title {
    font-size: 1.05rem !important;
  }

  .feature-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .feature-card {
    padding: 1rem 0.85rem !important;
  }

  .internship-header-grid {
    gap: 1.5rem;
  }

  .internship-header-text h2 {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  .internship-subtitle {
    font-size: 0.95rem;
  }

  .internship-desc {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .internship-cards-grid {
    gap: 0.85rem;
  }

  .internship-detail-card {
    padding: 1rem 0.85rem !important;
  }

  .gain-card {
    padding: 1rem !important;
  }

  .gain-grid {
    gap: 0.75rem;
  }

  .gain-item {
    font-size: 0.78rem !important;
    gap: 0.4rem;
  }

  .internship-detail-list li {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem;
  }

  /* Compact Event Cards for mobile */
  .event-card-body {
    padding: 0.85rem !important;
  }
  
  .event-title {
    font-size: 0.98rem !important;
  }
  
  .event-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.85rem !important;
  }
  
  .event-meta-item {
    font-size: 0.68rem !important;
    gap: 0.2rem !important;
  }
  
  .event-participants {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.74rem !important;
    margin-bottom: 0.85rem !important;
  }
  
  .event-tag {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.65rem !important;
  }

  /* Stats sizing adjustment on mobile */
  .py-16 h3 {
    font-size: 2rem !important;
  }
  
  .py-16 p {
    font-size: 0.8rem;
  }

  /* Mobile Founder Section Padding */
  .founder-section {
    padding: 2rem 0;
  }

  /* Defensive overrides to counteract inline style margins and paddings */
  .feature-card {
    padding: 1.25rem 1rem !important;
    gap: 0.75rem !important;
  }

  /* Compact footer for mobile */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
  
  .footer-grid {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  /* Pricing card specific adjustments */
  .pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
    gap: 1rem;
  }

  .pricing-card-title {
    color: var(--secondary);
    font-size: 1.25rem;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
  }

  .pricing-card-badge {
    font-weight: 700;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .pricing-card-badge.badge-free {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
  }

  .pricing-card-badge.badge-paid {
    background: rgba(241, 90, 36, 0.1);
    color: var(--primary-orange);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .intake-alert {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.85rem;
    font-size: 0.82rem;
  }

  /* Microscopic screen layout tweaks for pricing cards to prevent text squashing */
  .pricing-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .pricing-card-title {
    font-size: 1.15rem !important;
  }

  .pricing-card-badge {
    align-self: flex-start !important;
  }
  
  /* Extra spacing and counter layout tweaks */
  .visitor-counter-wrap {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.75rem !important;
  }
  
  .visitor-count {
    font-size: 0.85rem !important;
  }
}

/* Tablet / Intermediate Screen Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    gap: 1.25rem;
  }
  .nav-brand {
    font-size: 1.3rem;
  }
}

/* Founder Section Styles */
.founder-section {
  background-color: var(--background); /* Set to warm beige background */
  padding: 8rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.founder-section::before {
  content: none; /* Removed gradient background helper */
}

.founder-container {
  display: grid;
  grid-template-columns: 380px 1fr; /* Defined width for image, flexible for text */
  gap: 5rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.founder-image-wrapper {
  position: relative;
  background-color: transparent;
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image-wrapper::after {
  content: none; /* Removed decorative offset border to match screenshot */
}

.founder-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
  z-index: 1;
}

.founder-image:hover {
  transform: scale(1.02) translateY(-5px);
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1rem; /* Extra space from the image */
}

/* Founder Pill Badge */
.founder-pill-wrapper {
  display: flex;
  margin-bottom: 0.25rem;
}

.founder-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 0.25rem 0.9rem 0.25rem 0.25rem;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-sm);
  gap: 0.75rem;
}

.founder-pill-badge {
  color: var(--primary-maroon);
  background-color: rgba(129, 30, 20, 0.08);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-maroon);
  border-radius: 50%;
  display: inline-block;
}

.founder-pill-divider {
  display: none;
}

.founder-pill-tags {
  color: #4b5563;
  font-weight: 500;
  font-size: 0.8rem;
}

.founder-title-group {
  margin-bottom: 0.25rem;
}

.founder-first-name {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.founder-last-name {
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.founder-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  position: relative;
  padding-left: 0;
  border-left: none; /* Flush style, no left border */
  margin-top: 0.25rem;
}

.founder-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-founder-primary {
  background-color: var(--primary-orange);
  color: white;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-founder-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-founder-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Responsive adjustment for Founder Section - Tablet */
@media (min-width: 769px) and (max-width: 992px) {
  .founder-container {
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    text-align: left;
  }
  
  .founder-image-wrapper {
    max-width: 300px;
  }
  
  .founder-info {
    align-items: flex-start;
    padding-left: 1rem;
  }
}

/* Mobile-specific Founder Section - Priority override */
@media (max-width: 768px) {
  .founder-section {
    padding: 2.5rem 0 3rem;
    overflow: visible;
  }

  .founder-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 2rem !important;
    padding: 0 1rem;
  }
  
  .founder-image-wrapper {
    max-width: 180px !important;
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
  
  .founder-image {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 50%;
  }

  .founder-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    padding-left: 0 !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .founder-pill-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .founder-pill {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
    max-width: 100%;
  }

  .founder-pill-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .founder-pill-tags {
    font-size: 0.72rem;
    text-align: center;
    display: block;
    width: 100%;
  }

  .founder-title-group {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
  }

  .founder-first-name {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    white-space: normal;
    margin: 0 0 0.15rem !important;
  }

  .founder-last-name {
    font-size: clamp(1.6rem, 7vw, 2rem) !important;
    white-space: normal;
    margin: 0 !important;
  }
  
  .founder-bio {
    padding-left: 0 !important;
    border-left: none !important;
    border-top: none !important;
    padding-top: 0 !important;
    font-size: 0.88rem;
    line-height: 1.65;
    text-align: center;
    margin-top: 0 !important;
    width: 100%;
    display: block !important;
    color: var(--text-main) !important;
  }
  
  .founder-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }
  
  .btn-founder-primary, .btn-founder-secondary {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.88rem !important;
    text-align: center;
    justify-content: center;
  }
}

/* Internship Detail Section Styles */
.internship-detail-section {
  padding: 6rem 0;
  background-color: var(--background);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.internship-header-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .internship-header-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.internship-header-text h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--primary-maroon);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
}

.internship-header-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-orange);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.internship-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.internship-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.internship-header-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 1.5 / 1;
  display: block;
}

.internship-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .internship-cards-grid {
    grid-template-columns: 1fr;
  }
}

.internship-detail-card {
  background-color: var(--surface);
  border: 1px solid rgba(129, 30, 20, 0.12);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.internship-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(129, 30, 20, 0.25);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-title-group i {
  color: var(--primary-orange);
  font-size: 1.25rem;
}

.card-title-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-maroon);
  font-family: 'Outfit', sans-serif;
}

.internship-detail-list {
  list-style: none;
  padding-left: 0;
}

.internship-detail-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.internship-detail-list li::before {
  content: '•';
  color: var(--primary-orange);
  font-weight: bold;
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.gain-card {
  background-color: var(--surface);
  border: 1px solid rgba(129, 30, 20, 0.12);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.gain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.gain-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
}

.gain-item i {
  color: var(--primary-orange);
  font-size: 1.15rem;
  margin-top: 3px;
}

.intake-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #fdf3e7;
  border-left: 4px solid var(--primary-orange);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: #7c2d12;
  font-weight: 500;
}

.intake-alert i {
  color: var(--primary-orange);
  font-size: 1.25rem;
}

.internship-detail-section.bg-white {
  background-color: var(--surface);
}

/* Footer Legal Links and Note Styles */
.footer-legal {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.2);
}

.footer-note {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 400;
}

/* WhatsApp Button Styles */
.btn-whatsapp {
  background-color: #25D366;
  color: white !important;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #128C7E !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Contact Security Warning Styles */
.security-notice-box {
  border-left: 4px solid var(--primary-orange);
  background-color: #fff8f5;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 3rem auto 0;
  max-width: 800px;
  box-shadow: var(--shadow-sm);
}

.security-notice-box p {
  color: #c2410c;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.security-notice-box i {
  margin-right: 0.5rem;
}

/* Tablet & Mobile Media Queries for Custom Elements */
@media (min-width: 577px) and (max-width: 992px) {
  .internship-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .internship-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .security-notice-box {
    margin-top: 1.5rem;
    padding: 1rem;
  }
  .security-notice-box p {
    font-size: 0.88rem;
  }
}

@media (max-width: 576px) {
  .footer-legal span {
    display: none;
  }
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  /* Ensure footer content is always visible on mobile screens */
  .footer {
    padding: 3rem 0 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-note {
    margin-top: 0.75rem;
    padding-top: 1rem;
  }

  .footer-bottom {
    padding-top: 1.25rem;
    margin-top: 1.5rem;
  }
}


/* Floating Buttons */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  box-shadow: var(--shadow-md);
  z-index: 99;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  z-index: 99;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .whatsapp-float {
    bottom: 4.8rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
}

/* Visitor Counter Styles */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
  line-height: 1.8;
}

.visitor-counter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}

.visitor-count {
  font-weight: 700;
  color: var(--primary-orange);
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  min-width: 56px;
  display: inline-block;
  text-align: center;
}

.counter-loading {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.counter-loading .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-orange);
  animation: dotPulse 1.2s infinite ease-in-out;
  display: inline-block;
}

.counter-loading .dot:nth-child(1) { animation-delay: 0s; }
.counter-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.counter-loading .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1.15); }
}

/* FAQ Accordion Styles */
.faq-section {
  margin-top: 4rem;
  background: var(--surface);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
}

.faq-title {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  border-left: 0 solid var(--primary);
  padding-left: 0;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0.75rem 0 0.5rem 1rem;
  border-left: 3px solid var(--primary);
  transition: max-height 0.3s cubic-bezier(0.95, 0.05, 0.795, 0.035), padding 0.3s ease, border-left 0.3s ease;
}

/* Contact Form Styles */
.contact-form-section {
  margin-top: 4rem;
  background: var(--surface);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form-title {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.contact-form-desc {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--background);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.15);
  background-color: #ffffff;
}

.form-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Targets ALL pages: home, services, about, research, events, contact, etc.
   ========================================================================== */

/* ---- TABLET BREAKPOINT (768px–1024px) ---- */
@media (max-width: 1024px) {
  /* Services page: College events 2-col grid → 1-col */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ---- PRIMARY MOBILE BREAKPOINT ---- */
@media (max-width: 768px) {

  /* === GLOBAL: All inline grids must stack === */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* === GLOBAL: Smaller buttons for mobile === */
  .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .btn-primary,
  .btn-outline,
  .btn-whatsapp,
  .btn-founder-primary,
  .btn-founder-secondary {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  /* === GLOBAL: Smaller page headers === */
  .page-header {
    padding-top: 85px !important;
    padding-bottom: 25px !important;
  }

  .page-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    margin-bottom: 0.5rem !important;
  }

  .page-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  /* === GLOBAL: Sections reduced padding === */
  .py-24 {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  .py-16 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .py-20 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* === GLOBAL: Section titles & headers === */
  .section-header {
    margin-bottom: 1.25rem !important;
  }

  .section-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
    margin-bottom: 0.5rem !important;
  }

  .section-header p,
  .section-header > p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  /* === GLOBAL: Feature cards compact === */
  .feature-card {
    padding: 1.1rem 0.9rem !important;
    border-radius: var(--radius-md) !important;
    gap: 0.6rem !important;
  }

  .feature-card[style*="padding"] {
    padding: 1.1rem 0.9rem !important;
  }

  .feature-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .feature-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
  }

  .feature-desc {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  /* Service cards: list items smaller */
  .feature-card ul li,
  .feature-card [style*="list-style-type: none"] li {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.25rem !important;
  }

  .feature-card ul,
  .feature-card [style*="list-style-type: none"] {
    margin-bottom: 1rem !important;
  }

  /* === SERVICES PAGE: College Events Section === */
  /* The dark section with 2-column grid */
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 4rem"] {
    gap: 1.5rem !important;
  }

  /* College events section heading */
  [style*="font-size: clamp(1.8rem"] {
    font-size: clamp(1.15rem, 5vw, 1.4rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }

  /* College events body text */
  [style*="color: rgba(255,255,255,0.7)"][style*="line-height: 1.75"] {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }

  /* College events feature list items */
  [style*="color: rgba(255,255,255,0.8)"][style*="font-size: 0.92rem"] {
    font-size: 0.78rem !important;
    margin-bottom: 0.5rem !important;
    gap: 0.5rem !important;
  }

  /* College events booking card */
  [style*="backdrop-filter: blur(10px)"] {
    padding: 1.25rem !important;
  }

  [style*="backdrop-filter: blur(10px)"] h3 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Contact rows inside the booking card */
  [style*="backdrop-filter: blur(10px)"] a[style*="display: flex"][style*="padding: 1rem"] {
    padding: 0.7rem !important;
    gap: 0.65rem !important;
  }

  [style*="backdrop-filter: blur(10px)"] [style*="width: 40px"][style*="height: 40px"] {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  [style*="backdrop-filter: blur(10px)"] [style*="font-size: 0.92rem"],
  [style*="backdrop-filter: blur(10px)"] [style*="font-size: 0.88rem"] {
    font-size: 0.78rem !important;
  }

  [style*="backdrop-filter: blur(10px)"] [style*="font-size: 0.72rem"] {
    font-size: 0.62rem !important;
  }

  /* College events pill/tag badge */
  [style*="border-radius: 100px"][style*="padding: 0.3rem 1rem"] {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.7rem !important;
  }

  /* === SERVICES PAGE: How It Works Steps === */
  [style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Step cards */
  [style*="padding: 2.5rem 1.5rem"][style*="border-radius"] {
    padding: 1.5rem 1rem !important;
  }

  [style*="padding: 2.5rem 1.5rem"] h3 {
    font-size: 1rem !important;
  }

  [style*="padding: 2.5rem 1.5rem"] p {
    font-size: 0.8rem !important;
  }

  /* Step number circle */
  [style*="top: -1.25rem"][style*="width: 40px"][style*="height: 40px"] {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
    top: -1rem !important;
  }

  /* Step icon */
  [style*="width: 54px"][style*="height: 54px"] {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
  }

  /* === SERVICES PAGE: Pricing Cards === */
  .features-grid[style*="minmax(min(100%, 420px)"] {
    grid-template-columns: 1fr !important;
  }

  .pricing-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    margin-bottom: 1rem !important;
  }

  .pricing-card-title {
    font-size: 1.05rem !important;
  }

  .pricing-card-badge {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* Pricing cards description text */
  .feature-card > div > p[style*="font-size: 0.92rem"] {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  /* Pricing card list items */
  .feature-card[style*="border-top: 4px"] li {
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
  }

  /* === SERVICES PAGE: Student Services Detail Cards === */
  .internship-detail-section {
    padding: 2rem 0 !important;
  }

  .internship-header-grid {
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  .internship-header-text h2 {
    font-size: clamp(1.15rem, 5vw, 1.45rem) !important;
  }

  .internship-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }

  .internship-desc {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
  }

  .internship-cards-grid {
    gap: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }

  .internship-detail-card {
    padding: 1rem 0.85rem !important;
  }

  .card-title-group {
    margin-bottom: 0.75rem !important;
    gap: 0.15rem !important;
  }

  .card-title-group h3 {
    font-size: 1rem !important;
  }

  .card-title-group i {
    font-size: 1rem !important;
  }

  /* Service type label under card title */
  .card-title-group span[style*="font-size: 0.76rem"] {
    font-size: 0.68rem !important;
    margin-left: 1.5rem !important;
  }

  .internship-detail-list li {
    font-size: 0.78rem !important;
    margin-bottom: 0.35rem !important;
    padding-left: 1rem !important;
  }

  /* Gain/outcomes card */
  .gain-card {
    padding: 1.1rem 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .gain-card .card-title-group h3 {
    font-size: 0.95rem !important;
  }

  .gain-grid {
    gap: 0.65rem !important;
  }

  .gain-item {
    font-size: 0.78rem !important;
    gap: 0.4rem !important;
  }

  .gain-item i {
    font-size: 0.9rem !important;
  }

  /* Intake alert bar */
  .intake-alert {
    padding: 0.75rem !important;
    font-size: 0.78rem !important;
    gap: 0.5rem !important;
  }

  .intake-alert i {
    font-size: 1rem !important;
  }

  /* === ABOUT PAGE: Stats section === */
  .stat-digit,
  [data-target][style*="font-size: 3rem"] {
    font-size: 2rem !important;
  }

  [style*="minmax(200px, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }

  [style*="minmax(200px, 1fr)"] p {
    font-size: 0.72rem !important;
  }

  /* === ABOUT PAGE: About grid text === */
  .about-text h2 {
    font-size: clamp(1.15rem, 4vw, 1.4rem) !important;
    margin-bottom: 0.75rem !important;
  }

  .about-text p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  /* About page: Mission/Vision card grid override */
  [style*="minmax(min(100%, 350px)"] {
    grid-template-columns: 1fr !important;
  }

  /* === CONTACT PAGE: Form section === */
  .contact-form-section {
    margin-top: 2rem !important;
    padding: 1.5rem 1rem !important;
  }

  .contact-form-title {
    font-size: 1.3rem !important;
  }

  .contact-form-desc {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }

  .form-group {
    margin-bottom: 1rem !important;
  }

  .form-label {
    font-size: 0.82rem !important;
  }

  .form-input,
  .form-textarea {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
  }

  .security-notice-box {
    padding: 0.85rem !important;
    margin-top: 1.25rem !important;
  }

  .security-notice-box p {
    font-size: 0.8rem !important;
  }

  /* === FAQ Section === */
  .faq-section {
    margin-top: 2rem !important;
    padding: 1.5rem 1rem !important;
  }

  .faq-title {
    font-size: 1.3rem !important;
    margin-bottom: 1.25rem !important;
  }

  .faq-question {
    font-size: 0.88rem !important;
    padding: 0.35rem 0 !important;
  }

  .faq-answer {
    font-size: 0.82rem !important;
  }

  .faq-item {
    padding: 0.6rem 0 !important;
  }

  /* === CTA Sections (Home page) === */
  .cta-content h2 {
    font-size: clamp(1.15rem, 4vw, 1.4rem) !important;
  }

  .cta-content p {
    font-size: 0.85rem !important;
  }

  /* === GLOBAL: Hero subtitle wrapping fix === */
  .hero-subtitle {
    font-size: clamp(0.78rem, 2vw, 1rem) !important;
    word-break: break-word !important;
  }

  /* === FOOTER: Compact on all pages === */
  .footer {
    padding: 2rem 0 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .footer h4 {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
  }

  .footer-links li {
    margin-bottom: 0.35rem !important;
    font-size: 0.82rem !important;
  }

  .footer-links a {
    font-size: 0.82rem !important;
  }

  .footer-note {
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
  }

  .footer-bottom {
    font-size: 0.72rem !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
  }

  .footer-legal {
    font-size: 0.7rem !important;
    gap: 0.4rem !important;
    margin: 0.75rem 0 !important;
  }

  /* MSME badge mobile */
  .msme-badge {
    padding: 0.4rem 0.75rem !important;
    gap: 0.5rem !important;
  }

  .msme-badge img {
    height: 26px !important;
  }

  /* Visitor counter */
  .visitor-counter-wrap {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.6rem !important;
  }

  .visitor-count {
    font-size: 0.8rem !important;
  }

  /* === Floating Buttons: Smaller === */
  .whatsapp-float {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.15rem !important;
    bottom: 4.5rem !important;
    right: 1rem !important;
  }

  .back-to-top {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    bottom: 1rem !important;
    right: 1rem !important;
  }

  /* === SERVICES PAGE: Premium ECE badge inside title === */
  .feature-title span[style*="font-size: 0.65rem"] {
    font-size: 0.55rem !important;
    padding: 0.1rem 0.35rem !important;
    display: block !important;
    width: fit-content !important;
    margin-top: 0.35rem !important;
  }
}

/* ---- EXTRA SMALL PHONES (≤ 480px) ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 0.65rem !important;
  }

  .btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.75rem !important;
  }

  .page-title {
    font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
  }

  .section-title {
    font-size: clamp(1rem, 4vw, 1.2rem) !important;
  }

  .feature-card {
    padding: 0.9rem 0.75rem !important;
  }

  .feature-title {
    font-size: 0.95rem !important;
  }

  .feature-desc {
    font-size: 0.75rem !important;
  }

  .feature-card ul li,
  .feature-card [style*="list-style-type: none"] li {
    font-size: 0.72rem !important;
  }

  .internship-detail-card {
    padding: 0.85rem 0.7rem !important;
  }

  .card-title-group h3 {
    font-size: 0.9rem !important;
  }

  .internship-detail-list li {
    font-size: 0.72rem !important;
  }

  .gain-item {
    font-size: 0.72rem !important;
  }

  /* Stats on very small screens: stack to 1 column */
  [style*="minmax(200px, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  [data-target][style*="font-size: 3rem"] {
    font-size: 1.75rem !important;
  }

  /* Pricing card badge on tiny screens */
  .pricing-card-badge {
    font-size: 0.62rem !important;
  }

  /* Footer even more compact */
  .footer-links li {
    font-size: 0.75rem !important;
  }
}

/* ---- ULTRA NARROW (≤ 360px, e.g., Galaxy Fold) ---- */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem !important;
  }

  .page-title {
    font-size: 1.05rem !important;
  }

  .feature-card {
    padding: 0.75rem 0.6rem !important;
  }

  .btn {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.7rem !important;
  }

  .feature-title {
    font-size: 0.88rem !important;
  }
}

/* ---- GLOBAL SEARCH BAR SYSTEM (NEW) ---- */
.search-toggle {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.search-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
  transform: scale(1.05);
}

.navbar .container {
  position: relative;
}

/* Modal Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.search-modal {
  width: 100%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(241, 90, 36, 0.1);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 1rem;
}

.search-overlay.active .search-modal {
  transform: translateY(0);
}

/* Search Input */
.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.search-input-icon {
  color: var(--primary);
  font-size: 1.2rem;
  margin-right: 1rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-close {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-close:hover {
  background: rgba(241, 90, 36, 0.1);
  color: var(--primary);
  transform: rotate(90deg);
}

/* Results & Recommendations */
.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 100px;
}

.search-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.search-item:hover, .search-item.selected {
  background-color: rgba(241, 90, 36, 0.05);
  border-left-color: var(--primary);
}

.search-item-icon {
  background: rgba(241, 90, 36, 0.08);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-item:hover .search-item-icon, .search-item.selected .search-item-icon {
  background: var(--primary);
  color: white;
}

.search-item-details {
  flex: 1;
}

.search-item-title {
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.search-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.search-highlight {
  color: var(--primary-orange);
  background: rgba(241, 90, 36, 0.08);
  border-radius: 2px;
  font-weight: 700;
}

/* Keyboard Hints Footer */
.search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-shortcuts {
  display: flex;
  gap: 1rem;
}

.search-shortcut {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.search-key {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Empty / Initial State */
.search-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.search-empty i {
  font-size: 2rem;
  color: rgba(241, 90, 36, 0.2);
  margin-bottom: 1rem;
}

.search-empty-text {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Darker header on dark pages support */
.navbar .search-toggle {
  color: var(--secondary);
}

.navbar .search-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-orange);
}

.events-hero .search-toggle,
.host-section .search-toggle,
.footer .search-toggle {
  color: white !important;
}

@media (max-width: 768px) {
  .search-overlay {
    padding-top: 1rem;
  }
  .search-modal {
    margin: 0 0.5rem;
    border-radius: var(--radius-md);
  }
  .search-input-wrapper {
    padding: 1rem;
  }
  .search-input {
    font-size: 1rem;
  }
  .search-results {
    max-height: calc(100vh - 180px);
  }
  .search-footer {
    display: none;
  }
}

