/* ============================================================
   YENTHIRAN STEM LABS – Space Theme (ISRO Space Tutor)
   ============================================================ */

:root {
  --space-deep: #060b1a;
  --space-navy: #0b1426;
  --space-mid: #141b3d;
  --isro-orange: #ff6b00;
  --isro-orange-light: #ff8c33;
  --isro-blue: #003da5;
  --isro-saffron: #f77f00;
  --accent-cyan: #00d4ff;
  --accent-gold: #ffd700;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --bs-font-sans-serif: var(--font-body);
  --primary: #003da5;
  --primary-dark: #002d7a;
  --gradient-space: linear-gradient(135deg, #060b1a 0%, #0b1426 40%, #141b3d 70%, #1a237e 100%);
  --gradient-hero: linear-gradient(160deg, #060b1a 0%, #0d1b3e 50%, #1a237e 100%);
  --gradient-cta: linear-gradient(135deg, #003da5 0%, #1a237e 50%, #0b1426 100%);
  --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.15);
  --shadow-card: 0 20px 60px rgba(6, 11, 26, 0.12);
  --announcement-height: 42px;
  --navbar-height: 52px;
  --site-header-offset: 94px;
}

section[id] {
  scroll-margin-top: var(--site-header-offset);
}

html {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
}

body {
  font-family: var(--font-body);
  background: #f8fafc;
  padding-top: var(--announcement-height);
}

/* ---- Announcement bar ---- */
.isro-announcement {
  background: linear-gradient(90deg, var(--isro-blue), #1a237e, var(--isro-orange));
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.isro-announcement strong {
  color: var(--accent-gold);
  font-weight: 700;
}

.portal-announcement {
  padding: 10px 20px;
}

.portal-announcement--with-signout {
  padding-right: 72px;
}

.portal-announcement__inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.portal-announcement__message {
  margin: 0;
  text-align: center;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.portal-announcement__actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.portal-user-dropdown {
  position: relative;
}

.portal-user-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-user-toggle::after {
  display: none !important;
}

.portal-user-toggle:hover,
.portal-user-toggle.show,
.portal-user-toggle:focus,
.portal-user-toggle:active {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.portal-user-menu {
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  margin-top: 10px !important;
  z-index: 1200;
}

.portal-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-user-menu .dropdown-item:hover,
.portal-user-menu .dropdown-item:focus {
  background: #eff6ff;
  color: var(--isro-blue);
}

.portal-user-menu__signout {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.portal-user-menu__signout:hover,
.portal-user-menu__signout:focus {
  background: #fef2f2;
  color: #b91c1c;
}

.portal-announcement__signout {
  position: static;
  transform: none;
  margin: 0;
}

.portal-announcement__signout-btn--link {
  text-decoration: none;
}

.portal-announcement__signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.portal-announcement__signout-btn:hover {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(255, 255, 255, 0.55);
}

.isro-announcement .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 3px 12px;
  margin-right: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Navbar space theme ---- */
.navbar-area.navbar-nine {
  background: #ffffff !important;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
}

.navbar-area.navbar-nine .brand-text {
  color: #000000 !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll {
  color: #000000 !important;
  font-weight: 500 !important;
}

.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll:hover:not(.active) {
  color: var(--isro-blue) !important;
}

.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll.active {
  color: var(--isro-blue) !important;
}

.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll.active::after,
.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll::after {
  background: var(--isro-blue) !important;
}

.navbar-area.navbar-nine .toggler-icon {
  background-color: #0b1426 !important;
}

.navbar-area.navbar-nine .menu-bar {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0b1426 !important;
}

.navbar-area.navbar-nine .menu-bar:hover {
  background: var(--isro-orange) !important;
  border-color: var(--isro-orange) !important;
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .navbar-area.navbar-nine #navbarNine {
    background: #ffffff !important;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav .nav-item .page-scroll {
    color: #000000 !important;
  }
}

/* ---- Hero ---- */
.header-eight.space-hero {
  background: var(--gradient-hero);
  background-image: url("../images/space/space-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.space-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 11, 26, 0.92) 0%, rgba(11, 20, 38, 0.85) 50%, rgba(26, 35, 126, 0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

.space-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255, 215, 0, 0.4), transparent),
    radial-gradient(1px 1px at 250px 90px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 300px 60px, rgba(0, 212, 255, 0.3), transparent);
  background-size: 350px 200px;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.space-hero > .container {
  position: relative;
  z-index: 2;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.space-hero .hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 61, 165, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.space-hero .hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

.space-hero .header-content {
  position: relative;
  z-index: 2;
}

.space-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 20px 8px 10px;
  margin-bottom: 24px;
}

.space-hero .hero-badge img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.space-hero .hero-badge span {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.space-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff !important;
  margin-bottom: 20px;
}

.space-hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.space-hero .header-content p {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
  opacity: 1 !important;
}

.space-hero .button {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.space-hero .btn-hero-primary {
  background: linear-gradient(135deg, var(--isro-orange), var(--isro-saffron));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.space-hero .btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.45);
  color: #fff;
}

.space-hero .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.space-hero .btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.space-hero .hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 28px 24px;
}

.space-hero .hero-orbit {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px dashed rgba(0, 212, 255, 0.25);
  border-radius: 50%;
  animation: spinOrbit 40s linear infinite;
  pointer-events: none;
}

.space-hero .hero-orbit-outer {
  width: 460px;
  height: 460px;
  border-color: rgba(255, 107, 0, 0.18);
  animation-direction: reverse;
  animation-duration: 55s;
}

.hero-image-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 20, 38, 0.6);
}

.hero-image-main {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  animation: floatRocket 5s ease-in-out infinite;
}

.hero-image-main .hero-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.hero-image-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(255, 107, 0, 0.35));
  pointer-events: none;
}

.hero-image-float {
  position: absolute;
  top: 8px;
  right: -8px;
  width: 145px;
  height: 110px;
  z-index: 4;
  animation: floatSat 6s ease-in-out infinite;
}

.hero-image-float .hero-photo-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-rocket {
  position: absolute;
  bottom: 24px;
  left: -18px;
  width: 140px;
  height: 120px;
  border-radius: 18px;
  z-index: 4;
  background: linear-gradient(145deg, #0b1426 0%, #1a237e 55%, #0d1b3e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: floatSat 7s ease-in-out infinite reverse;
}

.hero-image-rocket .hero-rocket-cutout {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 212, 255, 0.25));
}

.hero-image-accent {
  position: absolute;
  bottom: 58px;
  right: -22px;
  width: 130px;
  height: 100px;
  z-index: 5;
  animation: floatSat 5.5s ease-in-out infinite;
}

