/* BLUE PLANET SCHOOL, PALIGANJ - APS BANGALORE THEME */
:root {
  --primary-dark: #0D2E6E;
  --primary: #1A56C4;
  --primary-light: #2E72E0;
  --accent-gold: #F4A21D;
  --accent-gold-dark: #D48806;
  --accent-red: #C8102E;
  --bg-page: #F0F4F8;
  --bg-white: #FFFFFF;
  --text-main: #1A202C;
  --text-muted: #4A5568;
  --border-color: #CBD5E1;
  --font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 6px rgba(8, 38, 62, 0.08);
  --shadow-md: 0 6px 18px rgba(8, 38, 62, 0.12);
  --shadow-lg: 0 12px 28px rgba(8, 38, 62, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === TOP BAR (CBSE / CONTACT DETAILS) === */
.top-info-bar {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}

.top-info-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-left-info, .top-right-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-item strong {
  color: var(--accent-gold);
}

.top-btn {
  background: rgba(244, 162, 29, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.top-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

/* === MAIN SCHOOL HEADER === */
.main-header {
  background: #FFFFFF;
  padding: 14px 0;
  border-bottom: 2px solid #E2E8F0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.school-logo-left, .school-logo-right {
  flex-shrink: 0;
}

.logo-badge {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.logo-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.logo-badge-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.school-titles {
  text-align: center;
  flex-grow: 1;
}

.school-name {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.school-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.school-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === NAVIGATION BAR === */
.nav-bar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  background-color: var(--primary-dark);
  color: var(--accent-gold);
}

.dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 4px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  display: none;
  border-top: 3px solid var(--accent-gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1001;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid #F1F5F9;
  text-transform: uppercase;
}

.nav-dropdown li a:hover {
  background: #F8FAFC;
  color: var(--primary);
  padding-left: 20px;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 1.4rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* === HERO TOPPERS SLIDER (APS STYLE) === */
.hero-slider-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 290px;
}

.slide {
  display: none;
  padding: 24px 0 28px;
  animation: fadeIn 0.4s ease;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.slider-header-strip {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #FFFFFF;
  text-align: center;
  padding: 8px 16px;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-header-strip .strip-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 800;
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  justify-content: center;
}

.topper-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.topper-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.rank-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rank-first { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.rank-second { background: #E0E7FF; color: #3730A3; border: 1px solid #C7D2FE; }
.rank-third { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.rank-star { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }

.topper-avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--border-color);
  overflow: hidden;
}

.topper-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topper-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.topper-score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-red);
}

.topper-marks {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.slider-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 10px;
}

/* === TICKER BAR === */
.ticker-strip {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-top: 2px solid var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-heading {
  background: var(--accent-gold);
  color: #000;
  font-weight: 900;
  padding: 8px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-content {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}

.ticker-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 25s linear infinite;
  font-size: 0.88rem;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-item {
  margin-right: 48px;
  color: #FFFFFF;
  cursor: pointer;
}
.ticker-item:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === MAIN 2-COLUMN SECTION (ABOUT US + NOTICE BOARD) === */
.main-content-section {
  padding: 36px 0;
}

.content-grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

/* LEFT COLUMN - ABOUT US */
.about-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.section-head {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title-aps {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 6px;
}

.about-paragraph {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: justify;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.feat-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
}

.feat-icon {
  font-size: 1.3rem;
}

.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-aps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-aps-primary {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-aps-primary:hover {
  background: var(--primary-dark);
  color: var(--accent-gold);
}

.btn-aps-gold {
  background: var(--accent-gold);
  color: #000;
}
.btn-aps-gold:hover {
  background: var(--accent-gold-dark);
  color: #FFF;
}

/* RIGHT COLUMN - NOTICE BOARD WITH POPOUT TABS (APS STYLE) */
.notice-board-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.notice-board-header {
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notice-board-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: capitalize;
}

.pin-icon {
  font-size: 1.4rem;
  transform: rotate(-15deg);
  display: inline-block;
}

.notice-tabs-container {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* POPOUT BUTTONS EXACTLY LIKE VIDEO */
.popout-notice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, filter 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.popout-notice-btn::after {
  content: "→";
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.popout-notice-btn:hover {
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.popout-notice-btn:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

/* Color palettes for the 5 buttons */
.btn-purple {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
}

.btn-green {
  background: linear-gradient(135deg, #10B981, #059669);
}

.btn-pink {
  background: linear-gradient(135deg, #EC4899, #DB2777);
}

.btn-orange {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.btn-blue {
  background: linear-gradient(135deg, #0284C7, #0369A1);
}

.btn-tab-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pulse-badge {
  background: #EF4444;
  color: #FFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

/* === MODAL DIALOG FOR NOTICE POPOUTS === */
.notice-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 38, 62, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.notice-modal-backdrop.open {
  display: flex;
}

.notice-modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-gold);
  animation: modalSlide 0.3s ease;
  position: relative;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: #000;
}

.modal-body {
  padding: 20px 22px;
}

.modal-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
}

.modal-item:hover {
  border-color: var(--primary-light);
  background: #FFFFFF;
}

.modal-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.modal-item-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-download-sm {
  background: var(--primary);
  color: #FFFFFF;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-download-sm:hover {
  background: var(--accent-gold);
  color: #000;
}

/* === FOOTER (APS BANGALORE LAYOUT) === */
.aps-footer {
  background: var(--primary-dark);
  color: #E2E8F0;
  padding: 44px 0 20px;
  border-top: 4px solid var(--accent-gold);
  margin-top: 36px;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.84rem;
  color: #94A3B8;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 960px) {
  .header-flex {
    flex-direction: column;
    text-align: center;
  }
  .content-grid-2col {
    grid-template-columns: 1fr;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-dark);
  }
  .nav-list.open {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    padding-left: 20px;
    background: #0A1E55;
  }
  .nav-dropdown li a {
    color: #CBD5E1;
  }
}




/* ============================================
   BANNER FIT FIX
   ============================================ */
.main-header {
  padding: 0 !important;
  background: #fff !important;
  overflow: hidden;
}

.banner-wrapper {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  max-height: 115px;
}

.banner-wrapper img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.header-sub-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 24px !important;
  border-top: 3px solid #1A56C4 !important;
  background: #fff !important;
  gap: 16px !important;
  box-sizing: border-box !important;
}

.header-logo-img {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: block !important;
  overflow: visible !important;
}

.header-title-block {
  text-align: center !important;
  flex: 1 !important;
}

.header-title-block h1 {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem) !important;
  font-weight: 900 !important;
  color: #1A56C4 !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
}

.header-title-block .hs-addr {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #0D2E6E !important;
}

.header-title-block .hs-tag {
  font-size: 0.75rem !important;
  color: #666 !important;
}

@media (max-width: 600px) {
  .header-sub-row { padding: 6px 10px !important; }
  .header-logo-img { width: 52px !important; height: 52px !important; min-width: 52px !important; }
  .header-title-block h1 { font-size: 0.95rem !important; white-space: normal !important; }
}

/* ============================================
   CONTENT-ONLY SLIDE TRANSITION (MPA style)
   The header/nav stays fixed; only #main-content
   slides in from bottom when page loads
   ============================================ */
#main-content {
  animation: contentSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes contentSlideIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* On exit - add class via JS */
#main-content.content-exit {
  animation: contentSlideOut 0.22s ease-in forwards;
}

@keyframes contentSlideOut {
  to {
    opacity: 0;
    transform: translateY(-18px);
  }
}
