/* ============================================================
   N.C.S. Foundation — custom styles layered on top of Tailwind.
   ============================================================ */


   /* ============================================================
   N.C.S. Foundation — custom styles layered on top of Tailwind.
   ============================================================ */

html { scroll-behavior: smooth; }

::selection { background: #F5B400; color: #07133D; }

/* Scroll-reveal (paired with IntersectionObserver in main.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* Glass information boxes */
.glass-info {
    padding: 14px 18px;
    min-width: 190px;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 16px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Floating animation */
.animate-glass-float-1 {
    animation: glassFloat1 4s ease-in-out infinite;
}

.animate-glass-float-2 {
    animation: glassFloat2 5s ease-in-out infinite;
}

@keyframes glassFloat1 {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glassFloat2 {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(14px);
    }
}

/* Hero decorative particles */
.particle {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(245,180,0,.9) 0%, rgba(245,180,0,0) 70%);
  pointer-events: none;
}

/* Cadet formation graphic used in hero (original illustration, not a photo) */
.formation-row { display: flex; }
.cadet-icon {
  width: 42px; height: 42px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg,#0d1f5c,#07133D);
  border: 2px solid rgba(245,180,0,.5);
  color: #F5B400;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* Marquee for admission banner */
.animate-marquee { animation: marquee 18s linear infinite; }

/* Home page sponsor logos — small, continuous horizontal scroll */
.sponsor-marquee { overflow: hidden; }
.sponsor-track {
  display: flex;
  width: max-content;
  animation: sponsor-scroll 40s linear infinite;
}
.sponsor-set {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}
.sponsor-logo {
  height: 4.25rem;
  min-width: 8.5rem;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F8FC;
  border: 1px solid rgba(7, 19, 61, 0.08);
  border-radius: 0.9rem;
  flex-shrink: 0;
}

/* Card hover lift (used across course/gallery/event cards) */
.lift-hover { transition: transform .35s ease, box-shadow .35s ease; }
.lift-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -12px rgba(7,19,61,.35); }

/* Swiper pagination bullet theming */
.swiper-pagination-bullet { background: #7488d0 !important; }
.swiper-pagination-bullet-active { background: #D71920 !important; opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: #07133D !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; }

/* Number counter */
.count-up { font-variant-numeric: tabular-nums; }

/* Reduced motion respect */
@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .sponsor-track { animation-duration: 40s !important; animation-iteration-count: infinite !important; }
}

/* Sidebar menu scrolls when the window is short, without a second scrollbar */
.sidebar-menu {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Gallery filters and lightbox slide */
.gallery-filter.is-active {
  background: #07133D;
  color: #fff;
  border-color: #07133D;
}
.gallery-filter.is-active span { color: rgba(255, 255, 255, .7); }
.gallery-card {
  transition: opacity .32s ease, transform .32s ease;
}
.gallery-card-out,
.gallery-card-in {
  opacity: 0;
  transform: scale(.94);
}
.lb-image {
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .45s ease;
}
.lb-leave-left { transform: translateX(-100%); opacity: 0; }
.lb-leave-right { transform: translateX(100%); opacity: 0; }
.lb-enter-right { transform: translateX(100%); opacity: 0; }
.lb-enter-left { transform: translateX(-100%); opacity: 0; }
.lb-no-anim { transition: none !important; }
#galleryLightbox { opacity: 0; transition: opacity .25s ease; }
#galleryLightbox.is-open { opacity: 1; }

#achievementViewer { opacity: 0; transition: opacity .28s ease; }
#achievementViewer.is-open { opacity: 1; }
.ach-dialog { transform: scale(.82); transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
#achievementViewer.is-open .ach-dialog { transform: scale(1); }
.ach-slide { transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .45s ease; }

/* Student identity card */
.id-print-root { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.id-card {
  position: relative;
  width: min(100%, 920px);
  background: #0d4ec4;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(7, 19, 61, .45);
  display: flex;
  flex-direction: column;
}
.id-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 70px;
  background: linear-gradient(135deg, transparent 46%, #f5c400 46% 68%, #0d4ec4 68% 78%, #f5c400 78%);
}
.id-pad { position: relative; padding: 1.1rem 1.35rem 0.85rem; flex: 1; }
.id-brand { display: flex; align-items: center; gap: 0.85rem; padding-right: 4.5rem; }
.id-logo { width: 68px; height: 68px; object-fit: contain; border-radius: 50%; background: #fff; flex-shrink: 0; }
.id-brand h2 { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(1.05rem, 2.2vw, 1.65rem); letter-spacing: .02em; line-height: 1.1; margin: 0; }
.id-brand p { margin: 0.15rem 0 0; font-size: clamp(.72rem, 1.4vw, .95rem); font-weight: 700; }
.id-motto { font-weight: 600 !important; }
.id-main { display: grid; grid-template-columns: 1fr 168px; gap: 1rem; margin-top: .85rem; align-items: start; }
.id-badge {
  display: inline-block;
  background: #e0b000;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: clamp(.85rem, 1.6vw, 1.15rem);
  padding: .35rem 1.1rem;
  margin-bottom: .85rem;
}
.id-fields { display: grid; gap: .38rem; }
.id-fields div { display: grid; grid-template-columns: 9.6rem .6rem 1fr; gap: .35rem; align-items: baseline; font-size: clamp(.78rem, 1.35vw, .98rem); font-weight: 700; letter-spacing: .02em; }
.id-fields strong { font-weight: 700; }
.id-photo-col { display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.id-photo {
  width: 148px;
  height: 176px;
  border: 2px solid rgba(255, 255, 255, .9);
  position: relative;
  overflow: hidden;
  background: #0d4ec4;
}
.id-photo img { width: 100%; height: 100%; object-fit: cover; }
.id-photo span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-48deg);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .95rem;
  white-space: nowrap;
}
.id-sign { font-size: .95rem; font-weight: 600; }
.id-stripes { display: flex; flex-direction: column; margin-top: auto; }
.id-stripes span:nth-child(1) { height: 6px; background: #f5c400; }
.id-stripes span:nth-child(2) { height: 7px; background: #e10600; }
.id-stripes span:nth-child(3) { height: 8px; background: #07133d; }
.id-back-top {
  height: 52px;
  background: linear-gradient(112deg, #f5c400 0 16%, #e10600 16% 58%, #0d4ec4 58% 74%, #f5c400 74% 100%);
}
.id-back-pad { padding-top: 1rem; }
.id-terms-title { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(1.35rem, 3vw, 2.15rem); letter-spacing: .04em; margin: 0 0 .7rem; }
.id-terms { margin: 0; padding-left: 1.15rem; display: grid; gap: .55rem; font-size: clamp(.72rem, 1.25vw, .92rem); line-height: 1.35; }
.id-terms li::marker { font-size: 1.1em; }
.id-director { margin-top: .9rem; margin-left: auto; width: max-content; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; line-height: 1.25; }
.id-director-line { display: block; width: 7.5rem; height: 2px; background: #fff; margin: 0 auto .3rem; }
.id-director strong { display: block; }

@media (max-width: 700px) {
  .id-main { grid-template-columns: 1fr; }
  .id-photo-col { align-items: flex-start; }
  .id-fields div { grid-template-columns: 8.2rem .5rem 1fr; }
  .id-brand { padding-right: 0; }
}

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  #flashContainer, #dashSidebar, #dashMobileOverlay, #dashMobileSidebar, header.sticky, .no-print { display: none !important; }
  body { background: #fff !important; }
  body > .flex { display: block !important; }
  main { padding: 0 !important; }
  .id-card { width: 190mm; box-shadow: none; break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .id-print-root { gap: 6mm; }
}

.skeleton { background: linear-gradient(90deg,#eceff5 25%,#f6f8fb 37%,#eceff5 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

