/* 
====================================================================
  Bright Future School - Public Website Stylesheet
==================================================================== 
*/

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

/* =========================================
   1. CSS Custom Properties / Variables
========================================= */
:root {
  --navy: #0d2461;
  --blue: #1976d2;
  --sky: #e3f2fd;
  --gold: #f59e0b;
  --white: #ffffff;
  --bg: #f0f4f8;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 4px 20px rgba(13, 36, 97, 0.08);
  --shadow-hover: 0 8px 30px rgba(13, 36, 97, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* =========================================
   2. Base Styles
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--navy);
  color: var(--white);
}

a {
  text-decoration: none;
  color: var(--blue);
  transition: var(--transition);
}

a:hover {
  color: var(--navy);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* =========================================
   28. Utility Classes
========================================= */
.bg-navy { background-color: var(--navy) !important; }
.bg-blue { background-color: var(--blue) !important; }
.bg-sky { background-color: var(--sky) !important; }
.text-navy { color: var(--navy) !important; }
.text-blue { color: var(--blue) !important; }
.border-navy { border-color: var(--navy) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-lg-custom { box-shadow: var(--shadow) !important; }

/* =========================================
   29. Scrollbar
========================================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* =========================================
   3. Top Bar
========================================= */
.top-bar {
  background-color: var(--blue);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar a {
  color: var(--white);
}
.top-bar a:hover {
  color: var(--sky);
}
.top-bar .social-links a {
  margin-left: 15px;
  font-size: 1rem;
}

/* =========================================
   4. Navbar
========================================= */
.navbar-custom {
  background-color: var(--navy);
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.navbar-custom.scrolled {
  padding: 10px 0;
  background-color: rgba(13, 36, 97, 0.95);
  backdrop-filter: blur(10px);
}
.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}
.navbar-custom.scrolled .navbar-brand img {
  height: 40px;
}
.navbar-brand span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  margin-left: 10px;
}
.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  padding: 8px 0 !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.navbar-toggler {
  border: none;
  color: var(--white);
  font-size: 1.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* =========================================
   5. Hero Section
========================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/hero-bg.jpg'); /* Placeholder path */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(13, 36, 97, 0.9), rgba(13, 36, 97, 0.4));
  z-index: -1;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--gold);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0.9;
}
.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =========================================
   23. Page Hero
========================================= */
.page-hero {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(rgba(13, 36, 97, 0.8), rgba(13, 36, 97, 0.8)), url('../img/page-header.jpg') center/cover;
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================================
   6. Buttons
========================================= */
.btn-primary-custom {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}
.btn-primary-custom:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 36, 97, 0.4);
}
.btn-outline-custom {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-3px);
}
.btn-download {
  background-color: var(--success);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.9rem;
  border: none;
  transition: var(--transition);
}
.btn-download:hover {
  background-color: #0d9668;
  color: white;
  transform: translateY(-2px);
}
.btn-view {
  background-color: var(--sky);
  color: var(--navy);
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.9rem;
  border: none;
  font-weight: 500;
  transition: var(--transition);
}
.btn-view:hover {
  background-color: var(--blue);
  color: var(--white);
}

/* =========================================
   7. Section Headers
========================================= */
.section-padding {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   8. Stats Section
========================================= */
.stats-section {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 60px 0;
  color: var(--white);
}
.stat-card {
  text-align: center;
  padding: 20px;
}
.stat-card i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 15px;
}
.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.stat-card p {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0;
}

