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

:root {
  --primary-color: #1e3a8a;      /* Deep Sapphire */
  --primary-hover: #172554;
  --secondary-color: #0d9488;    /* Deep Teal */
  --secondary-hover: #0f766e;
  --accent-color: #f59e0b;       /* Sun Gold */
  --accent-hover: #d97706;
  --bg-dark: #0f172a;            /* Slate 900 */
  --bg-light: #f8fafc;           /* Slate 50 */
  --text-dark: #1e293b;          /* Slate 800 */
  --text-muted: #64748b;         /* Slate 500 */
  --border-color: #e2e8f0;       /* Slate 200 */
  
  --font-headers: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-headers);
  font-weight: 700;
}

/* --- Navigation --- */
.navbar-itec {
  transition: var(--transition-normal);
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-itec.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-itec .navbar-brand img {
  height: 48px;
  transition: var(--transition-normal);
}

.navbar-itec.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-itec .nav-link {
  color: var(--text-dark) !important;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-itec .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-itec .nav-link:hover::after,
.navbar-itec .nav-link.active::after {
  width: 80%;
}

.navbar-itec .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* --- Buttons --- */
.btn-itec-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-headers);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-sm);
  border: none;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.btn-itec-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
  font-family: var(--font-headers);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-sm);
  border: none;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-itec-secondary:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-itec-outline {
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-headers);
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-normal);
}

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

/* --- Hero Section --- */
.hero-itec {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.95)), url('../assets/img/hero-campus.png');
  background-size: cover;
  background-position: center;
  padding: 160px 0 100px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-itec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 75% 30%, rgba(13, 148, 136, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-itec h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-itec p {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
}

/* --- Section Formatting --- */
.section-padding {
  padding: 80px 0;
}

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

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--text-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-title-center {
  text-align: center;
}

.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Value Proposition Cards --- */
.card-itec-val {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.card-itec-val:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.card-itec-val .val-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--secondary-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 25px;
  transition: var(--transition-fast);
}

.card-itec-val:hover .val-icon {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* --- Accreditations --- */
.accred-logo-wrapper {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.accred-logo-wrapper:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(30, 58, 138, 0.2);
  box-shadow: var(--shadow-md);
}

.accred-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Programme Cards --- */
.card-itec-prog {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card-itec-prog:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 58, 138, 0.2);
}

.card-itec-prog .prog-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.card-itec-prog .prog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.card-itec-prog:hover .prog-img {
  transform: scale(1.05);
}

.card-itec-prog .prog-content {
  padding: 30px;
}

.card-itec-prog .prog-school-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: inline-block;
}

.card-itec-prog .prog-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.card-itec-prog .prog-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  height: 72px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* --- Stats Counters --- */
.bg-gradient-itec {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: #ffffff;
}

.stat-item {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* --- News Grid --- */
.news-card {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card .news-badge {
  background-color: var(--secondary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: inline-block;
}

.news-card .news-content {
  padding: 30px;
}

.news-card .news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-card .news-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Call To Action Section --- */
.cta-itec {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(30, 58, 138, 0.95)), url('../assets/img/hero-campus.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

/* --- Footer --- */
.footer-itec {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
  font-size: 0.95rem;
}

.footer-itec h5 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-itec h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-itec p {
  line-height: 1.8;
}

.footer-itec a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-itec .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition-normal);
  color: #ffffff;
}

.footer-itec .social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  color: var(--bg-dark);
  padding-left: 0;
}

.footer-itec .map-wrapper {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Core Values Grid --- */
.value-card {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 25px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  height: 100%;
  transition: var(--transition-normal);
}

.value-card:hover {
  background: #ffffff;
  border-left-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- Program Search & Accordion --- */
.search-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 50px;
}

.search-input-group {
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-group input {
  padding-left: 45px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  height: 50px;
}

.search-input-group input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.school-header-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 30px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.school-header-bar h3 {
  margin: 0;
  font-size: 1.4rem;
}

.school-body-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.course-item-row {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

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

.course-item-row:hover {
  background-color: var(--bg-light);
}

/* --- Admissions Timeline --- */
.timeline-itec {
  position: relative;
  padding-left: 30px;
}

.timeline-itec::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-step {
  position: relative;
  padding-bottom: 40px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-step:hover .timeline-marker {
  background-color: var(--secondary-color);
}

.timeline-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* --- Interactive Forms --- */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

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

.form-control, .form-select {
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* Checkbox checklist */
.doc-check-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  height: 100%;
}

.doc-check-box:hover {
  border-color: var(--secondary-color);
}

/* Multi-step application */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.steps-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-indicator-item {
  width: 32px;
  height: 32px;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition-normal);
}

.step-indicator-item.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
}

.step-indicator-item.completed {
  border-color: var(--secondary-color);
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Dynamic signatures */
.signature-pad-wrapper {
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-light);
  padding: 20px;
  text-align: center;
}

.signature-pad-canvas {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  width: 100%;
  height: 120px;
  border-radius: 4px;
}

/* Submission Success Banner */
.success-overlay-card {
  text-align: center;
  padding: 50px 30px;
}

.success-icon-animated {
  width: 80px;
  height: 80px;
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 25px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

/* --- Scroll Reveal Animations --- */
.reveal-item {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-fade.reveal-item {
  transform: none;
}

.reveal-slide-up.reveal-item {
  transform: translateY(40px);
}

.reveal-slide-left.reveal-item {
  transform: translateX(-50px);
}

.reveal-slide-right.reveal-item {
  transform: translateX(50px);
}

/* Active reveal state */
.reveal-item.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered Delay Utilities */
.stagger-item {
  transition-delay: calc(var(--delay, 0) * 120ms);
}

/* Smooth step-by-step form animation */
.form-step.active {
  display: block;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Dynamic Animated SVG Success Checkmark */
.success-checkmark-svg {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 25px;
}

.success-checkmark-svg .circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: var(--secondary-color);
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-svg .check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 4;
  stroke-linecap: round;
  stroke: var(--secondary-color);
  fill: none;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  to {
    stroke-dashoffset: 0;
  }
}

