/* ═══════════════════════════════════════════════════════════════════════════
 * style.css — iPundit Solutions Complete Web Theme
 *
 * DROP-IN REPLACEMENT for css/style.css
 * Derived from DesignTheme.vb desktop utility theme.
 *
 * USAGE:  <link rel="stylesheet" href="css/style.css">
 *         (loaded AFTER Bootstrap 5.3 CSS)
 *
 * SCOPE:  ipunditsolutions.com/*  &  ipunditsolutions.com/training-advisor/*
 *
 * COPYRIGHT: © iPundit Solutions. All rights reserved.
 * ═══════════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   1. DESIGN TOKENS  (from DesignTheme.vb)
   ───────────────────────────────────────────── */
:root {
  /* Brand palette — mapped from VB */
  --ip-primary-dark:     #1B4F72;   /* PrimaryDark   rgb(27,79,114)   */
  --ip-primary:          #2E86C1;   /* PrimaryLight   rgb(46,134,193)  */
  --ip-primary-light:    #AED6F1;   /* HeaderSubtext  rgb(174,214,241) */
  --ip-primary-lighter:  #D6EAF8;   /* SeparatorColor rgb(214,234,248) */
  --ip-primary-lightest: #EBF5FB;   /* derived tint                    */
  --ip-body-text:        #2C3E50;   /* BodyText       rgb(44,62,80)    */
  --ip-muted:            #7F8C8D;   /* MutedText      rgb(127,140,141) */
  --ip-bg:               #FAFAFC;   /* FormBackground rgb(250,250,252) */
  --ip-hover-dark:       #154360;   /* button hover                    */
  --ip-active-dark:      #0E2F3D;   /* button active                   */
  --ip-secondary-border: #BDC3C7;   /* SecondaryButton border          */
  --ip-success:          #1D8348;
  --ip-danger:           #C0392B;

  /* Typography — Segoe UI matching VB font stack */
  --ip-font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}


/* ─────────────────────────────────────────────
   2. GLOBAL BASE
   ───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ip-font);
  color: var(--ip-body-text);
  background-color: var(--ip-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ip-font);
  color: var(--ip-primary-dark);
}

a {
  color: var(--ip-primary);
  transition: color 0.25s ease;
}
a:hover {
  color: var(--ip-primary-dark);
}

::selection {
  background: var(--ip-primary-light);
  color: var(--ip-primary-dark);
}


/* ─────────────────────────────────────────────
   3. NAVBAR  (.custom-navbar, .custom-offcanvas)
   ───────────────────────────────────────────── */
.custom-navbar {
  background: rgba(14, 47, 61, 0.95) !important;  /* Darker than hero, semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(46, 134, 193, 0.2);
}

.custom-navbar .navbar-brand img {
  transition: height 0.3s ease;
}

.custom-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  letter-spacing: 0.01em;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.custom-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
  border-bottom: 2px solid var(--ip-primary-light, #AED6F1);
  border-radius: 6px 6px 0 0;
}

/* Toggler icon color fix for dark bg */
.custom-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}
.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas (mobile menu) */
.custom-offcanvas {
  background: var(--ip-primary-dark) !important;
}

.custom-offcanvas .offcanvas-title {
  color: #fff;
}

.custom-offcanvas .offcanvas-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem;
  padding: 0.8rem 1.25rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s;
}

.custom-offcanvas .offcanvas-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

/* Mobile bottom padding tweak */
.pb-mobile {
  padding-bottom: 0;
}
@media (max-width: 991.98px) {
  .pb-mobile {
    padding-bottom: 0.5rem;
  }
}


/* ─────────────────────────────────────────────
   4. HERO SECTION  (.hero)
   ───────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(135deg, rgba(27, 79, 114, 0.75) 0%, rgba(46, 134, 193, 0.6) 100%),
    url('../images/main-bg.png') center/cover no-repeat;
  color: #fff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle engineering grid overlay on hero image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero .lead {
  color: var(--ip-primary-light);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero .btn-light {
  background: #fff;
  color: var(--ip-primary-dark);
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  border: 2px solid #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero .btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}


/* ─────────────────────────────────────────────
   5. SECTIONS & SPACING
   ───────────────────────────────────────────── */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section > .container > h1,
section > .container > h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Accent underline for section headings */
section > .container > h1::after,
section > .container > h2.fw-bold::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 3px;
  background: var(--ip-primary);
  border-radius: 2px;
}