.hero-image-accent .hero-photo-accent {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-launch {
  position: absolute;
  top: 42px;
  left: -24px;
  width: 118px;
  height: 88px;
  z-index: 2;
  animation: floatSat 6.5s ease-in-out infinite reverse;
}

.hero-image-launch .hero-photo-launch {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-five .about-photo {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 20px 50px rgba(0, 61, 165, 0.15);
}

.about-image-five .shape {
  display: none;
}

@keyframes floatRocket {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes floatSat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(8px); }
}

@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.space-hero .hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.space-hero .hero-stat .number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.space-hero .hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- ISRO Certification Section ---- */
.isro-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
  padding: 88px 0;
  position: relative;
}

.isro-section .container {
  position: relative;
  z-index: 1;
}

.isro-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.isro-panel::before,
.isro-panel::after {
  display: none;
}

.isro-panel__top {
  margin-bottom: 40px;
}

.isro-cert-ribbon {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 61, 165, 0.1);
  box-shadow: 0 6px 20px rgba(11, 20, 38, 0.06);
}

.isro-cert-ribbon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--isro-orange), var(--isro-saffron));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.28);
}

.isro-cert-ribbon__label {
  color: var(--space-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.isro-cert-ribbon__divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 61, 165, 0.14);
}

.isro-cert-ribbon__tag {
  color: var(--isro-orange);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.isro-section h2 {
  font-family: var(--font-display);
  color: var(--space-navy);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 20ch;
}

.isro-title-accent {
  display: block;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--isro-blue), var(--isro-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.isro-panel__lead {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0;
}

.isro-highlight-stack {
  display: grid;
  gap: 12px;
}

.isro-highlight-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 61, 165, 0.1);
  box-shadow: 0 8px 22px rgba(11, 20, 38, 0.05);
}

.isro-highlight-item__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--isro-orange);
  letter-spacing: 0.04em;
}

.isro-highlight-item__label {
  color: #5a6578;
  font-size: 0.82rem;
  text-align: right;
}

.isro-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.isro-feature-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 61, 165, 0.1);
  border-radius: 18px;
  padding: 22px 20px 24px;
  box-shadow: 0 10px 28px rgba(11, 20, 38, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.isro-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--isro-orange), var(--isro-blue));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.isro-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 61, 165, 0.18);
  box-shadow: 0 16px 36px rgba(11, 20, 38, 0.1);
}

.isro-feature-card:hover::before {
  opacity: 1;
}

.isro-feature-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.isro-feature-card__index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(11, 20, 38, 0.22);
}

