/* Brand theme behavior — colors come from config/site.php via theme-vars partial */
:root {
  /* fallbacks only; live values injected from config/site.php */
  --tp-theme-1: #1f7ab5;
  --tp-theme-2: #c85a12;
  --tp-common-red: #c85a12;
  --tp-grey-2: #f0f5f9;
  --tp-grey-3: #f5f9fc;
  --tp-hover: #c85a12;
  --site-primary: #1f7ab5;
  --site-accent: #c85a12;
  --site-nav-bg: #e8f3fa;
  --site-page-bg: #f3f7fb;
}

/* ---------- Global hover: text / links / icons → accent ---------- */
a:hover,
a:focus,
.tp-header-top-info span a:hover,
.tp-main-menu nav ul li:hover > a,
.tp-main-menu nav ul li a:hover,
.tp-menu-dropdown nav ul li .sub-menu li a:hover,
.tp-menu-dropdown nav ul li:hover.has-dropdown a::after,
.tp-breadcrumb-list a:hover,
.tp-footer-widget ul li a:hover,
.tp-footer-menu ul li a:hover,
.tp-footer-phone a:hover,
.tp-footer-link:hover,
.tp-blog-title a:hover,
.tp-course-title a:hover,
.tp-recent-post-title a:hover,
.blog-card-title a:hover,
.blog-read-more:hover,
.blog-recent-list a:hover,
.course-category-list a:hover,
.course-category-list a.active,
.contact-info-card a:hover,
.tp-contact-info-link a:hover,
.back-to-top-btn:hover {
  color: var(--tp-hover) !important;
}

/* Service cards: keep "Read more" white on orange hover (avoid accent-on-accent) */
.tp-service-2-item:hover .tp-service-btn,
.tp-service-2-item:hover .tp-service-btn:hover,
.tp-service-2-item:hover .tp-service-btn:focus {
  color: #fff !important;
}

/* ---------- Global hover: solid backgrounds → accent ---------- */
.tp-btn:hover,
.tp-btn:focus,
.tp-btn:active,
a.tp-btn:hover,
button.tp-btn:hover,
.tp-btn-xl:hover,
.tp-btn-xxl:hover,
.tp-btn-border:hover,
.tp-btn-border:focus,
.contact-submit-btn:hover,
.course-apply-btn:hover,
.blog-back-btn:hover,
.course-cta-btn:hover,
.tp-header-search:hover,
.tp-offcanvas-social a:hover,
.tp-footer-social a:hover,
.tp-contact-info-social a:hover,
.contact-social a:hover,
.tp-blog-meta:hover,
.tagcloud a:hover,
.tp-pagination a:hover,
.wp-pagination a:hover,
.blog-pagination .pagination li > a:hover,
.blog-pagination .pagination .active > span {
  background: var(--tp-hover) !important;
  border-color: var(--tp-hover) !important;
  color: #fff !important;
}

.tp-btn-transparent {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.tp-btn-transparent:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--tp-hover) !important;
}