/* ─────────────────────────────────────────────
   6. CARDS  (.about-card, standard .card)
   ───────────────────────────────────────────── */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(27, 79, 114, 0.12) !important;
}

.about-card {
  border-top: 3px solid var(--ip-primary);
}

.about-card h3 {
  color: var(--ip-primary-dark);
  font-size: 1.2rem;
}

.about-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ip-body-text);
}


/* ─────────────────────────────────────────────
   7. SCROLL ANIMATION  (.animate-on-scroll)
   ───────────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────
   8. EXPERTISE ACCORDION  (.expertise-item)
   ───────────────────────────────────────────── */
.expertise-item .accordion-button {
  background: #fff;
  color: var(--ip-primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ip-primary-lighter);
  border-radius: 8px !important;
  transition: all 0.25s ease;
  padding: 0.85rem 1.25rem;
}

.expertise-item .accordion-button:not(.collapsed) {
  background: var(--ip-primary-lightest);
  color: var(--ip-primary-dark);
  border-color: var(--ip-primary-light);
  box-shadow: none;
}

.expertise-item .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

.expertise-item .accordion-button::after {
  filter: hue-rotate(200deg) saturate(1.8);
}

.expertise-item .accordion-collapse {
  z-index: 10;
  border-radius: 0 0 8px 8px;
}

.expertise-item .accordion-body {
  border: 1px solid var(--ip-primary-lighter);
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
}

.expertise-item .accordion-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.expertise-item .accordion-body li {
  padding: 0.25rem 0;
  color: var(--ip-body-text);
}


/* ─────────────────────────────────────────────
   9. BUTTONS  (Bootstrap overrides)
   ───────────────────────────────────────────── */
.btn-primary {
  background-color: var(--ip-primary-dark) !important;
  border-color: var(--ip-primary-dark) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ip-hover-dark) !important;
  border-color: var(--ip-hover-dark) !important;
  box-shadow: 0 4px 14px rgba(27, 79, 114, 0.3);
  color: #fff !important;
}

.btn-primary:active {
  background-color: var(--ip-active-dark) !important;
  border-color: var(--ip-active-dark) !important;
}

.btn-outline-primary {
  color: var(--ip-primary-dark) !important;
  border-color: var(--ip-primary-dark) !important;
}

.btn-outline-primary:hover {
  background-color: var(--ip-primary-dark) !important;
  color: #fff !important;
}

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}


/* ─────────────────────────────────────────────
   10. FORMS  (Bootstrap overrides)
   ───────────────────────────────────────────── */
.form-control {
  border-color: var(--ip-primary-lighter);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ip-body-text);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-control:focus {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ip-body-text);
}

.form-text {
  font-size: 0.8rem;
  color: var(--ip-muted);
}

.input-group-text {
  background-color: var(--ip-primary-lightest);
  border-color: var(--ip-primary-lighter);
  color: var(--ip-primary-dark);
  font-weight: 600;
}


/* ─────────────────────────────────────────────
   11. SOCIAL ICONS  (.logo, .bottom-logo, .social-icons)
   ───────────────────────────────────────────── */
.logo a,
.bottom-logo a,
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ip-primary-lightest);
  transition: background 0.3s, transform 0.3s;
  text-decoration: none !important;
}

.logo a:hover,
.bottom-logo a:hover,
.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(27, 79, 114, 0.15);
}

.logo a svg,
.bottom-logo a svg,
.social-icons a svg {
  width: 20px;
  height: 20px;
  fill: var(--ip-primary-dark) !important;
  transition: fill 0.3s;
}

/* Platform-specific hover */
.logo a:hover,
.bottom-logo a:hover,
.social-icons a:hover {
  background: var(--ip-primary-dark);
}

.logo a:hover svg,
.bottom-logo a:hover svg,
.social-icons a:hover svg {
  fill: #fff !important;
}