/* =========================================
   9. Course Cards
========================================= */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 30px;
  border: 1px solid rgba(0,0,0,0.05);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.course-top {
  height: 80px;
  position: relative;
  background: linear-gradient(135deg, var(--blue), var(--sky));
}
.course-top.math { background: linear-gradient(135deg, #f53b57, #ffc048); }
.course-top.science { background: linear-gradient(135deg, #05c46b, #0fbcf9); }
.course-top.english { background: linear-gradient(135deg, #3c40c6, #575fcf); }
.course-top.history { background: linear-gradient(135deg, #808e9b, #d2dae2); }

.course-icon {
  width: 70px;
  height: 70px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--navy);
  position: absolute;
  bottom: -35px;
  left: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.course-body {
  padding: 50px 30px 30px;
}
.course-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.course-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.teacher-info {
  display: flex;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.teacher-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.teacher-info span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* =========================================
   10. Notice Cards
========================================= */
.notice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 5px solid var(--blue);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.notice-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}
.notice-card.academic { border-left-color: var(--success); }
.notice-card.examination { border-left-color: var(--danger); }
.notice-card.events { border-left-color: #8b5cf6; }
.notice-card.important { border-left-color: var(--warning); }

.notice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.notice-date {
  color: var(--text-muted);
  font-weight: 500;
}
.notice-date i { margin-right: 5px; }
.notice-badge {
  background: var(--sky);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.notice-card.important .notice-badge {
  background: #fef3c7;
  color: #b45309;
}
.notice-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.notice-card:hover .notice-title {
  color: var(--blue);
}

/* =========================================
   11. Book/Library Cards
========================================= */
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.book-cover {
  height: 200px;
  background-color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(13, 36, 97, 0.9);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.book-info {
  padding: 20px;
}
.book-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================
   12. Student Photo Cards
========================================= */
.student-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.student-card:hover {
  transform: translateY(-5px);
  border-color: var(--sky);
  box-shadow: var(--shadow-hover);
}
.student-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  object-fit: cover;
  border: 4px solid var(--sky);
}
.student-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.student-id {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.student-grade {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* =========================================
   26. Teachers Grid
========================================= */
.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  text-align: center;
  transition: var(--transition);
}
.teacher-card:hover {
  transform: translateY(-10px);
}
.teacher-img {
  position: relative;
  overflow: hidden;
}
.teacher-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}
.teacher-card:hover .teacher-img img {
  transform: scale(1.1);
}
.teacher-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: rgba(13, 36, 97, 0.8);
  padding: 15px 0;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  gap: 10px;
}
.teacher-card:hover .teacher-social {
  bottom: 0;
}
.teacher-social a {
  color: var(--white);
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-social a:hover {
  background: var(--gold);
}
.teacher-info {
  padding: 25px 20px;
  border-top: none;
}
.teacher-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.teacher-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* =========================================
   13. Gallery
========================================= */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 10px;
}
.gallery-filter button {
  background: var(--white);
  border: 1px solid var(--sky);
  padding: 8px 20px;
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.gallery-filter button.active, .gallery-filter button:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 36, 97, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h5 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  transform: translateY(20px);
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay h5 {
  transform: translateY(0);
}

/* =========================================
   14. Facilities Section
========================================= */
.facility-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  height: 100%;
}
.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.facility-icon {
  width: 80px;
  height: 80px;
  background: var(--sky);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.facility-card:hover .facility-icon {
  background: var(--blue);
  color: var(--white);
}
.facility-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 15px;
}
.facility-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================
   15. Contact Section
========================================= */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  height: 100%;
}
.contact-info-item {
  display: flex;
  margin-bottom: 25px;
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--sky);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 20px;
  flex-shrink: 0;
}
.contact-info-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.contact-info-text p {
  color: var(--text-muted);
  margin: 0;
}
.contact-form .form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: var(--transition);
}
.contact-form .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
  background: var(--white);
}

/* =========================================
   24. Principal Message
========================================= */
.principal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 30px;
  align-items: center;
}
.principal-img {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--sky);
}
.principal-content h3 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 5px;
}
.principal-content h6 {
  color: var(--blue);
  margin-bottom: 20px;
  font-weight: 500;
}
.principal-quote {
  font-style: italic;
  color: var(--text-muted);
  position: relative;
  padding-left: 30px;
}
.principal-quote::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 2rem;
  color: var(--sky);
  z-index: -1;
}

/* =========================================
   25. Timeline
========================================= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--sky);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--blue);
  border: 4px solid var(--white);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--sky);
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even)::after {
  left: -10px;
}
.timeline-content {
  padding: 20px;
  background-color: var(--white);
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-year {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.timeline-content h4 {
  color: var(--navy);
  font-weight: 600;
}

/* =========================================
   16. Footer
========================================= */
.footer-section {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
}
.footer-widget h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}
.footer-widget p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}
.footer-links i {
  margin-right: 8px;
  font-size: 0.8rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}
.footer-bottom {
  background-color: #081a49;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.9rem;
}

/* =========================================
   17. Breadcrumb
========================================= */
.custom-breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  list-style: none;
}
.custom-breadcrumb li {
  display: inline;
  font-size: 1rem;
}
.custom-breadcrumb li+li:before {
  padding: 8px;
  color: rgba(255,255,255,0.6);
  content: "/\00a0";
}
.custom-breadcrumb li a {
  color: rgba(255,255,255,0.8);
}
.custom-breadcrumb li a:hover {
  color: var(--white);
}
.custom-breadcrumb li.active {
  color: var(--gold);
}

/* =========================================
   18. Pagination
========================================= */
.pagination {
  margin-top: 30px;
  justify-content: center;
}
.page-item .page-link {
  color: var(--navy);
  border: none;
  margin: 0 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.page-item.active .page-link, .page-item .page-link:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
}