/* Buttons: vertical center text + arrow icon */
.tp-btn,
a.tp-btn,
button.tp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  line-height: 1 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.tp-btn-xl {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.tp-btn-xxl {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.tp-btn .ml-8,
.tp-btn > span {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Header Student Login — pill button */
.tp-btn-student-login,
a.tp-btn-student-login {
  background: #636021 !important;
  border-color: #636021 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.tp-btn-student-login:hover,
a.tp-btn-student-login:hover,
.tp-btn-student-login:focus,
a.tp-btn-student-login:focus {
  background: #52501b !important;
  border-color: #52501b !important;
  color: #fff !important;
}

.tp-btn svg {
  display: block;
  vertical-align: middle;
}

.tp-header-bottom {
  background-color: var(--site-nav-bg) !important;
}

/* Sticky = menu bar only (logo scrolls away) */
.tp-header-bottom.header-sticky {
  background: var(--site-nav-bg) !important;
  background-color: var(--site-nav-bg) !important;
  box-shadow: 0 2px 8px rgba(19, 19, 22, 0.1);
  z-index: 999;
}

/* ---------- Mobile header ---------- */
@media (max-width: 1199.98px) {
  .tp-header-bottom {
    padding: 10px 0;
  }

  .tp-header-logo-mobile {
    margin-right: 0 !important;
    max-width: 140px;
    line-height: 0;
  }

  .tp-header-logo-mobile img {
    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
  }

  .tp-btn-mobile-login,
  .tp-btn-student-login {
    padding: 7px 16px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }

  .tp-header-toogle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 36, 46, 0.12);
    border-radius: 8px;
    background: #fff;
    color: var(--site-primary);
    font-size: 18px;
  }

  .tp-header-toogle:hover {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: #fff;
  }

  .tp-header-bottom.header-sticky .tp-header-logo-mobile img {
    max-height: 36px;
  }

  .tp-offcanvas {
    z-index: 10000;
  }

  .tp-offcanvas-overlay {
    z-index: 9999;
  }
}

@media (max-width: 575.98px) {
  .tp-header-logo-mobile {
    max-width: 118px;
  }

  .tp-header-logo-mobile img {
    max-width: 118px;
    max-height: 36px;
  }

  .tp-btn-mobile-login,
  .tp-btn-student-login {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .tp-header-toogle {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

.tp-offcanvas-info a {
  color: var(--site-primary);
  font-weight: 600;
}

.tp-offcanvas-info a:hover {
  color: var(--site-accent);
}

/* ---------- Compact hero enquiry form (UI only) ---------- */
.tp-hero-area.tp-hero-2-overly {
  overflow: visible !important;
}

.tp-hero-2-form-compact {
  padding: 28px 24px 32px !important;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
  position: relative;
  z-index: 6;
  overflow: visible;
}

.tp-hero-2-form-compact .tp-hero-2-form-title {
  font-size: 22px;
  line-height: 1.3;
}

.tp-hero-2-form-compact .tp-hero-2-form-input .tp-input {
  height: 42px;
  font-size: 13px;
}

.tp-hero-2-form-compact .tp-hero-2-form-input .tp-textarea {
  height: 88px !important;
  min-height: 72px;
  padding-top: 10px;
  resize: vertical;
}

.tp-hero-2-form-compact .tp-hero-2-form-checkbox .tp-agree {
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.tp-hero-2-form-compact .tp-hero-2-form-checkbox .tp-checkbox {
  width: 16px;
  height: 16px;
}

.tp-hero-2-form-compact .tp-hero-2-form-btn-wrap {
  margin-top: 4px;
}

.tp-hero-2-form-compact .tp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 12px 22px !important;
}

.tp-hero-2-form-alert {
  background: #e9f7ef;
  border: 1px solid #bfe5cd;
  color: #1e6b3d;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

@media only screen and (max-width: 1199.98px) {
  .tp-hero-2-form-compact {
    margin-bottom: 24px !important;
  }
}

/* ---------- Student verification / service forms ---------- */
.tp-student-service-wrap {
  padding: 70px 15px 100px;
  background: #fbf9f5;
}

.tp-student-service-wrap .tp-login-register-wrapper {
  min-height: auto;
}

.tp-student-service-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  padding: 0 36px 36px;
}

.tp-student-service-wrap .tp-login-from-heading {
  padding-top: 40px;
}

.tp-student-service-wrap .tp-login-from-heading p {
  margin-bottom: 24px;
  line-height: 1.65;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.tp-student-service-wrap .tp-login-input {
  margin-bottom: 22px;
}

.tp-student-service-wrap .tp-login-input label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  text-align: left;
}

.tp-student-service-wrap .tp-input {
  width: 100%;
}

.tp-student-service-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 122, 181, 0.1);
  color: var(--site-primary, #1f7ab5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-student-service-wrap .tp-login-from-btn {
  margin-bottom: 0;
  margin-top: 8px;
}

@media (max-width: 574.98px) {
  .tp-student-service-card {
    padding: 0 22px 28px;
  }

  .tp-student-service-wrap .tp-login-from-title {
    font-size: 26px;
  }
}

.tp-footer-area {
  background-color: var(--site-primary) !important;
}

.tp-section-subtitle,
.text-red,
.tp-theme-2 {
  color: var(--tp-theme-2) !important;
}

/* ---------- Notice Board top ticker ---------- */
.tp-notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 6px 0;
}

.tp-notice-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--site-primary, #001131);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
}

.tp-notice-label i {
  color: var(--site-accent, #ffc800);
  font-size: 12px;
}

.tp-notice-label:hover {
  background: var(--site-accent, #ffc800);
  color: var(--site-primary, #001131) !important;
}

.tp-notice-label:hover i {
  color: var(--site-primary, #001131);
}

.tp-notice-track {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.tp-notice-marquee {
  overflow: hidden;
  width: 100%;
}

.tp-notice-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: tpNoticeScroll 35s linear infinite;
}

.tp-notice-marquee:hover .tp-notice-marquee-inner {
  animation-play-state: paused;
}

.tp-notice-marquee.is-static .tp-notice-marquee-inner {
  animation: none;
}

.tp-notice-item {
  display: inline-block;
  padding: 0 4px;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
}

a.tp-notice-item:hover {
  color: var(--site-primary, #001131) !important;
}

.tp-notice-sep {
  display: inline-block;
  padding: 0 14px;
  color: var(--site-accent, #ffc800);
  font-weight: 700;
}

.tp-notice-meta {
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.tp-notice-meta a {
  color: #334155 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.tp-notice-meta a:hover {
  color: var(--site-primary, #001131) !important;
}

@keyframes tpNoticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Notice Board page ---------- */
.tp-notice-page-head p {
  color: #64748b;
  font-size: 15px;
}

.tp-notice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--site-primary, #001131);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tp-notice-card-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 17, 49, 0.08);
  color: var(--site-primary, #001131);
  font-size: 16px;
}

.tp-notice-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-notice-card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.tp-notice-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.tp-notice-card-title a:hover {
  color: var(--site-primary, #001131) !important;
}

.tp-notice-card-meta {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.tp-notice-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.tp-notice-file-btn,
.tp-notice-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1;
}

.tp-notice-file-btn {
  background: var(--site-accent, #ffc800);
  color: var(--site-primary, #001131) !important;
}

.tp-notice-more-btn {
  background: var(--site-primary, #001131);
  color: #fff !important;
}

.tp-notice-empty {
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}

.tp-notice-detail {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.tp-notice-detail-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  color: #0f172a;
}

.tp-notice-iframe {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

@media (max-width: 991.98px) {
  .tp-notice-card {
    flex-wrap: wrap;
  }

  .tp-notice-card-actions {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .tp-notice-label span {
    display: none;
  }

  .tp-notice-label {
    padding: 8px 10px;
  }

  .tp-notice-item {
    font-size: 12px;
  }
}


/* ---------- Student / Certificate verification result ---------- */
.tp-verify-result-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.tp-verify-result-top {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, rgba(0, 17, 49, 0.04), rgba(255, 200, 0, 0.08));
  border-bottom: 1px solid #eef2f7;
}

.tp-verify-result-photo {
  flex: 0 0 110px;
  width: 110px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.tp-verify-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-verify-result-photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 34px;
  background: #f1f5f9;
}

.tp-verify-result-intro {
  min-width: 0;
}

.tp-verify-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tp-verify-result-intro h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.tp-verify-result-intro p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.tp-verify-result-body {
  padding: 24px 28px 8px;
}

.tp-verify-result-body h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.tp-verify-result-empty {
  margin: 0;
  color: #64748b;
}

.tp-verify-result-table-wrap {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.tp-verify-result-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.tp-verify-result-table tr:nth-child(even) {
  background: #f8fafc;
}

.tp-verify-result-table th,
.tp-verify-result-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.tp-verify-result-table tr:last-child th,
.tp-verify-result-table tr:last-child td {
  border-bottom: 0;
}

.tp-verify-result-table th {
  width: 38%;
  color: #64748b;
  font-weight: 600;
  background: transparent;
}

.tp-verify-result-table td {
  color: #0f172a;
  font-weight: 600;
}

.tp-verify-result-actions {
  padding: 8px 28px 28px;
}

@media (max-width: 767.98px) {
  .tp-verify-result-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px 18px;
  }

  .tp-verify-result-body,
  .tp-verify-result-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tp-verify-result-table th,
  .tp-verify-result-table td {
    display: block;
    width: 100%;
    padding: 8px 14px;
  }

  .tp-verify-result-table th {
    padding-top: 12px;
    padding-bottom: 0;
    font-size: 12px;
  }

  .tp-verify-result-table td {
    padding-bottom: 12px;
  }
}