/* Named platform hovers (when class is present) */
.social-icons a.linkedin:hover  { background: #0A66C2; }
.social-icons a.facebook:hover  { background: #1877F2; }
.social-icons a.whatsapp:hover  { background: #25D366; }
.social-icons a.email:hover     { background: #EA4335; }
.social-icons a.location:hover  { background: #E53935; }

.social-icons a.linkedin:hover svg,
.social-icons a.facebook:hover svg,
.social-icons a.whatsapp:hover svg,
.social-icons a.email:hover svg,
.social-icons a.location:hover svg {
  fill: #fff !important;
}


/* ─────────────────────────────────────────────
   12. MODAL (Careers apply form)
   ───────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(27, 79, 114, 0.2);
  overflow: hidden;
}

.modal-header {
  background: var(--ip-primary-dark);
  color: #fff;
  border-bottom: none;
  padding: 1.1rem 1.5rem;
}

.modal-header .modal-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 1.5rem;
}


/* ─────────────────────────────────────────────
   13. FOOTER
   ───────────────────────────────────────────── */
footer {
  background: var(--ip-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.25rem 0;
  font-size: 0.88rem;
}

footer a {
  color: var(--ip-primary-light);
}
footer a:hover {
  color: #fff;
}


/* ─────────────────────────────────────────────
   14. CAREERS PAGE  (.spaced-list)
   ───────────────────────────────────────────── */
.spaced-list li {
  padding: 0.45rem 0;
  line-height: 1.65;
}

.spaced-list li b {
  color: var(--ip-primary-dark);
}


/* ─────────────────────────────────────────────
   15. CONTACT SECTION — address cards
   ───────────────────────────────────────────── */
#contact .card {
  border-radius: 10px;
}

#contact .card[style*="lightgray"] {
  background-color: var(--ip-primary-lightest) !important;
}

#contact h2.h4 {
  color: var(--ip-primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

#contact p {
  font-size: 0.92rem;
  line-height: 1.75;
}

#contact strong {
  color: var(--ip-primary-dark);
}


/* ─────────────────────────────────────────────
   16. SEPARATOR
   ───────────────────────────────────────────── */
.ip-separator {
  height: 2px;
  background: var(--ip-primary-lighter);
  border: none;
  margin: 2rem 0;
}


/* ─────────────────────────────────────────────
   17. TRAINING ADVISOR  (/training-advisor/*)
   ───────────────────────────────────────────── */

/* Course / Module cards with left accent */
.training-card {
  border-left: 4px solid var(--ip-primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(27, 79, 114, 0.08);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.training-card:hover {
  border-left-color: var(--ip-primary-dark);
  box-shadow: 0 4px 16px rgba(27, 79, 114, 0.12);
  transform: translateX(4px);
}

.training-card h4 {
  color: var(--ip-primary-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Progress bar */
.training-progress {
  height: 6px;
  background: var(--ip-primary-lighter);
  border-radius: 3px;
  overflow: hidden;
}

.training-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ip-primary-dark), var(--ip-primary));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Badges */
.badge-ip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 50px;
}

.badge-ip-primary {
  background: var(--ip-primary-lightest);
  color: var(--ip-primary-dark);
}

.badge-ip-success {
  background: #D5F5E3;
  color: var(--ip-success);
}

/* Sidebar navigation */
.training-sidebar .nav-link {
  color: var(--ip-body-text);
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}

.training-sidebar .nav-link:hover {
  color: var(--ip-primary);
  background: var(--ip-primary-lightest);
  border-left-color: var(--ip-primary-light);
}

.training-sidebar .nav-link.active {
  color: var(--ip-primary-dark);
  font-weight: 600;
  background: var(--ip-primary-lightest);
  border-left-color: var(--ip-primary-dark);
}


/* ─────────────────────────────────────────────
   18. UTILITY CLASSES
   ───────────────────────────────────────────── */
.bg-ip-primary       { background-color: var(--ip-primary-dark) !important; }
.bg-ip-light         { background-color: var(--ip-primary-lightest) !important; }
.text-ip-primary     { color: var(--ip-primary-dark) !important; }
.text-ip-accent      { color: var(--ip-primary) !important; }
.border-ip           { border-color: var(--ip-primary-lighter) !important; }


/* ─────────────────────────────────────────────
   19. RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero {
    min-height: 70vh;
    padding: 6rem 1.5rem 3rem;
  }

  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .about-card .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 60vh;
    padding: 5.5rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .logo a,
  .bottom-logo a,
  .social-icons a {
    width: 36px;
    height: 36px;
  }

  .logo a svg,
  .bottom-logo a svg,
  .social-icons a svg {
    width: 18px;
    height: 18px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}


/* ─────────────────────────────────────────────
   20. PRINT
   ───────────────────────────────────────────── */
@media print {
  .custom-navbar, footer, .hero::before,
  .logo, .bottom-logo, .social-icons {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}
