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

:root {
  --primary-navy: #091b2f;
  --secondary-navy: #0c233c;
  --dark-navy: #05101d;
  --accent-red: #e30613;
  --accent-pink: #e0245e;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --card-bg: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  font-family: var(--font-body);
  color: var(--text-dark);
  user-select: none;
}

/* Smart Board Main Container - 16:9 responsive display */
.screen-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f1f5f9;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header-bar {
  height: 12.5vh;
  min-height: 85px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  z-index: 30;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5vw;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.school-logo {
  height: 68px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 50%;
}

.school-titles {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
  line-height: 1.1;
}

.school-branch {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--secondary-navy);
}

.header-divider {
  width: 2px;
  height: 50px;
  background-color: #cbd5e1;
  margin: 0 0.5vw;
}

.header-slogan {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #334155;
  text-transform: uppercase;
  max-width: 230px;
  line-height: 1.25;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.2vw;
}

/* Live Date & Time */
.live-clock-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.live-date {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.5px;
}

.live-time {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
  letter-spacing: -1px;
}

/* Live Weather */
.weather-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.weather-icon-box {
  font-size: 2.2rem;
  color: #f59e0b; /* Sunny amber */
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-info {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
}

.weather-city {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* Top Corner Motto */
.header-motto-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #e2e8f0;
  padding-left: 1.5vw;
}

.header-motto-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.15;
}

.header-motto-bar {
  width: 48px;
  height: 3.5px;
  background-color: var(--accent-red);
  margin-top: 5px;
  border-radius: 2px;
}

/* ==========================================================================
   MAIN CONTENT (70% STAGE + 30% SIDEBAR)
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Media / School Stage */
.stage-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #0d1b2a;
}

.media-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.media-background img,
.media-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
}

.media-background iframe {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(1.08); /* remove youtube letterboxing and edges */
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(9, 27, 47, 0.6) 0%, rgba(9, 27, 47, 0.3) 38%, rgba(9, 27, 47, 0.05) 75%, transparent 100%);
  z-index: 2;
}

/* Left Content Overlay */
.stage-overlay-content {
  position: absolute;
  top: 5vh;
  left: 3.5vw;
  z-index: 5;
  max-width: 480px;
  color: #ffffff;
}

.stage-main-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  letter-spacing: -0.5px;
}

.stage-title-bar {
  width: 65px;
  height: 5px;
  background-color: var(--accent-red);
  margin: 18px 0 28px 0;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.5);
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.highlight-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   RIGHT SIDEBAR (CARDS)
   ========================================================================== */
.sidebar-area {
  width: 27vw;
  min-width: 340px;
  max-width: 420px;
  background-color: var(--secondary-navy);
  padding: 1.5vh 1.1vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2vh;
  z-index: 10;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.25);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #ffffff;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
}

.section-link {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
}

/* 1. TEACHER ROTATION CARD */
.teacher-section {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.teacher-card-wrapper {
  position: relative;
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.teacher-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.teacher-card.changing {
  opacity: 0;
  transform: translateY(12px);
}

.teacher-photo-box {
  width: 110px;
  height: 135px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teacher-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.teacher-branch {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}

.teacher-red-bar {
  width: 32px;
  height: 3px;
  background-color: var(--accent-red);
  margin: 7px 0;
  border-radius: 2px;
}

.teacher-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: #334155;
  line-height: 1.3;
  font-weight: 500;
}

/* 2. DUTY TEACHERS CARD */
.duty-section {
  display: flex;
  flex-direction: column;
}

.duty-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.duty-card.changing {
  opacity: 0;
  transform: scale(0.98);
}

.duty-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.duty-separator {
  color: #cbd5e1;
  font-weight: 300;
  margin: 0 10px;
}

.duty-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  text-align: right;
}

/* 3. ANNOUNCEMENTS CARD */
.announcements-section {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.announcements-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}

.announcement-row {
  display: flex;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid #f1f5f9;
  gap: 14px;
}

.announcement-row:last-child {
  border-bottom: none;
}

.announcement-date-badge {
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 68px;
}

.announcement-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-bar {
  height: 8.5vh;
  min-height: 60px;
  background-color: var(--dark-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2.2vw;
  position: relative;
  z-index: 30;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

.footer-levels {
  display: flex;
  align-items: center;
  gap: 2.8vw;
}

.level-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.level-item i {
  font-size: 1.15rem;
  color: #94a3b8;
}

.footer-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-web {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 2.2vw;
  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 3vw;
}

.social-icon {
  color: #cbd5e1;
  font-size: 1.3rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #ffffff;
}

.footer-badge {
  background-color: var(--accent-red);
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2.5vw;
  position: relative;
  clip-path: polygon(25px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.footer-badge-text {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-badge-line {
  width: 44px;
  height: 3px;
  background-color: #ffffff;
  margin-top: 4px;
  border-radius: 2px;
}

/* ==========================================================================
   SMART BOARD FLOATING CONTROLS
   ========================================================================== */
.floating-controls {
  position: fixed;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screen-wrapper:hover .floating-controls,
.floating-controls:hover {
  opacity: 1;
}

.control-btn {
  background: rgba(9, 27, 47, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}

.control-btn:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

.hide-cursor {
  cursor: none !important;
}