/* =============================================================
   site.css — Consolidated site styles
   Combines: style.css, page-consistency.css, navbar.css,
             footer.css, shared.css
   ============================================================= */

/* ----------------------------------------------------------
   CSS Custom Properties (brand colours)
   ---------------------------------------------------------- */
:root {
  --ctt-blue: #1A4F90;
  --ctt-green: #7DA14C;
  --ctt-dark: #143a6b;
  --ctt-blue-rgb: 26, 79, 144;
  --ctt-green-rgb: 125, 161, 76;
  --ctt-gradient: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  --ctt-gradient-soft: linear-gradient(135deg, rgba(26, 79, 144, 0.1), rgba(125, 161, 76, 0.12));
  --fi-orange: #7DA14C;
  --fi-link-color: #1A4F90;
  --fi-link-hover-color: #143a6b;
  --fi-gray-600: #6c757d;
}

/* ----------------------------------------------------------
   Base / Reset
   ---------------------------------------------------------- */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  width: 100%;
  position: relative;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Albert Sans", sans-serif !important;
}

@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-gutter: stable;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------
   Page Loading Spinner
   ---------------------------------------------------------- */
.page-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all .4s .2s ease-in-out;
  transition: all .4s .2s ease-in-out;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.page-loading.active {
  opacity: 1;
  visibility: visible;
}

.page-loading-inner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: opacity .2s ease-in-out;
  transition: opacity .2s ease-in-out;
  opacity: 0;
}

.page-loading.active>.page-loading-inner {
  opacity: 1;
}

.page-loading-inner>span {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: #666276;
}

.page-spinner {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .75rem;
  vertical-align: text-bottom;
  border: .15em solid #bbb7c5;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner .75s linear infinite;
  animation: spinner .75s linear infinite;
}

@-webkit-keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------
   Page Wrapper / Layout
   ---------------------------------------------------------- */
.page-wrapper {
  padding-top: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f5f4f8 100%);
  min-height: 100vh;
}

.page-wrapper.about-page,
.page-wrapper.policy-page,
.page-wrapper.candidates-page,
.page-wrapper.schools-page {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 45%, #f5f4f8 100%);
}

section {
  padding: 3rem 0;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ----------------------------------------------------------
   Heading Hierarchy
   ---------------------------------------------------------- */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------
   Breadcrumb Styles
   ---------------------------------------------------------- */
.breadcrumb-nav {
  margin-bottom: 1.5rem;
  z-index: 3;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  margin-bottom: 0 !important;
}

.breadcrumb-item {
  font-size: 0.875rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "\203A";
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.8);
}

/* Dark breadcrumb — override when links use text-dark class */
.breadcrumb-item a.text-dark {
  color: rgba(0, 0, 0, 0.7) !important;
}

.breadcrumb-item a.text-dark:hover {
  color: #1A4F90;
}

/* Light-background breadcrumb — use .breadcrumb-on-light wrapper */
.breadcrumb-on-light {
  padding: 0.5rem 0;
}

.breadcrumb-on-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(0, 0, 0, 0.35) !important;
}

.breadcrumb-on-light .breadcrumb-item a {
  color: #1A4F90 !important;
  text-decoration: none;
}

.breadcrumb-on-light .breadcrumb-item a:hover {
  color: #143a6b !important;
  text-decoration: underline;
}

.breadcrumb-on-light .breadcrumb-item.active {
  color: rgba(0, 0, 0, 0.5) !important;
}

.candidates-page .breadcrumb-item+.breadcrumb-item::before,
.schools-page .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(0, 0, 0, 0.5);
}

.candidates-page .breadcrumb-item.active,
.schools-page .breadcrumb-item.active {
  color: rgba(0, 0, 0, 0.9);
}

/* ----------------------------------------------------------
   Common Hero Section (generic class)
   ---------------------------------------------------------- */
.common-hero-section {
  background: linear-gradient(135deg, #143a6b 0%, #1A4F90 55%, #7DA14C 100%);
  padding-top: 110px;
  padding-bottom: 60px;
  position: relative;
  min-height: 400px;
}

.common-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(26, 79, 144, 0.22), transparent 60%),
              radial-gradient(circle at bottom right, rgba(125, 161, 76, 0.22), transparent 55%);
  z-index: 0;
  pointer-events: none;
}