.isro-feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.isro-feature-card .icon.orange { background: rgba(255, 107, 0, 0.12); color: var(--isro-orange); }
.isro-feature-card .icon.cyan { background: rgba(0, 61, 165, 0.08); color: var(--isro-blue); }
.isro-feature-card .icon.gold { background: rgba(255, 215, 0, 0.16); color: #c9a000; }
.isro-feature-card .icon.blue { background: rgba(0, 61, 165, 0.1); color: var(--isro-blue); }

.satellite-icon-img {
  display: block;
  object-fit: contain;
}

.isro-feature-card .icon .satellite-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.services-area .service-icon .satellite-icon-img {
  width: 28px;
  height: 28px;
}

.isro-feature-card h4 {
  color: var(--space-navy);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.isro-feature-card p {
  color: #5a6578;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- Section titles ---- */
.section-title-five h6 {
  background: linear-gradient(135deg, var(--isro-blue), var(--isro-orange)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  border: 2px solid var(--isro-orange) !important;
  border-radius: 50px !important;
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  -webkit-text-fill-color: var(--isro-orange) !important;
  color: var(--isro-orange) !important;
}

.section-title-five h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---- About section ---- */
.about-five {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
}

.about-five-content .small-title {
  color: var(--isro-orange) !important;
  font-family: var(--font-display);
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
}

.about-five-content .small-title::before {
  background: var(--isro-orange) !important;
}

.about-five-content .about-five-tab nav button.active {
  background: linear-gradient(135deg, var(--isro-blue), #1a237e) !important;
}

/* ---- Service cards ---- */
.services-eight {
  background: #fff;
}

.services-area .single-services.feature-card {
  border: 1px solid rgba(0, 61, 165, 0.08) !important;
  border-radius: 20px !important;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s !important;
}

.services-area .single-services.feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 60px rgba(0, 61, 165, 0.12) !important;
  border-color: rgba(0, 212, 255, 0.2) !important;
}

.services-area .single-services .service-icon.icon-space {
  background: linear-gradient(135deg, rgba(0, 61, 165, 0.1), rgba(255, 107, 0, 0.1)) !important;
}
.services-area .single-services .service-icon.icon-space i {
  color: var(--isro-orange) !important;
}

/* ---- CTA ---- */
.call-action {
  background: var(--gradient-cta) !important;
  position: relative;
  overflow: hidden;
}

.call-action .container {
  position: relative;
  z-index: 1;
}

.call-action::after {
  display: none;
}

.call-action__rocket {
  position: absolute;
  right: clamp(8px, 3vw, 40px);
  bottom: 0;
  height: min(94%, 460px);
  width: auto;
  max-width: min(36vw, 320px);
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
}

.call-action .inner-content h2 {
  font-family: var(--font-display);
}

@media (max-width: 991px) {
  .call-action__rocket {
    max-width: 220px;
    height: min(80%, 360px);
    opacity: 0.2;
  }
}

@media (max-width: 767px) {
  .call-action__rocket {
    right: -24px;
    max-width: 160px;
    height: 62%;
    opacity: 0.14;
  }
}

/* ---- Testimonials ---- */
.testimonal-area {
  background: linear-gradient(180deg, #f8fafc, #eef2ff) !important;
}

.testimonial-card {
  border-radius: 20px !important;
  border: 1px solid rgba(0, 61, 165, 0.06) !important;
}

.testimonials-slider .swiper-pagination-bullet-active {
  background: var(--isro-orange) !important;
}

/* ---- Partners / brand ---- */
.brand-area {
  background: linear-gradient(180deg, #eef2ff, #f8fafc) !important;
}

/* ---- Contact ---- */
.contact-section .contact-item-wrapper .contact-item .contact-icon {
  background: linear-gradient(135deg, var(--isro-blue), #1a237e) !important;
}

.contact-form-wrapper .contact-form input:focus,
.contact-form-wrapper .contact-form textarea:focus {
  border-color: var(--isro-orange) !important;
}

.contact-form-wrapper .contact-form .primary-btn,
.primary-btn {
  background: linear-gradient(135deg, var(--isro-orange), var(--isro-saffron)) !important;
  border: none !important;
  border-radius: 50px !important;
}

.contact-form-wrapper .contact-form .primary-btn:hover,
.primary-btn:hover {
  background: linear-gradient(135deg, var(--isro-saffron), #e85d04) !important;
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.3) !important;
}

/* ---- Footer ---- */
.footer-eleven.footer-with-bg {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: #3d6d8f !important;
  min-height: 420px;
}

.footer-eleven .footer-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/space/footer.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.footer-eleven .footer-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 26, 0.55) 0%,
    rgba(6, 11, 26, 0.28) 40%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
}

.footer-eleven.footer-with-bg .footer-top {
  position: relative;
  z-index: 2;
  padding: 72px 0 140px !important;
}

.footer-eleven:not(.footer-with-bg) {
  background: var(--space-navy) !important;
  padding-top: 80px !important;
}

.footer-eleven.footer-with-bg .footer-widget h5,
.footer-eleven.footer-with-bg .f-about p,
.footer-eleven.footer-with-bg .f-link li a,
.footer-eleven.footer-with-bg .newsletter p {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.footer-eleven .footer-widget h5,
.footer-eleven .f-about p,
.footer-eleven .f-link li a,
.footer-eleven .newsletter p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-eleven.footer-with-bg .footer-widget h5 {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.footer-eleven .footer-widget h5 {
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.footer-eleven.footer-with-bg .f-link li a:hover {
  color: var(--accent-cyan) !important;
}

.footer-eleven .f-link li a:hover {
  color: var(--accent-cyan) !important;
}

.footer-eleven.footer-with-bg .footer-logo-text {
  color: #ffffff !important;
  font-family: var(--font-display);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.footer-logo-text {
  color: #fff !important;
  font-family: var(--font-display);
}

.footer-eleven .newsletter-form .sub-btn {
  background: var(--isro-orange) !important;
}

@media (max-width: 767px) {
  .footer-eleven.footer-with-bg {
    min-height: 520px;
  }

  .footer-eleven.footer-with-bg .footer-top {
    padding: 48px 0 120px !important;
  }
}

.bottom-bar {
  background: var(--space-deep) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bottom-bar p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ---- Scroll top ---- */
.scroll-top {
  background: linear-gradient(135deg, var(--isro-orange), var(--isro-saffron)) !important;
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
}

.scroll-top:hover {
  background: var(--isro-blue) !important;
}

/* ---- News cards ---- */
.latest-news-area .single-news {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 61, 165, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.latest-news-area .single-news:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.latest-news-area .single-news .image .meta-details {
  background: var(--isro-orange) !important;
}

/* ---- Space programs highlight row ---- */
.space-programs-strip {
  background: linear-gradient(90deg, var(--isro-blue), #1a237e);
  padding: 48px 0;
}

.space-programs-strip .strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 16px;
}

.space-programs-strip .strip-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  margin-bottom: 12px;
}

.space-programs-strip .strip-item i {
  font-size: 2rem;
  color: var(--accent-gold);
  line-height: 1;
}

.space-programs-strip .strip-item .satellite-icon-img {
  width: auto;
  height: 2.75rem;
  max-width: 3.25rem;
  margin: 0;
  object-fit: contain;
}

.space-programs-strip .strip-item h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.space-programs-strip .strip-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0;
}

/* ---- Gallery placeholders ---- */
.gallery-card-space {
  background: linear-gradient(135deg, #0b1426, #1a237e) !important;
  height: 250px !important;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #fff;
  gap: 16px;
}

.gallery-placeholder i {
  font-size: 3rem;
  color: var(--accent-cyan);
  opacity: 0.9;
}

.gallery-card a.glightbox {
  display: block;
  line-height: 0;
}

.gallery-card--empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.gallery-placeholder span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991px) {
  .space-hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .space-hero .hero-visual {
    margin-top: 48px;
    min-height: 300px;
  }

  .space-hero .hero-stats {
    gap: 24px;
  }

  .isro-section {
    padding: 70px 0;
  }

  .isro-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .isro-highlight-stack {
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .space-hero h1 {
    font-size: 1.75rem;
  }

  .space-hero .hero-visual {
    margin-top: 48px;
    min-height: 380px;
    padding: 20px 12px;
  }

  .hero-image-main {
    max-width: 300px;
  }

  .hero-image-main .hero-photo {
    height: 200px;
  }

  .hero-image-float {
    width: 95px;
    height: 72px;
    right: 0;
  }

  .hero-image-rocket {
    width: 100px;
    height: 88px;
    left: 0;
    padding: 8px;
  }

  .hero-image-accent {
    width: 95px;
    height: 72px;
    right: 0;
    bottom: 40px;
  }

  .hero-image-launch {
    width: 88px;
    height: 66px;
    left: 0;
    top: 28px;
  }

  .space-hero .hero-orbit {
    width: 320px;
    height: 320px;
  }

  .space-hero .hero-orbit-outer {
    width: 360px;
    height: 360px;
  }
}

/* ============================================================
   NAVBAR FIX – white box / invisible menu (loads last)
   ============================================================ */

.navbar-area.navbar-nine {
  position: sticky !important;
  top: var(--announcement-height) !important;
  z-index: 1050 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
}

.navbar-area.navbar-nine .navbar {
  padding: 10px 0 !important;
  min-height: 52px !important;
}

/* Desktop: login icon at far right of navbar row */
@media (min-width: 992px) {
  .navbar-area.navbar-nine .navbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Keep mobile collapse hidden on desktop (was forced visible by older rules) */
  .navbar-area.navbar-nine #navbarNine.d-lg-none {
    display: none !important;
  }

  .navbar-nine__container {
    position: relative;
  }

  #navbar-login-corner.navbar-login-slot--desktop {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1061;
    margin: 0 !important;
  }

  .navbar-area.navbar-nine .navbar-nine__desktop {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-right: 48px;
  }

  .navbar-area.navbar-nine .navbar-brand {
    max-width: none;
    flex-shrink: 0;
  }

  .navbar-area.navbar-nine .navbar-nine__desktop .navbar-nav {
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
  }

  .navbar-area.navbar-nine .navbar-nine__desktop .navbar-nav .nav-item {
    margin: 0 !important;
  }

  .navbar-area.navbar-nine .navbar-nine__desktop .navbar-nav .nav-item .page-scroll {
    color: #000000 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
  }

  .navbar-area.navbar-nine .navbar-nine__desktop .navbar-nav .nav-item .page-scroll:hover:not(.active) {
    color: var(--isro-blue) !important;
  }

  .navbar-area.navbar-nine .navbar-nine__desktop .navbar-nav .nav-item .page-scroll.active {
    color: var(--isro-blue) !important;
  }
}

/* Mobile: dropdown menu — fixed below announcement + navbar */
@media (max-width: 991.98px) {
  .navbar-area.navbar-nine {
    position: sticky !important;
    top: var(--announcement-height) !important;
    z-index: 1055 !important;
  }

  .navbar-area.navbar-nine .navbar {
    position: relative;
    flex-wrap: nowrap;
  }

  .navbar-area.navbar-nine .navbar-brand {
    max-width: calc(100% - 56px);
    min-width: 0;
  }

  .navbar-area.navbar-nine .navbar-brand .brand-text {
    font-size: clamp(0.72rem, 3.5vw, 0.9rem) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 220px);
  }

  .navbar-area.navbar-nine #navbarNine {
    display: none !important;
  }

  .navbar-area.navbar-nine #navbarNine.show,
  .navbar-area.navbar-nine #navbarNine.collapsing {
    display: block !important;
    position: fixed !important;
    top: var(--site-header-offset) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 0 32px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 1095 !important;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 16px !important;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav .nav-item {
    width: 100%;
    margin: 0 !important;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav .nav-item .page-scroll {
    display: block !important;
    width: 100%;
    text-align: left;
    color: #000000 !important;
    font-size: 1rem !important;
    padding: 14px 16px !important;
    border-radius: 10px;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav .nav-item .page-scroll:hover,
  .navbar-area.navbar-nine #navbarNine .navbar-nav .nav-item .page-scroll.active {
    background: #eff6ff !important;
    color: var(--isro-blue) !important;
  }

  .navbar-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 16px 12px auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
}

.navbar-close {
  color: #0b1426 !important;
}

/* ---- Navbar sizing & brand alignment ---- */
.navbar-area.navbar-nine {
  padding: 0 !important;
}

.navbar-area.navbar-nine .brand-logo {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.navbar-area.navbar-nine .navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.navbar-area.navbar-nine .navbar-brand .brand-text {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
  height: auto !important;
}

.navbar-area.navbar-nine .navbar-toggler {
  padding: 6px 8px !important;
  font-size: 0.9rem !important;
}

.navbar-area.navbar-nine .toggler-icon {
  width: 22px !important;
  height: 2px !important;
  margin: 5px 0 !important;
}

.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll::after {
  bottom: -2px !important;
  height: 2px !important;
}

.navbar-area.navbar-nine .navbar-nav .nav-item .page-scroll {
  padding: 0 !important;
  color: #000000 !important;
}

/* ============================================================
   MOBILE & TABLET RESPONSIVE
   ============================================================ */

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 26, 0.5);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Announcement bar — hidden on mobile */
@media (max-width: 767px) {
  .isro-announcement {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .isro-announcement {
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 10px 16px;
    text-align: center;
  }
}

/* Override legacy style.css mobile navbar (conflicts with fixed header) */
@media (max-width: 991.98px) {
  .navbar-area.navbar-nine {
    position: sticky !important;
    top: var(--announcement-height) !important;
    left: 0;
    right: 0;
    width: 100% !important;
    background: #ffffff !important;
  }

  .navbar-area.navbar-nine .navbar .navbar-collapse,
  .navbar-area.navbar-nine .navbar #navbarNine {
    top: auto !important;
    background-color: #ffffff !important;
  }
}

/* Hero & sections */
@media (max-width: 991.98px) {
  .header-eight.space-hero {
    padding-top: calc(var(--site-header-offset) + 20px) !important;
    padding-bottom: 64px !important;
    min-height: auto !important;
  }

  .space-hero .header-content {
    text-align: center;
  }

  .space-hero .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .section-title-five .content h2,
  .section-title .title {
    font-size: clamp(1.45rem, 5vw, 2rem) !important;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .primary-btn,
  .btn-hover,
  .main-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .space-hero .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .space-hero .hero-btns .btn-hover {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .header-eight.space-hero {
    padding-top: calc(var(--site-header-offset) + 16px) !important;
  }

  .space-hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem) !important;
    line-height: 1.2 !important;
  }

  .space-hero .header-content p {
    font-size: 0.95rem;
  }

  .isro-section,
  .about-area,
  .services-area,
  .latest-news-area,
  .cert-verify-section {
    padding: 56px 0 !important;
  }

  .isro-section h2 {
    max-width: none;
  }

  .isro-features {
    grid-template-columns: 1fr;
  }

  .isro-cert-ribbon__divider {
    display: none;
  }

  .single-service,
  .single-news,
  .testimonial-card {
    margin-bottom: 16px;
  }

  .footer-eleven .footer-widget {
    margin-bottom: 28px;
  }

  .bottom-bar {
    padding: 12px 16px !important;
  }

  .bottom-bar p {
    font-size: 0.72rem !important;
    line-height: 1.5;
    text-align: center;
  }

  .scroll-top {
    right: 16px !important;
    bottom: 72px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .cert-verify-box {
    padding: 20px 16px !important;
  }

  .cert-verify-form {
    flex-direction: column !important;
  }

  .cert-verify-form input,
  .cert-verify-form .cert-btn-primary {
    width: 100% !important;
    min-height: 48px;
  }

  .cert-tmpl {
    max-width: 100%;
  }

  img:not(.cert-tmpl-bg),
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 991.98px) {
  .space-hero .hero-visual {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav .nav-item .page-scroll {
    font-size: 1.05rem !important;
  }
}

/* Public courses section */
.courses-public-area {
  background: #f8fafc;
}

.course-public-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.course-public-link:hover .course-public-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 61, 165, 0.12);
}

.course-public-card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.course-public-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin: -1px -1px 0;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}

.course-public-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-public-card .course-public-thumb + .service-content {
  padding-top: 18px;
}

.course-public-card .service-content h4 {
  margin-bottom: 10px;
}

.course-public-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: #003da5;
  margin-bottom: 0;
}

.courses-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
}

.courses-empty-state i {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #94a3b8;
}

/* Course detail page */
.course-detail-page {
  padding-top: var(--announcement-height);
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.course-detail-header {
  position: sticky;
  top: var(--announcement-height);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.course-detail-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.course-detail-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.course-detail-brand img {
  height: 42px;
  width: auto;
}

.course-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #003da5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.course-detail-back:hover {
  color: #002d7a;
}

.course-detail-main {
  flex: 1;
  padding: 40px 0 88px;
}

.course-detail-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 0;
}

.course-detail-image {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}

.course-detail-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.course-detail-hero,
.course-detail-body,
.course-detail-actions,
.course-detail-error {
  padding-left: 40px;
  padding-right: 40px;
}

.course-detail-hero {
  padding-top: 40px;
}

.course-detail-image + .course-detail-hero {
  padding-top: 28px;
}

.course-detail-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #003da5;
}

.course-detail-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.course-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #003da5;
  font-size: 0.88rem;
  font-weight: 600;
}

.course-detail-body {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.course-detail-body h2,
.course-detail-body h3,
.course-detail-body h4 {
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.course-detail-body p:last-child {
  margin-bottom: 0;
}

.course-detail-body ul,
.course-detail-body ol {
  padding-left: 1.25rem;
}

.course-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.course-detail-body th,
.course-detail-body td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  vertical-align: top;
}

.course-detail-body th {
  background: #f8fafc;
  font-weight: 700;
}

.course-detail-body hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid #e2e8f0;
}

.course-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.course-detail-btn--primary {
  background: #003da5;
  color: #fff;
}

.course-detail-btn--primary:hover {
  background: #002d7a;
  color: #fff;
}

.course-detail-btn--secondary {
  background: #fff;
  color: #003da5;
  border: 1px solid #cbd5e1;
}

.course-detail-btn--secondary:hover {
  background: #f8fafc;
  color: #002d7a;
}

.course-detail-error {
  text-align: center;
  padding: 24px 12px;
}

.course-detail-error i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.course-detail-error h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.course-detail-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  margin-top: 0;
  padding: 16px 0 20px;
  color: #64748b;
  font-size: 0.9rem;
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.course-detail-footer a {
  color: #003da5;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 767px) {
  .course-detail-hero,
  .course-detail-body,
  .course-detail-actions,
  .course-detail-error {
    padding-left: 22px;
    padding-right: 22px;
  }

  .course-detail-hero {
    padding-top: 28px;
  }

  .course-detail-image + .course-detail-hero {
    padding-top: 22px;
  }

  .course-detail-card {
    border-radius: 16px;
  }

  .course-detail-header__inner {
    min-height: 64px;
  }

  .course-detail-brand span {
    display: none;
  }

  .course-detail-actions {
    flex-direction: column;
  }

  .course-detail-btn {
    width: 100%;
  }
}

/* ---- Site login dropdown (Bootstrap) ---- */
.navbar-mobile-actions {
  position: relative;
  z-index: 1060;
  flex-shrink: 0;
}

.navbar-login-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .navbar-area.navbar-nine #navbarNine {
    gap: 0;
  }

  .navbar-area.navbar-nine #navbarNine .navbar-nav {
    margin-right: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-login-slot--desktop {
    display: none !important;
  }
}

