/* ========================================
   Public Website Styles - School Website
   ======================================== */

:root {
  --primary-color: #4f46e5;
  --secondary-color: #06b6d4;
  --accent-color: #ff7a18;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --slide-caption-color: #ffffff;
}

/* ========== Base Styles ========== */
body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  padding-top: 100px;
  line-height: 1.6;
  margin: 0;
}

main {
  padding-top: 0;
  margin-top: 0;
}

/* ========== Navbar ========== */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.04);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1055;
  transition: all 0.3s ease;
  margin: 0;
}

.navbar .container {
  max-width: 1320px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.navbar .nav-link {
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--primary-color);
}

.navbar .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark) !important;
}

/* ========== Hero Section ========== */
.hero {
  background: #4f46e5;
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: rgba(255,255,255,0.95);
  font-weight: 300;
  font-size: 1.15rem;
}

.hero-slider-fullpage {
  background: #4f46e5;
  padding: 2rem 0;
  min-height: auto;
}

.hero-content {
  padding: 2rem;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content .lead {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-media {
  padding: 2rem;
}

/* ========== Cards ========== */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Buttons ========== */
.btn {
  border-radius: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ffb199 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* ========== Carousel ========== */
.carousel-item img {
  max-height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.carousel-caption {
  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  max-width: 70%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2rem;
}

.carousel-caption h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slide-caption-color);
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  color: var(--slide-caption-color);
  opacity: 0.95;
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  margin: 0 0.3rem;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background: #fff;
  width: 12px;
  height: 12px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ========== Sections ========== */
.about-section {
  background: #fff;
  padding: 4rem 0;
  border-radius: 1rem;
  margin: 2rem 0;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.feature-card h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--accent-color) 0%, #3b66f3 100%);
  padding: 4rem 2rem;
  border-radius: 1rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ========== Footer ========== */
footer {
  background: var(--text-dark);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
}

/* ========== Modal ========== */
#searchModal {
  z-index: 2000;
}

#searchModal .modal-dialog {
  z-index: 2100;
}

.modal-backdrop.show {
  z-index: 1999 !important;
}

#searchModal .modal-content {
  box-shadow: var(--shadow-lg);
  border-radius: 1rem;
}

.dropdown-menu {
  z-index: 1200;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  border: none;
}

/* ========== Responsive ========== */
@media (max-width: 1399px) {
  .navbar .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 3rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-slider-fullpage {
    padding: 2.5rem 0;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-media {
    margin-top: 0.75rem !important;
    padding: 0 1rem !important;
  }
  
  .about-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-section h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .navbar {
    min-height: 56px;
    padding: 0.25rem 1rem;
  }
  
  .navbar-toggler {
    margin-right: 0.5rem;
    z-index: 1100;
  }
  
  .navbar-collapse {
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 1rem 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    z-index: 1051;
  }
  
  .navbar .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .navbar .btn {
    display: inline-block;
    width: auto;
    margin: 0.5rem 0.5rem 0.5rem 0;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-slider-fullpage {
    padding: 0;
  }
  
  .carousel-item img {
    max-height: 220px;
  }
  
  .carousel-caption {
    display: none;
  }
  
  #searchModal .modal-dialog {
    max-width: 98vw;
    margin: 0.5rem auto;
  }
}

/* ========== Icon Boxes ========== */
.icon-box {
  display: inline-block;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.hover-lift:hover .icon-circle {
  transform: scale(1.1);
}

/* Badge Subtle Colors */
.bg-primary-subtle {
  background-color: rgba(79, 70, 229, 0.1);
}

.bg-success-subtle {
  background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning-subtle {
  background-color: rgba(245, 158, 11, 0.1);
}

.bg-info-subtle {
  background-color: rgba(6, 182, 212, 0.1);
}

.text-success {
  color: #10b981 !important;
}

.text-warning {
  color: #f59e0b !important;
}

.text-info {
  color: #06b6d4 !important;
}

/* ========== Section Spacing ========== */
section {
  position: relative;
}

section.bg-white {
  background: #fff;
}

section.bg-light {
  background: var(--bg-light);
}

/* ========== Full Page Hero Slider (Old - Removed) ========== */

.hero-slider-fullpage .carousel {
  height: 100%;
}

.hero-slider-fullpage .carousel-inner,
.hero-slider-fullpage .carousel-item {
  height: 100%;
}

.hero-slider-fullpage .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.7) 0%, rgba(6, 182, 212, 0.6) 100%);
  z-index: 1;
}

.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  padding: 3rem 2rem;
}

.carousel-caption-custom h1 {
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 800;
}

.carousel-caption-custom p {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 1.4rem;
  font-weight: 300;
}

.carousel-caption-custom .btn {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-down-link {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down-link:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Slide Animations */
.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
}

.animation-delay-1 {
  animation-delay: 0.2s;
}

.animation-delay-2 {
  animation-delay: 0.4s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Controls for Full Page */
.hero-slider-fullpage .carousel-control-prev,
.hero-slider-fullpage .carousel-control-next {
  width: 70px;
  height: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.hero-slider-fullpage .carousel-control-prev {
  left: 2.5rem;
}

.hero-slider-fullpage .carousel-control-next {
  right: 2.5rem;
}

.hero-slider-fullpage .carousel-control-prev:hover,
.hero-slider-fullpage .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-fullpage .carousel-indicators {
  bottom: 5rem;
  z-index: 3;
}

.hero-slider-fullpage .carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  margin: 0 0.6rem;
  transition: all 0.3s ease;
}

.hero-slider-fullpage .carousel-indicators .active {
  background: #fff;
  width: 45px;
  border-radius: 7px;
}

/* Fallback Hero */
.hero-fallback {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 5rem 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-fallback h1 {
  color: #fff;
  font-size: 4rem;
}

.hero-fallback .lead {
  color: rgba(255,255,255,0.95);
  font-size: 1.4rem;
}

.min-vh-75 {
  min-height: 75vh;
}

/* Remove gap between navbar and hero */
.hero-slider-fullpage,
.hero-fallback {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

main > .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

main > .container > section:first-child {
  margin-top: 0 !important;
}

/* ========== Feature Cards Enhanced ========== */
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
  transform: translateY(-5px);
}

.feature-card h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* ========== Utilities ========== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

.rounded-custom {
  border-radius: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .display-5 {
    font-size: 2rem;
  }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========== Print Styles ========== */
@media print {
  .navbar,
  .btn,
  footer,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none !important;
  }
  
  body {
    padding-top: 0;
  }
}