.common-hero-section .container {
  position: relative;
  z-index: 2;
}

.common-hero-intro {
  position: relative;
  border-radius: 28px !important;
  padding: 2.75rem 2.5rem !important;
  background: linear-gradient(135deg,
    #1A4F90 0%,
    #2a669f 55%,
    #7DA14C 100%) !important;
  background-color: #1A4F90 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 24px 60px rgba(15, 12, 32, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset,
              0 8px 32px rgba(26, 79, 144, 0.35),
              0 4px 16px rgba(125, 161, 76, 0.25) !important;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.common-hero-intro.shadow-lg {
  background: linear-gradient(135deg,
    #1A4F90 0%,
    #2a669f 55%,
    #7DA14C 100%) !important;
  background-color: #1A4F90 !important;
}

.common-hero-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.common-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ----------------------------------------------------------
   Per-Page Hero Sections (from shared.css)
   ---------------------------------------------------------- */
.home-hero,
.contact-hero,
.faq-hero,
.about-hero,
.policy-hero,
.candidates-hero,
.schools-hero,
.supply-hero,
.enquiries-hero,
.jobs-hero,
.show-job-hero,
.new-job-hero,
.edit-job-hero,
.applicants-hero,
.login-hero,
.notifications-hero,
.admin-dashboard-hero,
.manual-hero,
.users-list-hero,
.new-user-hero {
  background: linear-gradient(135deg, #143a6b 0%, #1a4f90 30%, #1e568f 60%, #143a6b 100%);
  padding-top: 110px;
  padding-bottom: 60px;
  position: relative;
}

.home-hero::before,
.contact-hero::before,
.faq-hero::before,
.about-hero::before,
.policy-hero::before,
.candidates-hero::before,
.schools-hero::before,
.supply-hero::before,
.enquiries-hero::before,
.jobs-hero::before,
.show-job-hero::before,
.new-job-hero::before,
.edit-job-hero::before,
.applicants-hero::before,
.login-hero::before,
.notifications-hero::before,
.admin-dashboard-hero::before,
.manual-hero::before,
.users-list-hero::before,
.new-user-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(26, 79, 144, 0.2), transparent 60%),
              radial-gradient(circle at bottom right, rgba(125, 161, 76, 0.18), transparent 55%);
  z-index: 0;
  pointer-events: none;
}

.home-hero .container,
.contact-hero .container,
.faq-hero .container,
.about-hero .container,
.policy-hero .container,
.candidates-hero .container,
.schools-hero .container,
.supply-hero .container,
.enquiries-hero .container,
.jobs-hero .container,
.show-job-hero .container,
.new-job-hero .container,
.edit-job-hero .container,
.applicants-hero .container,
.login-hero .container,
.notifications-hero .container,
.admin-dashboard-hero .container,
.manual-hero .container,
.users-list-hero .container,
.new-user-hero .container {
  position: relative;
  z-index: 2;
}

/* Hero intro box (the branded gradient card inside the hero) */
.contact-hero-intro,
.faq-hero-intro,
.about-hero-intro,
.policy-hero-intro,
.candidates-hero-intro,
.schools-hero-intro,
.supply-hero-intro,
.enquiries-hero-intro,
.jobs-hero-intro,
.show-job-hero-intro,
.new-job-hero-intro,
.edit-job-hero-intro,
.applicants-hero-intro,
.login-hero-intro,
.notifications-hero-intro,
.admin-dashboard-hero-intro,
.manual-hero-intro,
.users-list-hero-intro,
.new-user-hero-intro {
  position: relative;
  border-radius: 28px;
  padding: 2.75rem 2.5rem;
  background: linear-gradient(135deg,
    #1A4F90 0%,
    #2a669f 30%,
    #5f8c3b 60%,
    #7DA14C 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 24px 60px rgba(15, 12, 32, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 32px rgba(26, 79, 144, 0.4),
    0 4px 16px rgba(125, 161, 76, 0.3);
  height: 100%;
  overflow: hidden;
}

/* Radial shimmer inside every hero-intro box */
.contact-hero-intro::before,
.faq-hero-intro::before,
.about-hero-intro::before,
.policy-hero-intro::before,
.candidates-hero-intro::before,
.schools-hero-intro::before,
.supply-hero-intro::before,
.enquiries-hero-intro::before,
.jobs-hero-intro::before,
.show-job-hero-intro::before,
.new-job-hero-intro::before,
.edit-job-hero-intro::before,
.applicants-hero-intro::before,
.login-hero-intro::before,
.notifications-hero-intro::before,
.admin-dashboard-hero-intro::before,
.manual-hero-intro::before,
.users-list-hero-intro::before,
.new-user-hero-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Hero content sits above the shimmer */
.contact-hero-content,
.faq-hero-content,
.about-hero-content,
.policy-hero-content,
.candidates-hero-content,
.schools-hero-content,
.supply-hero-content,
.enquiries-hero-content,
.jobs-hero-content,
.show-job-hero-content,
.new-job-hero-content,
.edit-job-hero-content,
.applicants-hero-content,
.login-hero-content,
.notifications-hero-content,
.admin-dashboard-hero-content,
.manual-hero-content,
.users-list-hero-content,
.new-user-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ----------------------------------------------------------
   Caption Styles (inside hero boxes)
   ---------------------------------------------------------- */
.caption-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.caption-title {
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.caption-text {
  color: rgba(255, 255, 255, 0.98) !important;
  max-width: 100%;
  line-height: 1.7;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.caption-text a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.caption-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------------------------
   Card Styles
   ---------------------------------------------------------- */
.card,
.shadow-lg {
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover,
.shadow-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.faq-card,
.about-card,
.policy-card,
.supply-card,
.job-detail-card,
.job-applicants-card,
.new-form-card,
.edit-form-card,
.notification-form-card,
.login-card,
.enquiries-card,
.empty-state-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-card:hover,
.about-card:hover,
.policy-card:hover,
.supply-card:hover,
.job-applicants-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-header-icon {
  margin-top: -40px;
  margin-bottom: 1rem;
}

/* Related Links Section */
.related-links-section {
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.08), rgba(125, 161, 76, 0.1));
  border: 1px solid rgba(26, 79, 144, 0.16);
}

.related-links-section a {
  transition: all 0.3s ease;
}

.related-links-section a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* ----------------------------------------------------------
   Icon Wrappers
   ---------------------------------------------------------- */
.icon-wrapper {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(26, 79, 144, 0.3);
  transition: all 0.3s ease;
}

.icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.icon-wrapper-primary,
.icon-wrapper-success,
.icon-wrapper-orange {
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
}

.icon-wrapper-orange i {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.faq-intro-card:hover .icon-wrapper,
.about-card:hover .icon-wrapper,
.policy-card:hover .icon-wrapper,
.supply-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(26, 79, 144, 0.4);
}

/* Empty State */
.empty-state-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.1), rgba(125, 161, 76, 0.1));
  border-radius: 50%;
}

.empty-state-icon i {
  font-size: 3rem;
  color: #6c757d;
}

/* Section Icon (small, rounded, used in form cards) */
.section-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.1), rgba(125, 161, 76, 0.1));
  border-radius: 50%;
}

