/* City College Perth Custom CSS Stylesheet */
:root {
  --primary-red: #C8102E;
  --dark-red: #A00B22;
  --brand-orange: #FF5722;
  --brand-yellow: #FFC107;
  --dark-text: #111827;
  --muted-text: #1F2937; /* Near black for maximum readability */
  --light-bg: #F8F9FA;
  --card-bg: #FFFFFF;
  --footer-bg: #2B6CB0;
}

body {
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  color: #111827;
  font-size: 17px;
  line-height: 1.6;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* Global Dark/Near-Black text for readability */
p, span, li, label, div {
  color: inherit;
}

.text-muted, .text-secondary {
  color: #1F2937 !important; /* Near black instead of light gray */
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  letter-spacing: 0.2px;
  color: #111827;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

/* Navbar & Header */
.navbar-header {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  z-index: 1030;
}

.scholarship-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.scholarship-nav-logo {
  flex-shrink: 0;
}

.scholarship-nav-logo img {
  height: 105px;
  width: auto;
  max-width: min(420px, 58vw);
  object-fit: contain;
  display: block;
}

.scholarship-nav-desktop {
  margin-left: auto;
  justify-content: flex-end;
}

.nav-link-custom {
  font-weight: 700;
  font-size: 16.5px;
  color: #111827 !important;
  transition: color 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--primary-red) !important;
}

/* Mobile hamburger */
.scholarship-nav-toggler {
  width: 46px;
  height: 46px;
  border: 2px solid #C8102E;
  border-radius: 12px;
  background: #FFF0F2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.scholarship-nav-toggler:hover,
.scholarship-nav-toggler:focus-visible,
.scholarship-nav-toggler[aria-expanded="true"] {
  background: #C8102E;
  outline: none;
}

.scholarship-nav-toggler:hover .scholarship-nav-toggler-icon,
.scholarship-nav-toggler:focus-visible .scholarship-nav-toggler-icon,
.scholarship-nav-toggler[aria-expanded="true"] .scholarship-nav-toggler-icon,
.scholarship-nav-toggler:hover .scholarship-nav-toggler-icon::before,
.scholarship-nav-toggler:focus-visible .scholarship-nav-toggler-icon::before,
.scholarship-nav-toggler[aria-expanded="true"] .scholarship-nav-toggler-icon::before,
.scholarship-nav-toggler:hover .scholarship-nav-toggler-icon::after,
.scholarship-nav-toggler:focus-visible .scholarship-nav-toggler-icon::after,
.scholarship-nav-toggler[aria-expanded="true"] .scholarship-nav-toggler-icon::after {
  background: #fff;
}

.scholarship-nav-toggler-icon,
.scholarship-nav-toggler-icon::before,
.scholarship-nav-toggler-icon::after {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #C8102E;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.scholarship-nav-toggler-icon {
  position: relative;
}

.scholarship-nav-toggler-icon::before,
.scholarship-nav-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.scholarship-nav-toggler-icon::before {
  top: -7px;
}

.scholarship-nav-toggler-icon::after {
  top: 7px;
}

.scholarship-nav-toggler[aria-expanded="true"] .scholarship-nav-toggler-icon {
  background: transparent;
}

.scholarship-nav-toggler[aria-expanded="true"] .scholarship-nav-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.scholarship-nav-toggler[aria-expanded="true"] .scholarship-nav-toggler-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.scholarship-mobile-nav {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
}

.scholarship-mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.scholarship-mobile-link {
  display: block;
  width: 100%;
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid #E5E7EB;
  text-decoration: none;
  text-align: right;
}

.scholarship-mobile-link:last-child {
  border-bottom: none;
}

@media (max-width: 991.98px) {
  .navbar-header {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .scholarship-nav-logo img {
    height: 68px;
    max-width: min(240px, 62vw);
  }
}

@media (max-width: 575.98px) {
  .scholarship-nav-logo img {
    height: 56px;
    max-width: min(200px, 58vw);
  }

  .scholarship-nav-toggler {
    width: 40px;
    height: 40px;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #A8081E 0%, #D0021B 50%, #8C0010 100%);
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-building-skeleton {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: min(58%, 760px);
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.55;
}

.hero-section > .container {
  z-index: 1;
}

.hero-section > .container > .row {
  align-items: stretch;
}

.hero-section > .container > .row > [class*="col-"]:not(.hero-student-container) {
  align-self: center;
}

.hero-student-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  margin-bottom: 0;
  min-height: 280px;
}

.hero-student-img {
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  height: auto;
  max-height: min(560px, 72vh);
  object-fit: contain;
  object-position: bottom center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  pointer-events: none;
}

.hero-student-img:hover {
  transform: none;
  box-shadow: none;
}

@media (min-width: 992px) {
  .hero-student-container {
    margin-bottom: -1rem; /* sit flush with hero bottom edge */
    /* leave room roughly for form title + first field so image top starts near 2nd field */
    padding-top: 5.25rem;
  }

  .hero-student-img {
    max-width: min(100%, 420px);
    width: auto;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
  }
}

@media (max-width: 991.98px) {
  .hero-student-container {
    min-height: 280px;
    margin-top: 0.5rem;
    justify-content: flex-end;
  }

  .hero-student-img {
    max-width: min(100%, 300px);
    max-height: min(480px, 60vh);
  }
}

@media (max-width: 575.98px) {
  .hero-student-container {
    min-height: 220px;
  }

  .hero-student-img {
    max-width: min(100%, 240px);
    max-height: min(380px, 52vh);
  }
}

.campaign-badge {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.15;
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }
}

.hero-copy {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.hero-schedule-note {
  color: #fff;
  font-size: 15px;
}

.hero-schedule-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.hero-schedule-text {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .hero-schedule-note {
    font-size: clamp(11px, 2.9vw, 14px);
  }

  .hero-schedule-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}

@media (max-width: 575.98px) {
  .hero-schedule-note {
    font-size: clamp(10px, 2.7vw, 12.5px);
    gap: 0.4rem !important;
  }
}

.hero-subtitle {
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
}

/* Flashy continuous highlight for scholarship amount */
.hero-amount-flash {
  display: inline-block;
  position: relative;
  padding: 0 0.12em;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-image: linear-gradient(
    110deg,
    #fff59d 0%,
    #ffeb3b 18%,
    #ffffff 38%,
    #ffc107 55%,
    #ffe082 72%,
    #ffeb3b 88%,
    #fff59d 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 235, 59, 0.55));
  animation:
    hero-amount-shimmer 2.4s linear infinite,
    hero-amount-glow 1.8s ease-in-out infinite,
    hero-amount-pop 2.2s ease-in-out infinite;
  will-change: background-position, filter, transform;
}

.hero-amount-flash::after {
  content: "";
  position: absolute;
  inset: -0.15em -0.2em;
  border-radius: 0.35em;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 235, 59, 0.35) 0%,
    rgba(255, 193, 7, 0.12) 45%,
    transparent 70%
  );
  z-index: -1;
  animation: hero-amount-halo 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-amount-shimmer {
  0% {
    background-position: 120% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

@keyframes hero-amount-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 235, 59, 0.45))
      drop-shadow(0 0 10px rgba(255, 193, 7, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.85))
      drop-shadow(0 0 22px rgba(255, 235, 59, 0.9))
      drop-shadow(0 0 36px rgba(255, 193, 7, 0.55));
  }
}

@keyframes hero-amount-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes hero-amount-halo {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-amount-flash,
  .hero-amount-flash::after {
    animation: none;
  }

  .hero-amount-flash {
    background-image: none;
    color: #ffeb3b;
    -webkit-text-fill-color: #ffeb3b;
    filter: drop-shadow(0 0 8px rgba(255, 235, 59, 0.5));
  }
}

.tagline-box {
  background-color: #B71C1C;
  border-left: 5px solid #FFD54F;
  font-size: 16.5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 991.98px) {
  .tagline-box {
    font-size: clamp(11px, 2.9vw, 14px);
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.35;
  }
}

@media (max-width: 575.98px) {
  .tagline-box {
    font-size: clamp(10px, 2.7vw, 12.5px);
  }
}

.btn-cta-easy {
  background-color: #FF5722;
  border-color: #FF5722;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
  transition: all 0.25s ease;
}
.btn-cta-easy:hover {
  background-color: #E64A19;
  border-color: #E64A19;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.5);
}

.btn-cta-consultant {
  background-color: #FF8A00;
  border-color: #FF8A00;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
  transition: all 0.25s ease;
}
.btn-cta-consultant:hover {
  background-color: #E67E00;
  border-color: #E67E00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 138, 0, 0.5);
}

/* Eligibility Form Card */
.hero-form-card {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  overflow: visible;
  min-width: 0;
}

#eligibility-form {
  min-width: 0;
}

.hero-form-card form {
  max-width: 100%;
  min-width: 0;
}

.hero-form-card .input-group,
.hero-form-card .scholarship-flag-picker,
.hero-form-card .scholarship-course-field {
  max-width: 100%;
  min-width: 0;
}

.hero-form-card .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.hero-form-card .input-group-text {
  border-color: #D1D5DB;
  color: #111827;
  font-size: 14px;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  min-height: calc(1.4em + 1rem + 2px);
}

.hero-form-card .input-group-text i {
  line-height: 1;
  font-size: 14px;
}

.hero-form-card .form-control,
.hero-form-card .form-select {
  border-color: #D1D5DB;
  font-size: 14px;
  color: #111827 !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  min-height: calc(1.4em + 1rem + 2px);
  line-height: 1.4;
  max-width: 100%;
  min-width: 0;
}

/* Keep icon + field on one row inside input groups */
.hero-form-card .input-group > .form-control {
  width: 1%;
  flex: 1 1 auto;
}

.hero-form-card .scholarship-course-field .form-select,
.hero-form-card .scholarship-flag-picker__toggle {
  width: 100%;
}

.hero-form-card .scholarship-course-select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.hero-form-card .form-control::placeholder {
  color: #374151 !important;
  opacity: 1;
}

.hero-form-card .form-control:focus,
.hero-form-card .form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.15rem rgba(200, 16, 46, 0.12);
}

