/* ========================================
   BOKU SCHOOL - MODERN DESIGN CSS
   ======================================== */

:root {
  --primary-color: #0d6efd;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-muted: #6c757d;
  --border-radius: 10px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========== GENERAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  line-height: 1.8;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans Devanagari', 'Playfair Display', serif;
  color: #1a1a1a;
}

p {
  color: #555;
}

/* ========== NAVBAR ========== */
.navbar {
  background: linear-gradient(135deg, #0d6efd 0%, #0654d4 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffc107 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== HERO SECTION ========== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/school.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.8s ease;
}

.hero-section .lead {
  color: #f0f0f0;
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.8s ease;
}

.hero-section .btn {
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
}

.hero-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== HIGHLIGHTS SECTION ========== */
.highlights {
  background: white;
  padding: 60px 0;
}

.highlight-card {
  padding: 30px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.highlight-card i {
  transition: all 0.3s ease;
}

.highlight-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
  background: white;
  padding: 60px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(0.8);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 110, 253, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h5 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

/* ========== EVENTS SECTION ========== */
.events-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 60px 0;
}

.event-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.08);
}

.event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #0d6efd, #0654d4);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-content {
  background: white;
}

.event-content h5 {
  color: #1a1a1a;
  margin-bottom: 10px;
}

.event-content p {
  font-size: 0.95rem;
}

/* ========== INFRASTRUCTURE SECTION ========== */
.infrastructure-section {
  background: white;
  padding: 60px 0;
}

.infrastructure-section img {
  border-radius: var(--border-radius);
  animation: slideInLeft 0.8s ease;
}

.infrastructure-section h3 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.infrastructure-section ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.infrastructure-section ul li i {
  color: var(--success-color);
  font-size: 1.2rem;
}

/* ========== FACILITY GALLERY ========== */
.facility-gallery-item {
  transition: all 0.3s ease;
  padding: 10px;
}

.facility-gallery-item img {
  transition: all 0.3s ease;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.facility-gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.facility-gallery-item h6 {
  font-size: 1.1rem;
  color: #1a1a1a;
}

.facility-gallery-item:hover h6 {
  color: var(--primary-color);
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #198754);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
}

.feature-card h6 {
  color: #1a1a1a;
  font-size: 1.1rem;
}

/* ========== ABOUT PREVIEW SECTION ========== */
.about-preview {
  padding: 80px 0;
  background: white;
}

.about-preview img {
  border-radius: var(--border-radius);
  animation: slideInLeft 0.8s ease;
}

.about-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: slideInRight 0.8s ease;
}

.about-preview ul li {
  font-size: 1.1rem;
  animation: fadeInUp 0.8s ease;
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.page-header h1 {
  color: white;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* ========== CARDS ========== */
.card {
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.card-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  padding: 1.5rem;
  font-weight: 600;
}

/* ========== FORMS ========== */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

.form-label {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-check-input {
  border-radius: 4px;
  width: 1.25em;
  height: 1.25em;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ========== BUTTONS ========== */
.btn {
  border-radius: var(--border-radius);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0654d4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #198754, #137547);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: #333 !important;
}

.btn-warning:hover {
  color: #333 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.btn-light {
  background: white;
  color: #333;
  border: 2px solid white;
}

.btn-light:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  color: #fff;
}

footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer p {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.8;
}

footer a {
  color: #ddd;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #ffc107;
  text-decoration: none;
  padding-left: 5px;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== ANIMATIONS ========== */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1.2rem;
  }

  .navbar-brand {
    font-size: 1.2rem !important;
  }

  .features-section {
    padding: 40px 0;
  }

  .about-preview {
    padding: 40px 0;
  }

  .about-preview h2 {
    font-size: 1.8rem;
    margin-top: 20px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .highlight-card,
  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-section .btn {
    width: 100%;
    margin: 0.5rem 0;
  }

  .page-header {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .cta-section {
    padding: 40px 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }
}

/* ========== UTILITY CLASSES ========== */
.hover-link:hover {
  color: #ffc107 !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
  box-shadow: var(--box-shadow) !important;
}

/* ========== ACCESSIBILITY ========== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

.btn:focus,
a:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}