.section-icon i {
  font-size: 2rem;
  color: #1A4F90;
}

/* ----------------------------------------------------------
   Button Styles
   ---------------------------------------------------------- */
.btn {
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.625rem 1.5rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-primary,
.btn.btn-primary,
a.btn-primary {
  background: var(--ctt-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(26, 79, 144, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
  background: var(--ctt-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 79, 144, 0.4);
}

.btn-outline-primary {
  color: var(--ctt-blue) !important;
  border: 2px solid var(--ctt-blue) !important;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--ctt-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   Table Styles
   ---------------------------------------------------------- */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.1), rgba(125, 161, 76, 0.1));
  border: none;
  padding: 1.25rem 1rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
  background-color: rgba(26, 79, 144, 0.05);
  transform: translateX(3px);
}

.table tbody td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
  border: none;
}

.table a {
  transition: all 0.3s ease;
}

.table a:hover {
  color: #1A4F90 !important;
}

/* ----------------------------------------------------------
   Form Controls
   ---------------------------------------------------------- */
.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
  border-color: #1A4F90;
  box-shadow: 0 0 0 0.2rem rgba(26, 79, 144, 0.15);
  outline: none;
}

/* ----------------------------------------------------------
   Content Section Typography
   ---------------------------------------------------------- */
.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1.5rem;
}

