@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap');

:root {
  --blue-900: #123d78;
  --blue-800: #1d4f93;
  --blue-700: #2f6fbe;
  --blue-100: #ecf5ff;
  --yellow-500: #f3a92f;
  --yellow-300: #ffd57c;
  --line: #deebf7;
  --text: #1e2b3a;
  --muted: #6f7d8f;
  --surface: #ffffff;
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.94rem;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 5% -8%, #d9ebff 0%, transparent 70%),
    radial-gradient(700px 320px at 100% 0%, #fff2ca 0%, transparent 75%),
    #f8fbff;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, th {
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--blue-700);
}

.card,
.sheet,
.cert-card {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 53, 99, 0.07);
}

.card .card-body {
  padding: 0.95rem;
}

.btn {
  border-radius: 9px;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
}

.btn-primary,
.btn-dark {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.btn-accent {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow-500), #e89718);
}

.btn-outline-primary {
  border-color: #8cb1dc;
  color: var(--blue-800);
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #cfe1f4;
  padding: 0.42rem 0.65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #73a5dc;
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 190, 0.12);
}

.table thead th {
  background: #f3f8ff;
  color: #1e3654;
}

.table {
  font-size: 0.88rem;
}

.table th,
.table td {
  vertical-align: middle;
}

.badge.bg-success {
  background: #13835e !important;
}

.badge.bg-secondary {
  background: #718096 !important;
}

.top-strip {
  background: #224f90;
}

.top-links a {
  color: #d8e6ff;
  text-decoration: none;
}

.top-links a:hover {
  color: #fff;
}

.top-enquiry-btn {
  background: #f3a92f;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-weight: 700;
}

.main-nav {
  border-bottom: 1px solid #d7e7f9;
  box-shadow: 0 4px 14px rgba(17, 58, 107, 0.06);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #1f3555;
  font-weight: 700;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow-500), #f0a326);
}

.public-header .nav-link {
  color: #324c72;
  font-weight: 500;
}

.public-header .nav-link.active,
.public-header .nav-link:hover {
  color: var(--blue-800);
}

.public-mobile-menu {
  background: #0f1522;
  color: #e8f0ff;
}

.public-mobile-menu .offcanvas-header {
  border-bottom: 1px solid #2b3550;
}

.mobile-menu-link {
  display: block;
  text-decoration: none;
  color: #d4deef;
  border: 1px solid #2c3550;
  background: #131b2b;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.38rem;
  font-weight: 600;
}

.mobile-menu-link.active,
.mobile-menu-link:hover {
  color: #fff;
  border-color: #4774bb;
  background: linear-gradient(135deg, #2f6fbe, #184b86);
}

.announce-strip {
  background: linear-gradient(90deg, #1d4f93, #123d78);
}

.announce-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
  color: #eaf2ff;
}

.announce-row marquee {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.announce-row marquee a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.announce-row marquee a:hover {
  text-decoration: underline;
}

.announce-cta {
  white-space: nowrap;
}

.admission-open-bar {
  padding-top: 0.65rem;
}

.admission-open-box {
  border: 1px solid #d8e8fa;
  background: linear-gradient(180deg, #fff, #f3f9ff);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admission-open-text {
  color: #21456f;
  font-weight: 600;
}

.gallery-image {
  object-fit: cover;
  height: 170px;
}

.hero-stage {
  background: #fff;
  border-bottom: 1px solid #e5eef9;
  padding-top: 12px;
}

.hero-banner {
  min-height: 520px;
  background-position: center;
  background-size: cover;
  border-radius: 0 0 12px 12px;
}

.hero-card {
  max-width: 520px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 40, 72, 0.22);
  padding: 1.6rem;
  margin-top: 22px;
}

.hero-card h1 {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  color: #102742;
}

.feature-strip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  align-items: start;
}

.feature-strip .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-700), #3f86df);
}

.feature-strip h6 {
  margin-bottom: 0.25rem;
}

.feature-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-meta {
  font-size: 0.84rem;
  color: #8ca0bd;
  margin-bottom: 0.2rem;
}

.section-title {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.masonry-grid img {
  object-fit: cover;
  height: 100%;
  min-height: 170px;
}

.promo-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 16px;
  padding: 2.4rem 1.3rem;
}

.course-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.course-image {
  height: 160px;
  object-fit: cover;
}

.event-item {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
}

.event-date {
  width: 58px;
  border: 1px solid #c8dcf5;
  border-radius: 9px;
  text-align: center;
  padding: 0.45rem 0.1rem;
  flex-shrink: 0;
}

.event-date strong {
  display: block;
  font-size: 1.1rem;
  color: #193f70;
}

.event-date span {
  font-size: 0.77rem;
  color: #7c8ea8;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.video-main,
.video-sm {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.video-main {
  grid-column: 1 / -1;
  min-height: 240px;
}

.video-main::before,
.video-sm::before,
.welcome-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 60, 0.05), rgba(8, 32, 60, 0.65));
}

