/* Curtin SG PTE LTD - Premium Educational Theme */

:root {
  --primary: #0d2847;
  --primary-dark: #071829;
  --primary-light: #1e5a96;
  --accent: #c9a227;
  --accent-hover: #b8921f;
  --text-dark: #0f172a;
  --text-muted: #52647c;
  --white: #ffffff;
  --light-bg: #f4f7fb;
  --border: #e2e8f0;
  --shadow: 0 10px 40px rgba(13, 40, 71, 0.12);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
  --font: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
  color: var(--primary-light);
}

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

/* Header */
.via-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-item {
  padding: 0 3px;
}

.via-header.scrolled {
  box-shadow: 0 4px 30px rgba(13, 40, 71, 0.12);
}

.header-top-strip {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  padding: 6px 0;
}

.header-top-strip a { color: rgba(255, 255, 255, 0.9); }
.header-top-strip a:hover { color: var(--accent); }
.header-top-strip i { color: var(--accent); margin-right: 5px; font-size: 0.72rem; }

.header-mobile-strip {
  display: none;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  padding: 8px 12px;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.header-mobile-strip a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.header-mobile-strip a:hover { color: var(--accent); }
.header-mobile-strip i { color: var(--accent); margin-right: 6px; }

.header-main {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 8px 0;
}

.header-logo img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.header-nav { flex: 1; display: flex; justify-content: flex-end; }
.header-nav .navbar-nav { align-items: center; }

.header-nav .nav-link {
  color: var(--primary) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.header-nav .nav-link::after { display: none !important; }
.header-nav .nav-link .fa-chevron-down { font-size: 0.55rem; opacity: 0.7; }

.header-nav .nav-link:hover,
.header-nav .nav-link.show,
.header-nav .nav-item:hover > .nav-link,
.header-nav .nav-item.active > .nav-link {
  background: var(--primary);
  color: var(--white) !important;
}

.header-toggler {
  border: 2px solid var(--primary);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--primary);
  background: transparent;
}

.header-toggler .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='%230d2847' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.4em;
  height: 1.4em;
}

.header-nav .dropdown-menu {
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 280px;
  margin-top: 0;
}

@media (min-width: 992px) {
  .header-nav .dropdown-hover {
    position: relative;
  }

  .header-nav .dropdown-hover > .dropdown-menu {
    display: block;
    top: 100%;
    left: auto;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }

  .header-nav .dropdown-hover:hover > .dropdown-menu,
  .header-nav .dropdown-hover:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-nav .dropdown-hover:hover > .nav-link .fa-chevron-down,
  .header-nav .dropdown-hover:focus-within > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
  }

  .header-nav .dropdown-hover > .nav-link .fa-chevron-down {
    transition: transform 0.25s ease;
  }

  .header-nav .dropdown-hover > .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
  }
}

.header-nav .dropdown-item {
  padding: 11px 22px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
  white-space: normal;
}

.header-nav .dropdown-item:hover {
  background: var(--light-bg);
  color: var(--primary);
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: right 0.35s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-sidebar.open { right: 0; }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.open { opacity: 1; visibility: visible; }

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--primary);
  color: var(--white);
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; }

.sidebar-link {
  display: block;
  padding: 14px 20px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-link:hover { background: var(--light-bg); color: var(--primary); }

.sidebar-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}

.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background: var(--light-bg);
}

.sidebar-submenu.open { display: block; }

.sidebar-submenu .sidebar-link {
  padding-left: 36px;
  font-size: 0.85rem;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 40, 71, 0.92) 0%, rgba(30, 90, 150, 0.85) 100%),
    url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}

.hero-content { color: var(--white); max-width: 680px; }

.badge-hero {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.btn-primary-custom {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--accent);
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, rgba(13, 40, 71, 0.94) 0%, rgba(30, 90, 150, 0.88) 100%),
    url('../assets/images/banner-bg.jpg') center/cover no-repeat;
  padding: 80px 0 70px;
  color: var(--white);
  position: relative;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-banner p { opacity: 0.9; font-size: 1.05rem; }

.breadcrumb-custom {
  margin-bottom: 20px;
  --bs-breadcrumb-divider: '›';
}

.breadcrumb-custom .breadcrumb-item a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb-custom .breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--accent); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5); }

/* Sections */
.section-padding { padding: 80px 0; }
.bg-light-custom { background: var(--light-bg); }

.section-title { text-align: center; margin-bottom: 50px; }

.section-title .subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Cards */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-card .icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card .icon-box i { color: var(--accent); font-size: 1.5rem; }