.site-login-dropdown {
  position: relative;
}

.site-login-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--isro-blue);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.site-login-toggle::after {
  display: none !important;
}

.site-login-toggle:hover,
.site-login-toggle.show,
.site-login-toggle:focus,
.site-login-toggle:active {
  background: #eff6ff;
  border-color: rgba(0, 61, 165, 0.25);
  color: var(--isro-blue);
  box-shadow: 0 4px 14px rgba(0, 61, 165, 0.12);
}

.site-login-menu {
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  margin-top: 10px !important;
  z-index: 2000;
}

.site-login-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-login-menu .dropdown-item i {
  width: 18px;
  color: var(--isro-blue);
  font-size: 1rem;
}

.site-login-menu .dropdown-item:hover,
.site-login-menu .dropdown-item:focus {
  background: #eff6ff;
  color: var(--isro-blue);
}

.course-detail-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-login-nav--header {
  margin-left: 0;
}

/* ---- Portal login pages ---- */
.portal-login-page {
  background: #f1f5f9;
}

.portal-login {
  min-height: calc(100vh - var(--announcement-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.portal-login__card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.portal-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.portal-login__brand img {
  height: 56px;
  width: auto;
}

.portal-login h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--isro-blue);
}

.portal-login__lead {
  margin: 0 0 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.portal-login__field {
  display: block;
  margin-bottom: 16px;
}

.portal-login__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

.portal-login__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
}

.portal-login__submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: var(--isro-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.portal-login__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.portal-login__submit--secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.portal-login__alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
}

.portal-login__alert--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.portal-login__account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.portal-login__account-link:hover {
  text-decoration: underline;
}

.portal-login__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.88rem;
  color: #475569;
}