.video-main span,
.video-sm span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.65rem;
  color: #fff;
  font-size: 0.85rem;
  z-index: 1;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.news-card img {
  height: 145px;
  object-fit: cover;
}

.welcome-list {
  padding-left: 1.1rem;
  color: #3f5878;
}

.welcome-list li {
  margin-bottom: 0.35rem;
}

.welcome-video {
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 1rem;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow-500);
  color: #fff;
  font-size: 1.1rem;
  z-index: 2;
}

.welcome-video span {
  color: #fff;
  margin-left: 0.7rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem;
}

.site-footer {
  background: #1c3f79;
  color: #edf5ff;
}

.site-footer .text-light-emphasis {
  color: #dbe7fb !important;
}

.site-footer .footer-bottom .text-light-emphasis {
  color: #c9daf6 !important;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-link {
  color: #d6e4fb;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.newsletter-form .form-control {
  border-color: #7ca2d3;
  background: #f3f8ff;
}

.list-group-item {
  border-radius: 10px !important;
  border: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.dashboard-page .admin-sidebar {
  min-height: calc(100vh - 58px);
  background: #ffffffd6;
  backdrop-filter: blur(3px);
}

.admin-menu-link {
  display: block;
  text-decoration: none;
  color: #284a74;
  border: 1px solid #d7e7f9;
  background: #fff;
  border-radius: 10px;
  padding: 0.52rem 0.66rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.admin-menu-link:hover {
  background: #f3f8ff;
  color: #1d4f93;
}

.admin-menu-link.active {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  border-color: transparent;
}

.dash-stat {
  border: 1px solid #d5e4f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f6fbff);
  padding: 0.8rem;
}

@media (max-width: 991.98px) {
  .main-nav .container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .brand-wordmark {
    font-size: 1.3rem;
  }

  .brand-wordmark span:last-child {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-stage {
    padding-top: 4px;
  }

  .hero-banner {
    min-height: 340px;
  }

  .hero-card {
    max-width: 100%;
    margin-top: 10px;
    padding: 1rem;
  }

  .hero-card h1 {
    font-size: 1.55rem;
  }

  .hero-card .btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.84rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .feature-strip {
    padding: 0.8rem;
  }

  .feature-strip p {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .event-item {
    padding: 0.72rem;
  }

  .video-main {
    min-height: 200px;
  }

  .welcome-video {
    min-height: 220px;
  }

  .site-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .top-strip {
    display: none;
  }

  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1035;
  }

  .main-nav .navbar-brand {
    font-size: 1.2rem;
  }

  .main-nav .navbar-toggler {
    padding: 0.28rem 0.45rem;
    border-color: #c8dcf5;
  }

  .announce-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.45rem 0;
  }

  .announce-row marquee {
    font-size: 0.82rem;
  }

  .announce-cta {
    width: 100%;
  }

  .admission-open-box {
    flex-direction: column;
    align-items: stretch;
    padding: 0.62rem 0.68rem;
  }

  .admission-open-text {
    font-size: 0.86rem;
  }

  .admission-open-box .btn {
    width: 100%;
  }

  .gallery-image {
    height: 120px;
  }

  .hero-banner {
    min-height: 260px;
    border-radius: 0 0 10px 10px;
  }

  .hero-card {
    margin-top: 8px;
    padding: 0.9rem;
    border-radius: 10px;
  }

  .hero-card h1 {
    font-size: 1.35rem;
    margin-bottom: 0.45rem !important;
  }

  .hero-card p {
    font-size: 0.84rem;
    margin-bottom: 0.8rem !important;
  }

  .hero-card .d-flex {
    gap: 0.45rem !important;
    flex-wrap: wrap;
  }

  .hero-card .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-priority {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  .promo-box {
    padding: 1.1rem 0.9rem;
    border-radius: 12px;
  }

  .promo-box h3 {
    font-size: 1.15rem;
  }

  .course-image {
    height: 140px;
  }

  .news-card img,
  .news-card .p-3 {
    height: auto;
  }

  .news-card .p-3 p {
    font-size: 0.8rem;
  }

  .footer-top .row > [class*="col-"] {
    margin-bottom: 0.35rem;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .footer-top .row > [class*="col-"] h5,
  .footer-top .row > [class*="col-"] h6 {
    font-size: 0.95rem;
  }

  .footer-top .row > [class*="col-"] p,
  .footer-top .row > [class*="col-"] a {
    font-size: 0.78rem;
  }

  .footer-bottom .container {
    justify-content: center !important;
    text-align: center;
  }

  .table {
    font-size: 0.78rem;
  }

  .table th,
  .table td {
    padding: 0.3rem 0.34rem;
  }

  .table .btn,
  .table .btn-sm {
    font-size: 0.69rem;
    padding: 0.13rem 0.34rem;
    border-radius: 8px;
    line-height: 1.25;
  }

  .table .badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.38rem;
  }
}
