/* Shared frontend theme base */
/* Bootstrap 3 sets html{font-size:10px} — restore readable scale for theme rem units */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.ft-body { font-family: var(--ft-font), Poppins, sans-serif; color: var(--ft-text); background: var(--ft-bg); margin: 0; font-size: 16px; line-height: 1.65; overflow-x: hidden; overflow-y: auto; }
html.ft3d-enabled { scroll-behavior: smooth; }
.ft-body p, .ft-body li, .ft-body td, .ft-body th, .ft-body label, .ft-body input, .ft-body select, .ft-body textarea, .ft-body button {
  font-size: 1rem;
}
.ft-body h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.ft-body h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.ft-body h3 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }
.ft-body h4 { font-size: 1.15rem; }
.ft-body h5 { font-size: 1.05rem; }
.ft-container { max-width: 1440px; margin: 0 auto; padding: 0 28px; width: 100%; }
.ft-container-wide { max-width: 1600px; margin: 0 auto; padding: 0 32px; width: 100%; }
.ft-section { padding: 4.5rem 0; }
.ft-section-title { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; margin: 0 0 .75rem; text-align: center; }
.ft-section-sub { text-align: center; color: #64748b; margin: 0 0 2rem; }
.ft-grid { display: grid; gap: 1.5rem; }
.ft-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ft-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ft-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ft-card { background: #fff; border-radius: var(--ft-radius); box-shadow: var(--ft-shadow); padding: 1.5rem; }
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none !important; transition: .2s; border: 2px solid transparent; }
.ft-btn-primary { background: var(--ft-primary); color: #fff !important; }
.ft-btn-secondary { background: var(--ft-secondary); color: #fff !important; }
.ft-btn-accent { background: var(--ft-accent); color: #fff !important; }
.ft-btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.8); }
.ft-btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.ft-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.ft-header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.ft-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none !important; color: var(--ft-text) !important; font-weight: 700; }
.ft-logo img { height: 48px; width: auto; }
.ft-nav { margin-left: auto; }
.ft-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; align-items: center; }
.ft-nav a { text-decoration: none !important; color: var(--ft-text); font-weight: 500; }
.ft-nav li.active > a, .ft-nav a:hover { color: var(--ft-primary); }
.ft-header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ft-nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; }
.ft-hero { background-size: cover; background-position: center; color: #fff; padding: 6rem 0; }
.ft-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 1rem; }
.ft-hero-sub { font-size: 1.25rem; opacity: .95; }
.ft-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ft-hero-slider-wrap img, .ft-hero-slider img { width: 100%; max-height: 520px; object-fit: cover; }
.ft-feature-icon, .ft-icon-wrap { font-size: 2rem; color: var(--ft-primary); margin-bottom: .75rem; }
.ft-campus-item img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--ft-radius); }
.ft-campus-item span { display: block; margin-top: .75rem; font-weight: 600; text-align: center; }
.ft-news-card img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--ft-radius) var(--ft-radius) 0 0; margin: -1.5rem -1.5rem 1rem; width: calc(100% + 3rem); }
.ft-team-photo, .ft-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.ft-stat-item { text-align: center; padding: 1.5rem; background: #fff; border-radius: var(--ft-radius); box-shadow: var(--ft-shadow); }
.ft-stat-num { font-size: 2rem; font-weight: 800; color: var(--ft-primary); }
.ft-cta { color: #fff; text-align: center; }
.ft-footer { background: var(--ft-footer-bg); color: #e2e8f0; padding: 3rem 0 1rem; margin-top: 2rem; overflow: hidden; }
.ft-footer a { color: #fff; }
.ft-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: start; }
.ft-footer-brand img { height: 52px; width: auto; max-width: 140px; object-fit: contain; display: block; margin-bottom: .75rem; }
.ft-footer-brand p { margin: 0; font-weight: 600; line-height: 1.4; }
.ft-footer h4 { color: #fff; margin: 0 0 1rem; font-size: 1rem; }
.ft-footer ul { list-style: none; padding: 0; margin: 0; }
.ft-footer li { margin-bottom: .45rem; }
.ft-contact-list li { display: flex; align-items: flex-start; gap: .5rem; }
.ft-social ul { display: flex; gap: .75rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.ft-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; text-align: center; }
.ft-topbar { background: #1f2937; color: #fff; padding: .45rem 0; font-size: .88rem; }
.ft-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }
.ft-topbar-left { display: flex; align-items: center; gap: .85rem; flex: 1; min-width: 0; }
.ft-topbar-right {
  display: flex; align-items: center; gap: .65rem; flex-shrink: 0; margin-left: auto;
}
.ft-topbar-follow {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  opacity: .85; white-space: nowrap;
}
.ft-topbar-social { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ft-topbar-social a {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff !important; font-size: .75rem; text-decoration: none !important;
  transition: background .2s, transform .2s;
}
.ft-topbar-social a:hover { background: rgba(255,255,255,.32); transform: translateY(-1px); color: #fff !important; }
.ft-topbar-login {
  padding: .35rem .9rem; border-radius: 999px; font-weight: 700; font-size: .78rem;
  text-decoration: none !important; white-space: nowrap; margin-left: .25rem;
}
.ft-theme-edi_global .ft-topbar-login { background: #c9a227; color: #0f2744 !important; }
.ft-theme-gnarte_navy .ft-topbar-login { background: #f97316; color: #fff !important; }
.ft-theme-gnarte_teal .ft-topbar-login { background: rgba(255,255,255,.2); color: #fff !important; }
.ft-theme-edu_os_dark .ft-topbar-login { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff !important; }
.ft-theme-edusphere .ft-topbar-login { background: #0ea5e9; color: #fff !important; }
.ft-topbar-label {
  display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: 6px;
  background: var(--ft-primary); color: #fff; font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; flex-shrink: 0;
}
.ft-topbar-track { flex: 1; min-width: 0; overflow: hidden; }
.ft-topbar-track marquee { display: block; font-size: .95rem; }
.ft-topbar a { color: #fde047; margin-right: 1.5rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.ft-topbar a:hover { color: #fff; }

/* Two-row header shell (all dynamic themes) */
.ft-header-brand-row {
  display: flex; align-items: center; gap: 1rem; min-height: 72px; position: relative; flex-wrap: wrap;
}
.ft-header-nav-row {
  border-top: 1px solid rgba(0,0,0,.06); padding: .35rem 0 .55rem;
}
.ft-header-nav-row nav ul {
  justify-content: center; flex-wrap: wrap; gap: .85rem 1.35rem;
}
.ft-header-nav-row nav a {
  font-size: 1rem !important;
  font-weight: 600;
}
.ft-header-brand-row [class*="-logo"] img,
.ft-header-brand-row [class*="-logo"] img {
  height: 56px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0;
}
[class*="-phone-chip"] {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
[class*="-utility-login"] { padding: .45rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none !important; }
[class*="-social-list"] {
  list-style: none; margin: 0; padding: 0; display: inline-flex; align-items: center; gap: .45rem;
}
[class*="-social-list"] li { margin: 0; padding: 0; }
[class*="-social-list"] a {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); font-size: .78rem; transition: background .2s, transform .2s;
}
[class*="-social-list"] a:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }

.ft-scroll-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--ft-accent); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 999; }
.ft-quick-link { text-align: center; text-decoration: none !important; color: inherit !important; }
.ft-program-card i { font-size: 2rem; color: var(--ft-primary); }
.ft-hero-light { color: var(--ft-text) !important; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%) !important; }
.ft-hero-light h1 { color: var(--ft-secondary); }
.ft-hero-light .ft-hero-sub { color: #475569; opacity: 1; }
.ft-hero-light .ft-btn-outline { color: var(--ft-primary) !important; border-color: var(--ft-primary); }
.ft-icon-card h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.ft-icon-card p { color: #64748b; margin: 0; line-height: 1.6; }
.ft-main { min-height: 40vh; overflow-x: hidden; }
@media (min-width: 1600px) {
  .ft-container { max-width: 1520px; padding: 0 36px; }
  .ft-container-wide { max-width: 1680px; padding: 0 40px; }
}

@media (max-width: 991px) {
  .ft-grid-3, .ft-grid-4, .ft-footer-grid { grid-template-columns: 1fr 1fr; }
  .ft-nav-toggle { display: block; margin-left: auto; }
  .ft-header-nav-row { display: none; border-top: 0; padding: 0; }
  .ft-header-nav-row.ft-nav-open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: var(--ft-shadow); z-index: 1001; border-top: 1px solid rgba(0,0,0,.08); }
  .ft-header-nav-row.ft-nav-open nav ul { flex-direction: column; align-items: flex-start; }
  .ft-header-brand-row [class*="-phone-chip"] { display: none; }
  .ft-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: var(--ft-shadow); }
  .ft-nav.ft-open { display: block; }
  .ft-nav ul { flex-direction: column; align-items: flex-start; }
  .ft-header-inner { flex-wrap: wrap; position: relative; }
}
@media (max-width: 575px) {
  .ft-grid-2, .ft-grid-3, .ft-grid-4, .ft-footer-grid { grid-template-columns: 1fr; }
  .ft-container, .ft-container-wide { padding-left: 16px; padding-right: 16px; }
  .ft-section { padding: 2rem 0; }
  .ft-section-title { font-size: clamp(1.35rem, 5vw, 1.75rem); }
}

/* Dynamic theme fallbacks — layout stays usable even if theme CSS is delayed */
.ft-header-nav-row nav ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.ft-main img, .ft-body main img, .ft-rich img { max-width: 100%; height: auto; }
[class*="-hero-crest"] img { max-height: 80px; width: auto; max-width: 120px; object-fit: contain; }
.es-hero-circle img, .eod-dashboard-main img { max-width: 100%; height: auto; object-fit: cover; }
[class*="-hero-carousel"] { position: relative; min-height: 420px; overflow: hidden; }
[class*="-carousel-track"] { position: relative; height: 420px; min-height: 420px; }
[class*="-carousel-slide"] {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s ease;
}
[class*="-carousel-slide"].is-active { opacity: 1; z-index: 1; }
.gn-navy-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: stretch; }
.es-hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.eod-hero > .ft-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 991px) {
  .gn-navy-hero-grid, .es-hero-split, .eod-hero > .ft-container { grid-template-columns: 1fr; }
  [class*="-hero-carousel"], [class*="-carousel-track"] { min-height: 360px; height: 360px; }
}