.portal-login__meta {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.7;
}

.portal-login__note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.portal-login__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  color: var(--isro-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

/* ---- Student portal ---- */
.student-portal-page .student-portal__card {
  max-width: 720px;
}

.faculty-portal-page .student-portal__card {
  max-width: 1120px;
}

.faculty-portal-page.student-lms-page .student-portal__card {
  max-width: none;
}

.student-portal__courses {
  margin: 24px 0;
  text-align: left;
}

.student-portal__courses h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.student-portal__course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.student-portal__course-item {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.student-portal__course-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.student-portal__course-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.student-portal__course-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--isro-blue);
}

.student-portal__batch {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.student-portal__course-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 14px 0 0;
}

.student-portal__course-meta div {
  margin: 0;
}

.student-portal__course-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}

.student-portal__course-meta dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #334155;
}

.student-portal__course-desc {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}

.student-portal__open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--isro-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.student-portal__open-btn:hover {
  opacity: 0.92;
  color: #fff;
}

/* ---- Student course learning page ---- */
.student-course__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--isro-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.student-course__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
  text-align: left;
}

.student-course__header h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--isro-blue);
}

.student-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.student-course__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}

.student-course__lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  text-align: left;
}

.student-course__lesson {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.student-course__lesson-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.student-course__lesson-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--isro-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.student-course__lesson-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.student-course__lesson-type {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.student-course__lesson-body {
  margin-top: 14px;
}

.student-course__richtext {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
}

.student-course__richtext p {
  margin: 0 0 0.75em;
}

.student-course__richtext p:last-child {
  margin-bottom: 0;
}

.student-course__richtext h2,
.student-course__richtext h3,
.student-course__richtext h4 {
  color: #0f172a;
  margin: 1.25rem 0 0.65rem;
  line-height: 1.35;
}

.student-course__richtext h2 {
  font-size: 1.35rem;
}

.student-course__richtext h3 {
  font-size: 1.15rem;
}

.student-course__richtext h4 {
  font-size: 1rem;
}

.student-course__richtext ul,
.student-course__richtext ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.student-course__richtext ul {
  list-style-type: disc;
}

.student-course__richtext ol {
  list-style-type: decimal;
}

.student-course__richtext ul ul {
  list-style-type: circle;
  margin-top: 0.35em;
}

.student-course__richtext ol ol {
  list-style-type: lower-alpha;
  margin-top: 0.35em;
}

.student-course__richtext li {
  margin-bottom: 0.35em;
}

.student-course__richtext li > p {
  margin: 0;
}

.student-course__richtext blockquote {
  margin: 1em 0;
  padding: 0.75em 1em;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.student-course__richtext a {
  color: #2563eb;
  text-decoration: underline;
}

.student-course__richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.student-course__richtext thead,
.student-course__richtext tbody,
.student-course__richtext tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.student-course__richtext th,
.student-course__richtext td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  word-break: break-word;
}

.student-course__richtext th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.student-course__richtext hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.25em 0;
}

.student-course__richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.student-course__richtext strong {
  font-weight: 700;
  color: #0f172a;
}

.student-course__richtext .ysl-richtext-video--youtube {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.student-course__richtext .ysl-richtext-video--file,
.student-course__richtext .ysl-richtext-video:has(> .ysl-richtext-video__file) {
  display: inline-block;
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  vertical-align: top;
}

.student-course__richtext .ysl-richtext-video__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.student-course__richtext .ysl-richtext-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.student-course__richtext .ysl-richtext-video__file {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  background: transparent;
  border-radius: 12px;
}

/* Custom YouTube player — only play, pause, seek */
.ysl-yt-player {
  width: 100%;
}

.ysl-yt-player__viewport {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  isolation: isolate;
}

.ysl-yt-player__embed {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ysl-yt-player.is-paused .ysl-yt-player__embed {
  visibility: hidden;
  opacity: 0;
}

.ysl-yt-player__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none !important;
}

.ysl-yt-player__mask {
  display: none;
}

.ysl-yt-player__blocker {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  background: transparent;
  cursor: default;
}

.ysl-yt-player.is-playing .ysl-yt-player__blocker {
  display: block;
}

.ysl-yt-player__brand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 101;
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 1px 4px rgba(15, 23, 42, 0.45));
}