.hero-form-card textarea.form-control {
  min-height: 2.6rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.hero-form-card .scholarship-phone-code {
  max-width: 11.5rem;
  flex: 0 0 11.5rem;
  font-size: 12px;
  padding-left: 6px;
  padding-right: 4px;
}

.hero-form-card .input-group-sm > .form-control,
.hero-form-card .input-group-sm > .form-select,
.hero-form-card .input-group-sm > .input-group-text {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Country picker with flagcdn images */
.scholarship-flag-picker {
  position: relative;
}

.scholarship-flag-picker__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background-image: none;
  cursor: pointer;
}

.scholarship-flag-picker__selected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #111827;
}

.scholarship-flag-picker__selected img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.scholarship-flag-picker__placeholder {
  color: #374151;
}

.scholarship-flag-picker__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.scholarship-flag-picker__search {
  border: 0;
  border-bottom: 1px solid #E5E7EB;
  border-radius: 0;
  font-size: 13px;
}

.scholarship-flag-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.scholarship-flag-picker__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #111827;
}

.scholarship-flag-picker__option img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.scholarship-flag-picker__option:hover,
.scholarship-flag-picker__option.is-active {
  background: #F3F4F6;
}

.btn-submit-form {
  background-color: var(--primary-red);
  border: none;
  color: white;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.5px;
  padding: 12px;
  transition: all 0.25s ease;
}
.btn-submit-form:hover {
  background-color: var(--dark-red);
  transform: translateY(-1px);
}