/* =========================================
   19. Search/Filter Bar
========================================= */
.search-filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.search-filter-bar .form-control, .search-filter-bar .form-select {
  border: 1px solid #e2e8f0;
  padding: 10px 15px;
  border-radius: 8px;
}
.search-filter-bar .form-control:focus, .search-filter-bar .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* =========================================
   22. Login Page
========================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg), var(--sky));
  padding: 40px 0;
}
.login-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(13, 36, 97, 0.1);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.login-image {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(rgba(13, 36, 97, 0.8), rgba(13, 36, 97, 0.8)), url('../img/school-bg.jpg') center/cover;
  padding: 50px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form-area {
  flex: 1;
  min-width: 300px;
  padding: 50px;
}
.login-form-area .logo {
  text-align: center;
  margin-bottom: 30px;
}
.login-form-area .logo img {
  height: 60px;
}
.form-floating > label {
  color: var(--text-muted);
}
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--blue);
}

/* =========================================
   21. Animations
========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes pulse-anim {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.pulse {
  animation: pulse-anim 2s infinite;
}

@keyframes shimmerAnim {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.shimmer {
  background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
  background-size: 1000px 100%;
  animation: shimmerAnim 2s infinite linear;
}

.counter-animated {
  /* Class to mark elements for JS counting */
}

/* =========================================
   30. Back to Top
========================================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
}

/* =========================================
   27. Responsive Breakpoints
========================================= */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.5rem; }
  .principal-card { flex-direction: column; text-align: center; }
  .principal-quote::before { left: 50%; transform: translateX(-50%); top: -20px; }
  .login-image { display: none; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .navbar-custom { padding: 10px 0; }
  .hero-section { min-height: 500px; }
  .hero-content h1 { font-size: 2rem; }
  .section-padding { padding: 50px 0; }
  .section-header h2 { font-size: 2rem; }
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item:nth-child(even) { left: 0%; }
  .timeline-item::after { left: 21px !important; }
}

@media (max-width: 576px) {
  .hero-content h1 { font-size: 1.75rem; }
  .login-form-area { padding: 30px 20px; }
  .stat-card h3 { font-size: 2rem; }
  .gallery-filter button { padding: 6px 15px; font-size: 0.9rem; }
}

/* =========================================
   30. Books & Lessons Dropdown & Card Styles
========================================= */
.books-dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(13, 36, 97, 0.16) !important;
  margin-top: 10px;
}

.books-dropdown-menu .dropdown-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
}

.books-dropdown-menu .dropdown-item:hover {
  background-color: #e3f2fd;
  color: #0d2461;
  transform: translateX(2px);
}

.books-dropdown-menu .dropdown-item.active {
  background-color: #1976d2 !important;
  color: #fff !important;
}

.hover-shadow {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(13, 36, 97, 0.12) !important;
}

@media (min-width: 992px) {
  .dropdown-hover:hover > .dropdown-menu {
    display: block;
    animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes navDropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .books-dropdown-menu {
    min-width: 100% !important;
    max-width: 100% !important;
    background: #ffffff;
  }
  .books-dropdown-menu .border-end {
    border-right: none !important;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

/* =========================================
   31. Modern Filter & Search Toolbar Styles
========================================= */
.filter-toolbar-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(13, 36, 97, 0.06);
  transition: all 0.3s ease;
}

.filter-toolbar-box:hover {
  box-shadow: 0 16px 40px rgba(13, 36, 97, 0.1);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.filter-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.filter-select {
  height: 52px;
  border-radius: 14px !important;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  padding-left: 16px;
  padding-right: 42px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.filter-select:focus {
  border-color: #1976d2;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
}

.filter-search-group .input-group {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.filter-search-group .input-group:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.filter-search-group .input-group:focus-within {
  border-color: #1976d2;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
}

.filter-search-icon {
  background: transparent !important;
  border: none !important;
  padding-left: 18px;
  padding-right: 6px;
  color: #94a3b8;
  font-size: 1rem;
}

.filter-search-input {
  height: 52px;
  border: none !important;
  background: transparent !important;
  font-size: 0.95rem;
  color: #1e293b;
  box-shadow: none !important;
}

.filter-search-input::placeholder {
  color: #94a3b8;
}

.filter-search-btn {
  height: 52px;
  padding: 0 28px;
  background: linear-gradient(135deg, #0d2461, #1976d2);
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.filter-search-btn:hover {
  background: linear-gradient(135deg, #091a47, #1565c0);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.15);
}

.filter-reset-link {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-reset-link:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}
.anti-screenshot-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: black;
    color: white;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
body.blur-overlay .anti-screenshot-overlay {
    display: flex;
}