.ysl-yt-player__cover {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

.ysl-yt-player.is-paused .ysl-yt-player__cover {
  display: flex;
}

.ysl-yt-player__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ysl-yt-player__cover-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--isro-blue);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.ysl-yt-player__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ysl-yt-player__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--isro-blue);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.ysl-yt-player__seek {
  flex: 1;
  min-width: 0;
  height: 6px;
  accent-color: var(--isro-blue);
  cursor: pointer;
}

.ysl-yt-player__time {
  flex-shrink: 0;
  min-width: 88px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.student-course__document-image-wrap {
  margin: 0;
}

.student-course__document-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.ysl-doc-viewer {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.ysl-doc-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.ysl-doc-viewer__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ysl-doc-viewer__btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.ysl-doc-viewer__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ysl-doc-viewer__status {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.ysl-doc-viewer__status--wide {
  text-align: left;
}

.ysl-doc-viewer__download {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.ysl-doc-viewer__download:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.ysl-doc-viewer--presentation {
  background: #0f172a;
  border-color: #1e293b;
}

.ysl-doc-viewer__toolbar--presentation {
  justify-content: flex-end;
  background: #1e293b;
  border-bottom-color: #334155;
}

.ysl-doc-viewer__toolbar--presentation .ysl-doc-viewer__status {
  margin-right: auto;
  color: #94a3b8;
  text-align: left;
}

.ysl-doc-viewer__btn--fullscreen {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.ysl-doc-viewer__btn--fullscreen:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.ysl-doc-viewer__stage--presentation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  height: min(62vh, 640px);
  padding: 16px;
  background: #0f172a;
}

.ysl-doc-viewer__presentation-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ysl-doc-viewer__ppt-canvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ysl-doc-viewer__toolbar--bottom {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
}

.ysl-doc-viewer--paged {
  display: flex;
  flex-direction: column;
}

.ysl-doc-viewer__stage--paged {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  height: min(62vh, 640px);
  padding: 16px;
  background: #f8fafc;
}

.ysl-doc-viewer__page-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.ysl-doc-viewer__stage--paged .ysl-doc-viewer__canvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ysl-doc-viewer__toolbar--bottom .ysl-doc-viewer__btn--fullscreen {
  margin-left: auto;
}

.ysl-doc-viewer__toolbar--dark {
  background: #1e293b;
  border-top-color: #334155;
  flex-shrink: 0;
}

.ysl-doc-viewer__toolbar--dark .ysl-doc-viewer__status {
  color: #e2e8f0;
}

.ysl-doc-viewer__toolbar--dark .ysl-doc-viewer__btn {
  background: #334155;
  border-color: #475569;
  color: #f8fafc;
}

.ysl-doc-viewer__toolbar--dark .ysl-doc-viewer__btn:hover:not(:disabled) {
  background: #475569;
  border-color: #64748b;
}

.ysl-doc-viewer__btn--exit {
  margin-left: auto;
}

.ysl-doc-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
}

.ysl-doc-fullscreen__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 12px;
  min-height: 0;
  width: 100%;
  background: #fff;
}

.ysl-doc-fullscreen__canvas {
  display: block;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  max-width: none;
  max-height: none;
}

.ysl-doc-viewer__word--fullscreen {
  width: 100%;
  max-width: 960px;
  max-height: 100%;
  overflow: auto;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}

.ysl-ppt-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: #000;
  cursor: pointer;
}

.ysl-ppt-fullscreen__canvas {
  display: block;
}

body.ysl-ppt-fullscreen-open {
  overflow: hidden;
}

.ysl-doc-viewer__stage {
  min-height: 420px;
  background: #fff;
}

.ysl-doc-viewer__canvas {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
}

.ysl-doc-viewer__office-frame {
  display: block;
  width: 100%;
  min-height: 560px;
  height: 70vh;
  max-height: 720px;
  border: 0;
}

.ysl-doc-viewer__word {
  padding: 16px;
  overflow: auto;
  max-height: 70vh;
}

.ysl-doc-viewer__word .docx-wrapper {
  margin: 0 auto;
  background: #fff;
}

.ysl-doc-viewer__fallback {
  padding: 16px;
  margin: 0;
}

.ysl-doc-viewer--office .ysl-doc-viewer__stage {
  min-height: 560px;
}

.ysl-native-video__viewport {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.student-course__video-file {
  width: 100%;
  border-radius: 12px;
  background: #0f172a;
}

.student-course__link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.student-course__logout {
  margin-top: 24px;
}

/* ---- Guided LMS learning ---- */
.student-course--guided {
  max-width: 960px !important;
}

.student-lms-page .portal-login {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: calc(100vh - var(--announcement-height));
}

.student-lms-page .portal-login__card.student-course--guided,
.student-lms-page .student-portal__card.student-course--guided {
  max-width: none !important;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
  padding: 20px clamp(16px, 2.5vw, 40px) 48px;
  min-height: calc(100vh - var(--announcement-height));
}

.student-lms-page .lms-guide__layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}

.faculty-portal-page.student-lms-page .lms-guide__layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.student-lms-page .lms-guide__sidebar {
  top: calc(var(--announcement-height) + 12px);
  max-height: calc(100vh - var(--announcement-height) - 24px);
  overflow: auto;
}

.student-lms-page .lms-guide__panel {
  min-height: 420px;
}

.student-lms-page .student-course__header h1 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.lms-guide {
  text-align: left;
}

.lms-guide__progress-wrap {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.lms-guide__progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #475569;
}

.lms-guide__progress-label strong {
  color: var(--isro-blue);
}

.lms-guide__progress-pct {
  font-weight: 600;
  color: #0f172a;
}

.lms-guide__progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.lms-guide__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--isro-blue), #38bdf8);
  transition: width 0.25s ease;
}