/* Section Divider Titles */
.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 2.8rem;
}
.section-title-line {
  height: 2px;
  background-color: #9CA3AF;
  width: 100px;
}
.section-title-text {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  color: #111827;
  text-transform: uppercase;
}

/* Feature Icon Cards */
.feature-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: rgba(200, 16, 46, 0.3);
}

.feature-icon-circle {
  width: 76px;
  height: 76px;
  background-color: #FFF0F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Course Cards */
.course-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.course-card-img-wrapper {
  height: 280px;
  overflow: hidden;
  position: relative;
}
.course-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .course-card-img-wrapper img {
  transform: scale(1.05);
}

.btn-view-course {
  border: 2px solid #111827;
  color: #111827;
  font-weight: 800;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14.5px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-view-course:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #FFFFFF;
  text-decoration: none;
}

/* We Speak Your Language Officer Cards */
.officer-card {
  background-color: #FFFFFF;
  border-radius: 14px;
  border-top: 4px solid var(--primary-red);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
}
.officer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn-call-officer {
  background-color: #111827;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 50px;
  padding: 10px 22px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}
.btn-call-officer:hover {
  background-color: #1F2937;
}

/* Contact Team Banner */
.ready-future-banner {
  background: linear-gradient(135deg, rgba(160, 2, 20, 0.7) 0%, rgba(208, 2, 27, 0.7) 100%), url('assets/images/building.png') center/cover no-repeat;
  border-radius: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.ready-future-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/building.png');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.btn-apply-yellow {
  background-color: #FFC107;
  color: #111827 !important;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  transition: all 0.25s ease;
}
.btn-apply-yellow:hover {
  background-color: #FFB300;
  transform: translateY(-2px);
}

/* Hero form — compact officer call list */
.scholarship-form-officers {
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
}

.scholarship-form-officers__title {
  font-size: 13px;
  line-height: 1.4;
  color: #111827;
}

.scholarship-form-officers__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scholarship-form-officers__item {
  font-size: 12px;
  line-height: 1.45;
  color: #374151;
}

.scholarship-form-officers__phone {
  color: #C8102E;
  font-weight: 700;
  text-decoration: none;
  margin-left: 2px;
}

.scholarship-form-officers__phone:hover {
  text-decoration: underline;
}

.scholarship-form-officers__meta {
  display: inline;
  color: #4B5563;
}

/* Ready Future banner — student image anchored to bottom (like hero) */
.ready-future-banner > .row {
  min-height: 220px;
}

.ready-future-student-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
  margin-bottom: -1.5rem;
  margin-right: -1.5rem;
  min-height: 200px;
}

.ready-future-student-img {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  height: auto;
  max-height: min(320px, 100%);
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .ready-future-student-container {
    margin-bottom: -3rem;
    margin-right: -3rem;
    padding-top: 1rem;
  }

  .ready-future-student-img {
    max-width: min(100%, 320px);
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
  }
}