.content-section .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
}

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */
.gradient-text {
  background: var(--ctt-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.divider-center {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #1A4F90 0%, #7DA14C 100%);
  margin: 0 auto;
  border-radius: 3px;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid #1A4F90;
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   Badge / Pill Styles
   ---------------------------------------------------------- */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
}

.bg-primary {
  background: linear-gradient(135deg, #1A4F90, #7DA14C) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  color: white;
  border: none;
}

/* ----------------------------------------------------------
   WCAG AA colour-contrast fixes (4.5:1 minimum on white)
   theme.min.css sets text-muted to #9691a4 (3.05:1) and
   placeholder to same.  Override to accessible colours.
   ---------------------------------------------------------- */
.text-muted {
  color: #6c757d !important;
}

.form-control::placeholder,
.form-control::-moz-placeholder {
  color: #6c757d !important;
}

/* ----------------------------------------------------------
   Brand Theme Overrides (Bootstrap alignment)
   ---------------------------------------------------------- */
.text-primary,
.text-primary:visited {
  color: var(--ctt-blue) !important;
}

.bg-warning {
  background-color: var(--ctt-green) !important;
}

.text-warning,
.text-bg-warning,
.badge.bg-warning {
  color: #fff !important;
  background-color: var(--ctt-green) !important;
}

.border-warning {
  border-color: var(--ctt-green) !important;
}

.btn-warning {
  background: var(--ctt-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(var(--ctt-blue-rgb), 0.3) !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background: var(--ctt-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(var(--ctt-blue-rgb), 0.4) !important;
}

/* Hard overrides to eliminate legacy warm accents */
body .text-primary,
body .text-primary:visited,
body a.text-primary,
body a.text-primary:visited {
  color: var(--ctt-blue) !important;
}

body a.text-primary:hover,
body .text-primary:hover {
  color: var(--ctt-green) !important;
}

body .alert-warning,
body .alert-warning * {
  color: #fff !important;
}

body .alert-warning {
  background: var(--ctt-gradient) !important;
  border-color: transparent !important;
}

body .btn-link.text-primary {
  color: var(--ctt-blue) !important;
}

body .btn-link.text-primary:hover {
  color: var(--ctt-green) !important;
}

/* ----------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------- */
.brand-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  transition: all 0.3s ease;
  object-fit: contain;
  border: none !important;
  background: transparent !important;
  padding: 5px;
}

.brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

#logoModal .modal-dialog {
  max-width: 90%;
  max-height: 90vh;
}

#logoModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#logoModal .modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  padding: 0.5rem 0;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link-custom {
  color: #333 !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-custom:hover {
  color: #7DA14C !important;
}

.nav-item.active > .nav-link-custom {
  color: #7DA14C !important;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1A4F90 0%, #7DA14C 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-item.active > .nav-link-custom::after {
  width: 80%;
}

.dropdown-menu {
  border: none !important;
  border-radius: 12px !important;
  padding: 0.5rem !important;
  margin-top: 0.5rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  min-width: 200px;
  z-index: 1050 !important;
  background: white !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-item {
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
  color: #333 !important;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.1), rgba(125, 161, 76, 0.1)) !important;
  transform: translateX(5px);
  color: #7DA14C !important;
}

.dropdown-divider {
  margin: 0.5rem 0 !important;
  opacity: 0.2 !important;
}

.navbar .nav-link:focus,
.navbar .nav-link:hover,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:hover,
.navbar .nav-link:focus-visible,
.navbar .dropdown-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.dropdown-toggle::after {
  display: inline-block !important;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  background: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

.navbar-toggler {
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(125, 161, 76, 0.25);
}

[data-scroll-header] {
  transition: all 0.3s ease;
}

.text-truncate {
  display: inline-block;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer-section {
  background: linear-gradient(135deg, #143a6b 0%, #1A4F90 50%, #7DA14C 100%);
  position: relative;
}

.footer-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top left, rgba(26, 79, 144, 0.22), transparent 55%),
              radial-gradient(circle at bottom right, rgba(125, 161, 76, 0.22), transparent 55%);
  pointer-events: none;
}

.footer-logo {
  height: 80px;
  width: auto;
  max-width: 250px;
  transition: all 0.3s ease;
  border: none !important;
  background: transparent !important;
  padding: 5px;
  object-fit: contain;
}

.footer-brand:hover .footer-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(125, 161, 76, 0.5));
}

.footer-logo:hover {
  cursor: pointer;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #7DA14C;
  transform: translateX(5px);
  text-decoration: none;
}

.footer-links i {
  font-size: 0.75rem;
  color: #1A4F90 !important;
}

.footer-links a:hover i {
  color: #7DA14C !important;
}

.social-section {
  position: relative;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-decoration: none;
}

.social-icon:hover {
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(125, 161, 76, 0.4);
  text-decoration: none;
}

.footer-section h5 {
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section .text-primary,
.footer-section i.text-primary,
.footer-section strong.text-primary {
  color: #1A4F90 !important;
}

.footer-section a.text-primary:hover,
.footer-section i.text-primary:hover {
  color: #7DA14C !important;
}

.footer-section h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #1A4F90 0%, #7DA14C 100%);
  border-radius: 2px;
}

.copyright-section {
  position: relative;
}

.footer-section .row > div {
  position: relative;
  z-index: 1;
}

.footer-brand p {
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes animate-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes animate-fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes animate-slide-up {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fade-in {
  animation: animate-fade-in 0.8s ease forwards;
}

.animate-fade-in-up {
  animation: animate-fade-in-up 1s ease forwards;
}

.animate-slide-up {
  animation: animate-slide-up 1s ease forwards;
}

/* Footer animations */
body.js-loaded .footer-links,
body.js-loaded .social-section,
body.js-loaded .copyright-section {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

body.js-loaded .social-section {
  animation-delay: 0.2s;
}

body.js-loaded .copyright-section {
  animation-delay: 0.4s;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (min-width: 992px) {
  .brand-logo {
    height: 70px;
    max-width: 220px;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-item.dropdown .dropdown-menu {
    margin-top: 0 !important;
    pointer-events: auto;
  }

  .nav-item.dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  .nav-item.dropdown .dropdown-toggle::after {
    margin-left: 0.5em;
  }
}

@media (max-width: 1199px) {
  .caption-title {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  section {
    padding: 2rem 0;
  }

  .common-hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .common-hero-intro {
    border-radius: 22px;
    padding: 2.25rem 2rem;
  }

  .contact-hero,
  .faq-hero,
  .about-hero,
  .policy-hero,
  .candidates-hero,
  .schools-hero,
  .supply-hero,
  .enquiries-hero,
  .jobs-hero,
  .show-job-hero,
  .new-job-hero,
  .edit-job-hero,
  .applicants-hero,
  .login-hero,
  .notifications-hero,
  .admin-dashboard-hero,
  .manual-hero,
  .users-list-hero,
  .new-user-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .icon-wrapper i {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  .mb-lg-5 {
    margin-bottom: 2rem !important;
  }

  .py-lg-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Mobile navbar */
  .navbar-collapse {
    background: white;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .nav-link-custom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link-custom:last-child {
    border-bottom: none;
  }

  .nav-link-custom::after {
    display: none;
  }

  .dropdown-menu {
    position: static !important;
    z-index: 1050 !important;
    width: 100% !important;
  }

  .btn-scroll-top {
    right: 1.25rem !important;
    left: auto !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .footer-section h5 {
    font-size: 1.1rem;
  }

  .footer-logo {
    height: 50px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  section {
    padding: 1.5rem 0;
  }

  body {
    font-size: 15px;
    line-height: 1.6;
  }

  p {
    margin-bottom: 1rem;
  }

  .text-muted {
    font-size: 0.875rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card,
  .shadow-lg {
    border-radius: 16px !important;
    padding: 1.5rem !important;
  }

  .display-4,
  .display-5 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .p-4,
  .p-md-5 {
    padding: 1.5rem !important;
  }

  .g-4 {
    gap: 1rem !important;
  }

  .g-5 {
    gap: 1.5rem !important;
  }

  .brand-logo {
    height: 50px;
    max-width: 180px;
  }

  .common-hero-section {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .common-hero-intro {
    border-radius: 20px;
    padding: 2rem 1.75rem;
  }

  .caption-title {
    font-size: 1.7rem;
  }

  .caption-text {
    font-size: 1rem;
  }

  .row {
    --bs-gutter-x: 1rem;
  }
}