.lms-guide__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.lms-guide__sidebar {
  position: sticky;
  top: 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.lms-guide__sidebar-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.lms-guide__modules {
  display: grid;
  gap: 16px;
}

.lms-guide__module {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.lms-guide__module-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.lms-guide__module-toggle:hover {
  background: #f1f5f9;
}

.lms-guide__module-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lms-guide__module-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.lms-guide__module-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.lms-guide__module-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lms-guide__module-complete-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lms-guide__module.is-complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.lms-guide__module-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.lms-guide__module.is-collapsed .lms-guide__module-caret {
  transform: rotate(-90deg);
}

.lms-guide__module.is-collapsed .lms-guide__steps {
  display: none;
}

.lms-guide__module-empty {
  list-style: none;
  margin: 0;
  padding: 4px 2px 8px;
}

.lms-guide__module-empty-text {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-style: italic;
}

.lms-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  display: grid;
  gap: 8px;
}

.lms-guide__progress-module {
  margin-left: 4px;
  font-weight: 600;
  color: #64748b;
}

.lms-guide__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lms-guide__step:hover {
  border-color: #cbd5e1;
}

.lms-guide__step.is-active {
  border-color: var(--isro-blue);
  background: #eff6ff;
}

.lms-guide__step.is-done .lms-guide__step-num {
  background: #16a34a;
}

.lms-guide__step.is-done .lms-guide__step-check {
  opacity: 1;
  color: #16a34a;
}

.lms-guide__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--isro-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lms-guide__step-text {
  flex: 1;
  min-width: 0;
}

.lms-guide__step-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.lms-guide__step-type {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.lms-guide__step-draft {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b45309;
  background: #fff7ed;
  vertical-align: middle;
}

.lms-guide__step-check {
  opacity: 0;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.lms-guide__main {
  min-width: 0;
}

.lms-guide__panel {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.lms-guide__panel-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.lms-guide__panel-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--isro-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lms-guide__panel-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.lms-guide__panel-type {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.lms-guide__panel-body {
  min-height: 120px;
}

.lms-guide__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.lms-guide__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.lms-guide__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lms-guide__nav-btn--secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.lms-guide__nav-btn--complete {
  flex: 1;
  min-width: 180px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.lms-guide__nav-btn--primary {
  margin-left: auto;
  background: var(--isro-blue);
  color: #fff;
}

.lms-guide__finish {
  margin-top: 16px;
}

.lms-guide__finish-card {
  padding: 24px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
  text-align: center;
}

.lms-guide__finish-card i {
  font-size: 2rem;
  color: #16a34a;
}

.lms-guide__finish-card h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
  color: #14532d;
}

.lms-guide__finish-card p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #166534;
}

.faculty-class-select h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faculty-class-select__hint {
  margin-bottom: 18px;
}

.faculty-class-select__group + .faculty-class-select__group {
  margin-top: 24px;
}

.faculty-class-select__school {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faculty-class-select__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.faculty-class-select__item {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.faculty-class-select__item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.faculty-class-select__item-head strong {
  display: block;
  font-size: 1.05rem;
  color: var(--isro-blue);
}

.faculty-class-select__meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.faculty-class-select__percent {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.faculty-class-select__progress {
  height: 6px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.faculty-class-select__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--isro-blue), #1a237e);
}

.faculty-class-select__status {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: #475569;
}

.faculty-class-select__open-btn {
  width: 100%;
  text-align: center;
}

.faculty-class-select__school-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--isro-blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.faculty-class-select__chevron {
  color: #94a3b8;
  font-size: 1.1rem;
}

.faculty-school-select__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Faculty course cards — compact, two per row */
.faculty-portal-page .faculty-course-grid,
.faculty-course-grid {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100%;
}

.faculty-portal-page .faculty-course-grid > li,
.faculty-course-grid > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  min-width: 0;
}

.faculty-portal-page .faculty-course-grid__card,
.faculty-course-grid__card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 148px;
  padding: 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.faculty-portal-page .faculty-course-grid__card:hover,
.faculty-course-grid__card:hover {
  border-color: #93c5fd !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(26, 35, 126, 0.1);
  transform: translateY(-1px);
}

.faculty-course-grid__image {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.faculty-course-grid__body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px;
  width: 100%;
  flex: 1;
}

.faculty-course-grid__title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--isro-blue, #003da5);
}

.faculty-course-grid__meta {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

.faculty-course-grid__tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.faculty-course-grid__tags span {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
}

.faculty-course-grid__action {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--isro-blue, #003da5);
}

@media (max-width: 700px) {
  .faculty-portal-page .faculty-course-grid,
  .faculty-course-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .faculty-school-select__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .faculty-school-select__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faculty-school-select__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.faculty-school-select__card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(26, 35, 126, 0.08);
  transform: translateY(-1px);
}

.faculty-school-select__card--default {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.faculty-school-select__card--default:hover {
  border-color: #3b82f6;
}

.faculty-school-select__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.faculty-school-select__card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.faculty-school-select__card-main strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--isro-blue);
}

.faculty-school-select__meta {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

.faculty-school-select__chevron {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 1rem;
}

.faculty-class-select--compact h2 {
  margin-bottom: 12px;
}

.faculty-class-select__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.faculty-class-select__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.faculty-class-select__card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(26, 35, 126, 0.08);
  transform: translateY(-1px);
}

.faculty-class-select__card--active {
  border-color: #60a5fa;
  background: #f8fbff;
}

.faculty-class-select__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.faculty-class-select__card-top strong {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--isro-blue);
}

.faculty-class-select--compact .faculty-class-select__meta {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #64748b;
}

.faculty-class-select--compact .faculty-class-select__percent {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.faculty-class-select--compact .faculty-class-select__progress {
  height: 4px;
  margin: 0;
}

.faculty-class-select--compact .faculty-class-select__status {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #475569;
}

.faculty-class-select__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.faculty-class-select__hint {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--isro-blue);
}

.faculty-class-select--compact .faculty-class-select__chevron {
  font-size: 0.9rem;
}

.faculty-class-attendance {
  margin-top: 8px;
  text-align: left;
}

.faculty-class-attendance__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.faculty-class-attendance__header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.faculty-class-attendance__date {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.faculty-class-attendance__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.85rem;
  color: #475569;
}

.faculty-class-attendance__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: #64748b;
}

.faculty-class-attendance__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.faculty-class-attendance__swatch--present {
  background: #16a34a;
}

.faculty-class-attendance__swatch--absent {
  background: #dc2626;
}

.faculty-class-attendance__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.faculty-class-attendance__grid > li {
  min-width: 0;
}

.faculty-class-attendance__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.faculty-class-attendance__box.is-present {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.faculty-class-attendance__box.is-absent {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.faculty-class-attendance__box:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.faculty-class-attendance__name {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.faculty-class-attendance__status-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.faculty-class-attendance__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.faculty-class-attendance__secondary,
.faculty-class-attendance__submit,
.faculty-class-attendance__open {
  appearance: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faculty-class-attendance__secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.faculty-class-attendance__submit {
  border: none;
  background: var(--isro-blue, #003da5);
  color: #fff;
}

.faculty-class-attendance__submit:hover {
  filter: brightness(1.05);
}

.faculty-class-attendance__open {
  border: 1px solid var(--isro-blue, #003da5);
  background: #eff6ff;
  color: var(--isro-blue, #003da5);
}

.faculty-class-attendance__open:hover {
  background: #dbeafe;
}

@media (max-width: 560px) {
  .faculty-class-attendance__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faculty-class-attendance__header {
    flex-direction: column;
  }
}

.faculty-teaching-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.faculty-teaching-banner__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.faculty-teaching-banner strong {
  font-size: 1rem;
  color: #0f172a;
}

.faculty-teaching-banner__change {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--isro-blue);
  text-decoration: none;
}

.faculty-teaching-banner__change:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .portal-announcement--with-signout {
    padding-right: 16px;
  }

  .portal-announcement__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .portal-announcement__message {
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
  }

  .portal-announcement__actions {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .portal-user-toggle {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .portal-announcement__signout {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .portal-announcement__signout-btn span {
    display: none;
  }

  .portal-announcement__signout-btn {
    padding: 8px 10px;
  }

  .lms-guide__layout {
    grid-template-columns: 1fr;
  }

  .lms-guide__sidebar {
    position: static;
  }

  .lms-guide__nav-btn--primary {
    margin-left: 0;
    width: 100%;
  }

  .lms-guide__nav-btn--complete {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .navbar-mobile-actions {
    margin-left: auto;
  }

  .site-login-menu {
    right: 0 !important;
    left: auto !important;
  }
}

/* ---- Faculty weekly timetable ---- */
.faculty-timetable {
  margin: 28px 0 8px;
  text-align: left;
}

.faculty-timetable h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.faculty-timetable__lead,
.faculty-timetable__school-note {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.faculty-timetable__school-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.82rem;
}

.faculty-timetable__legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.faculty-timetable__legend-swatch--mine {
  background: #dbeafe;
  border-color: #003da5;
}

.faculty-timetable__legend-swatch--other {
  background: #fff7ed;
  border-color: #c44508;
}

.faculty-timetable__school-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.faculty-timetable__school-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

.faculty-timetable__school-select {
  min-width: min(100%, 280px);
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
}

.faculty-timetable__wrap {
  overflow-x: auto;
  padding: 2px;
}

.faculty-timetable__table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.faculty-timetable__corner {
  width: 52px;
  border: 0;
  background: transparent;
}

.faculty-timetable__day {
  padding: 12px 8px 12px 0;
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--isro-blue);
  text-align: left;
  vertical-align: middle;
}

.faculty-timetable__period,
.faculty-timetable__lunch {
  padding: 10px 6px;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  background: #f8fafc;
  text-align: center;
  vertical-align: middle;
}

.faculty-timetable__period:first-of-type {
  border-top-left-radius: 12px;
}

.faculty-timetable__period-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--isro-blue);
}

.faculty-timetable__period-time {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.faculty-timetable__lunch {
  width: 68px;
  background: #fff;
  border-color: #dbeafe;
}

.faculty-timetable__lunch-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

.faculty-timetable__lunch-time {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.faculty-timetable__cell,
.faculty-timetable__lunch-cell,
.faculty-timetable__training {
  border: 1px solid #e2e8f0;
  padding: 10px 6px;
  min-height: 48px;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.faculty-timetable__cell {
  color: #94a3b8;
}

.faculty-timetable__cell--filled {
  color: #0f172a;
  background: #f8fafc;
}

.faculty-timetable__slot {
  display: block;
  margin: 0 0 6px;
  padding: 4px 5px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  line-height: 1.25;
}

.faculty-timetable__slot:last-child {
  margin-bottom: 0;
}

.faculty-timetable__slot--mine {
  border-color: #003da5;
  background: #eff6ff;
}

.faculty-timetable__slot--other {
  border-color: #fdba74;
  background: #fff7ed;
}

.faculty-timetable__slot-section {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.82rem;
}

.faculty-timetable__slot-faculty {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.faculty-timetable__training .faculty-timetable__slot {
  display: inline-block;
  margin: 0 6px 6px 0;
}

.faculty-timetable__lunch-cell {
  background: #f1f5f9;
  border-color: #dbeafe;
}

.faculty-timetable__training {
  font-weight: 700;
  color: var(--isro-blue);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.faculty-timetable__table tbody tr:last-child .faculty-timetable__cell,
.faculty-timetable__table tbody tr:last-child .faculty-timetable__lunch-cell,
.faculty-timetable__table tbody tr:last-child .faculty-timetable__training {
  border-bottom: 1px solid #e2e8f0;
}

.faculty-timetable__table tbody tr:last-child .faculty-timetable__cell:first-of-type,
.faculty-timetable__table tbody tr:last-child .faculty-timetable__training {
  border-bottom-left-radius: 12px;
}

.faculty-timetable__table tbody tr:last-child .faculty-timetable__cell:last-of-type,
.faculty-timetable__table tbody tr:last-child .faculty-timetable__training {
  border-bottom-right-radius: 12px;
}