.feature-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
  display: block;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.course-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e8eef5;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.course-body { padding: 24px; }

.course-body h5 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.course-meta i { color: var(--accent); margin-right: 4px; }

.view-details {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.88rem;
}

.view-details:hover { color: var(--accent); }

.view-details i { margin-left: 6px; transition: var(--transition); }
.view-details:hover i { transform: translateX(4px); }

/* About */
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-img-wrap img { width: 100%; display: block; }

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
}

.about-badge span { display: block; font-size: 2rem; line-height: 1; }

.about-prose h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.about-prose h3:first-child { margin-top: 0; }

.about-prose p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.8;
}

.about-prose p:last-child { margin-bottom: 0; }

.course-detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

.mission-vision-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.mission-vision-card h4 { color: var(--primary); margin-bottom: 12px; }

.check-list { list-style: none; padding: 0; margin: 0; }

.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Stats */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.stat-item { text-align: center; }

.stat-item .number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item p { opacity: 0.9; margin: 0; font-size: 0.95rem; }

/* Contact */
.contact-info-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  height: 100%;
}

.contact-info-card h4 { color: var(--accent); margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item i {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item a { color: var(--white); }
.contact-item a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

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

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-section p { opacity: 0.9; max-width: 600px; margin: 0 auto 28px; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.footer-brand img { height: 48px; margin-bottom: 16px; }

.footer-brand p { font-size: 0.9rem; line-height: 1.8; }

.footer-heading {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--accent); }

.social-links { display: flex; gap: 12px; margin-top: 16px; }

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-links a:hover { background: var(--accent); color: var(--primary-dark); }

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-4px); }

.content-section { padding: 80px 0; }

/* ========== Responsive / Mobile ========== */
@media (max-width: 991px) {
  .section-padding,
  .content-section,
  .cta-section,
  .stats-section {
    padding: 50px 0;
  }

  .page-banner {
    padding: 50px 0 40px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .feature-card,
  .contact-form-wrap,
  .contact-info-card,
  .mission-vision-card {
    padding: 24px 20px;
  }
}

@media (max-width: 767px) {
  .header-mobile-strip {
    display: flex;
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .header-logo {
    flex: 1;
    min-width: 0;
  }

  .header-logo img {
    height: 40px;
    max-width: min(200px, 58vw);
  }

  .header-toggler {
    flex-shrink: 0;
    padding: 8px 10px;
  }

  .hero-section {
    min-height: auto;
    padding: 88px 0 56px;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .badge-hero {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-content .d-flex.gap-3 {
    flex-direction: column;
    gap: 12px !important;
  }

  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom,
  .cta-section .btn-primary-custom,
  .cta-section .btn-outline-custom,
  .gallery-cta .btn-primary-custom,
  .gallery-cta .btn-outline-custom {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }

  .page-banner h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .page-banner p {
    font-size: 0.92rem;
  }

  .breadcrumb-custom {
    font-size: 0.82rem;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .section-title h2,
  .cta-section h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }

  .section-title .subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .stat-item .number {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.85rem;
  }

  .about-badge {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .about-badge span {
    font-size: 1.5rem;
  }

  .course-body {
    padding: 18px;
  }

  .course-body h5 {
    font-size: 0.95rem;
  }

  .course-img {
    height: 180px;
  }

  .site-footer {
    padding-top: 40px;
    text-align: center;
  }

  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-heading {
    margin-top: 8px;
    margin-bottom: 14px;
  }

  .footer-links li {
    word-break: break-word;
  }

  .footer-bottom {
    margin-top: 24px;
    padding: 16px 0;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .contact-item {
    text-align: left;
  }

  .contact-item i {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-padding,
  .content-section,
  .cta-section {
    padding: 40px 0;
  }

  .page-banner {
    padding: 40px 0 32px;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .mobile-sidebar {
    width: min(100%, 320px);
    right: -100%;
  }

  .sidebar-link,
  .sidebar-toggle {
    padding: 16px 18px;
    font-size: 0.88rem;
  }

  .sidebar-submenu .sidebar-link {
    padding: 14px 18px 14px 28px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
  }

  .sidebar-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .sidebar-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
  }

  .achievement-card {
    padding: 28px 20px;
  }

  .achievement-stat {
    font-size: 1.65rem;
  }
}

@media (max-width: 399px) {
  .header-mobile-strip {
    font-size: 0.72rem;
    padding: 8px 10px;
  }

  .header-mobile-strip .mx-2 {
    display: none;
  }

  .header-logo img {
    height: 36px;
    max-width: 170px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}
