/* ==========================================================================
   STEPPING STONE GROUP OF INSTITUTIONS (SSGI)
   Master Global Stylesheet (style.css)
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --primary-blue: #000064;
  --secondary-blue: #0070D0;
  --accent-blue: #00A0F0;
  --brand-red: #FC0000;
  --text-dark: #000000;
  --white: #FFFFFF;

  --primary: var(--primary-blue);
  --primary-light: var(--secondary-blue);
  --primary-dark: #000045;
  --primary-rgb: 0, 0, 100;
  
  --secondary: var(--secondary-blue);
  --secondary-light: var(--accent-blue);
  --secondary-dark: #00509E;
  --secondary-rgb: 0, 112, 208;
  
  --accent: var(--accent-blue);
  --accent-teal: #00A0F0;
  --accent-red: var(--brand-red);
  
  /* Neutral Palette */
  --text-main: var(--text-dark);
  --text-muted: #475569;
  --text-light: #64748B;
  --text-lighter: #94A3B8;
  --text-white: var(--white);
  
  --bg-body: #F8FAFC;
  --bg-card: var(--white);
  --bg-alt: #F1F5F9;
  --bg-dark: #000045;
  
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-dark: #334155;
  
  /* Geometry & Metrics */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --container-max: 1240px;
  --container-padding: 1.5rem;
  
  /* Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(11, 37, 69, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 20px rgba(11, 37, 69, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px rgba(11, 37, 69, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 22px 44px rgba(11, 37, 69, 0.15), 0 6px 16px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}

p.lead {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: 3.5rem 0;
  position: relative;
}

.section-sm {
  padding: 2.25rem 0;
}

.section-lg {
  padding: 5rem 0;
}

/* Consecutive sections with identical background - eliminate double vertical gap */
.section.bg-light + .section.bg-light {
  padding-top: 0.5rem;
}

.bg-light {
  background-color: var(--bg-alt);
}

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

.bg-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(217, 119, 6, 0.12);
  color: var(--secondary-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.section-badge.badge-primary {
  background: rgba(11, 37, 69, 0.1);
  color: var(--primary);
  border-color: rgba(11, 37, 69, 0.2);
}

.section-badge.badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: #FBBF24;
  border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.services-title {
  font-size: clamp(1.4rem, 2.5vw, 28px);
}

@media (min-width: 992px) {
  .services-title {
    font-size: 28px;
  }
}

.bg-primary .section-title,
.bg-dark .section-title {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bg-primary .section-subtitle,
.bg-dark .section-subtitle {
  color: #CBD5E1;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.items-center {
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--primary);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* Breadcrumbs */
.breadcrumb-wrap {
  background-color: var(--bg-alt);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--secondary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--text-lighter);
}

/* ==========================================================================
   Inner Page Hero Section - Unified Compact Design
   ========================================================================== */

.inner-page-hero,
.page-banner {
  background: linear-gradient(135deg, rgba(7, 23, 44, 0.9) 0%, rgba(19, 62, 135, 0.85) 100%),
              url('../assets/images/hero.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 3.75rem 0 3.5rem 0; /* Reduced by ~25% from original 5rem/4.5rem */
  position: relative;
  text-align: center;
  overflow: hidden;
}

.inner-page-hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

.inner-page-hero-title,
.page-banner .banner-title,
.page-banner .page-title {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .inner-page-hero,
  .page-banner {
    padding: 2.75rem 0 2.5rem 0;
  }

  .inner-page-hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
  }

  .inner-page-hero-title,
  .page-banner .banner-title,
  .page-banner .page-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
}

.badge-navy {
  background: rgba(11, 37, 69, 0.1);
  color: var(--primary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 5.75rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-4px);
}

/* Sticky Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #25D366 !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.25s ease !important;
  animation: waPulse 2.8s infinite !important;
}

.floating-whatsapp:hover {
  background-color: #20ba5a !important;
  color: #FFFFFF !important;
  transform: scale(1.1) translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.floating-whatsapp:active {
  transform: scale(0.96) !important;
}

.floating-whatsapp .whatsapp-icon {
  width: 35px !important;
  height: 35px !important;
  fill: #FFFFFF !important;
  fill-rule: evenodd !important;
  clip-rule: evenodd !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.floating-whatsapp:hover .whatsapp-icon {
  transform: rotate(-6deg) scale(1.05) !important;
}

/* Tooltip badge for Floating WhatsApp */
.floating-whatsapp .whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background-color: #0f172a;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp .whatsapp-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 16px rgba(37, 211, 102, 0.4);
  }
}

@media print {
  .floating-whatsapp {
    display: none !important;
  }
}

/* Flash message / Alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
