/* Custom CSS for New Jharna English Secondary School */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Color Variables */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --white: #ffffff;
}

/* Header Styles */
.header-top {
  font-size: 14px;
}

.contact-info i {
  color: #ffc107;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Navigation Styles */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand h4 {
  color: var(--primary-color);
  margin: 0;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.85), rgba(40, 167, 69, 0.75));
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-content {
  max-width: 100%;
  padding: 2rem 0;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Stats */
.hero-stats {
  margin: 2rem 0;
}

.hero-stats .stat-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.hero-stats .stat-item h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-stats .stat-item small {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  opacity: 0.9;
  font-weight: 500;
}

/* Hero Buttons */
.hero-buttons {
  margin-top: 2rem;
}

.hero-buttons .btn {
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 2vw, 1rem);
  border-radius: 8px;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Achievement Badges */
.achievement-badges {
  margin: 1.5rem 0;
}

.achievement-badges .badge {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
}

/* Facility Highlights */
.facility-highlights {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0;
}

.facility-highlights .row > div {
  margin-bottom: 0.5rem;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Quick Info Bar */
.quick-info-bar {
  background: linear-gradient(135deg, #2c5aa0, #1e3d6f) !important;
  padding: 1rem 0;
}

.quick-info-bar .col-lg-3 {
  margin-bottom: 1rem;
}

.quick-info-bar small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.quick-info-bar .fw-bold {
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Welcome Section */
.welcome-content {
  padding: 2rem 0;
}

.welcome-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.welcome-features .feature-item {
  padding: 0.5rem 0;
}

.welcome-buttons {
  margin-top: 2rem;
}

.welcome-buttons .btn {
  margin: 0.5rem 0.5rem 0.5rem 0;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  padding: 2rem 1rem;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon .icon-circle {
  transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
  transform: scale(1.1);
}

/* Notice Cards */
.notice-card {
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.notice-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

/* Event Cards */
.event-card {
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-img {
  transition: all 0.3s ease;
}

.gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-hover {
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-hover i {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
  background-size: cover;
}

.breadcrumb-item a {
  text-decoration: none;
}

/* Achievement Cards */
.achievement-card {
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Vision Mission Cards */
.vision-mission-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vision-mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.vision-mission-card:hover::before {
  left: 100%;
}

/* Academic Level Cards */
.academic-level-card {
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.academic-level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Why Choose Items */
.why-choose-item {
  transition: all 0.3s ease;
}

.why-choose-item:hover {
  transform: translateX(10px);
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 90, 160, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  position: relative;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Contact Info Cards */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sidebar Widgets */
.sidebar-widget {
  transition: all 0.3s ease;
}

.sidebar-widget:hover {
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--accent-color) !important;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1e3d6f;
  border-color: #1e3d6f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* CTA Section */
.cta-content h3 {
  position: relative;
}

.cta-content h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ffc107;
  border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-slide {
    height: 90vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 1.5rem 0;
  }
}

@media (max-width: 992px) {
  .hero-slide {
    height: 80vh;
    min-height: 450px;
  }

  .hero-stats .row {
    margin: 0 -0.5rem;
  }

  .hero-stats .col-md-3 {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
  }

  .hero-stats .stat-item {
    padding: 0.75rem 0.5rem;
  }

  .facility-highlights .col-md-6 {
    margin-bottom: 0.75rem;
  }

  .quick-info-bar .col-lg-3 {
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    height: 70vh;
    min-height: 400px;
  }

  .hero-overlay {
    padding: 1rem 0;
  }

  .hero-content {
    padding: 1rem 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    margin: 1.5rem 0;
  }

  .hero-stats .col-md-3,
  .hero-stats .col-6 {
    margin-bottom: 1rem;
  }

  .hero-stats .stat-item {
    padding: 1rem 0.5rem;
  }

  .hero-stats .stat-item h3 {
    font-size: 1.5rem;
  }

  .hero-stats .stat-item small {
    font-size: 0.75rem;
  }

  .achievement-badges {
    text-align: center;
    margin: 1rem 0;
  }

  .achievement-badges .badge {
    display: inline-block;
    margin: 0.25rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .facility-highlights {
    padding: 1rem;
    margin: 1rem 0;
  }

  .facility-highlights .col-md-6 {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
  }

  .hero-buttons {
    margin-top: 1.5rem;
    text-align: center;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .welcome-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .feature-card,
  .achievement-card,
  .academic-level-card {
    margin-bottom: 2rem;
  }

  .navbar-nav .nav-link {
    margin: 0.2rem 0;
  }

  .quick-info-bar {
    padding: 1.5rem 0;
  }

  .quick-info-bar .col-lg-3 {
    margin-bottom: 1rem;
  }

  .welcome-content {
    padding: 1rem 0;
    text-align: center;
  }

  .welcome-features .row {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .hero-slide {
    height: 60vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-content .lead {
    font-size: 0.9rem;
  }

  .hero-stats .stat-item {
    padding: 0.75rem 0.25rem;
  }

  .hero-stats .stat-item h3 {
    font-size: 1.25rem;
  }

  .hero-stats .stat-item small {
    font-size: 0.7rem;
  }

  .achievement-badges .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .facility-highlights {
    padding: 0.75rem;
  }

  .facility-highlights .col-md-6 {
    font-size: 0.8rem;
  }

  .hero-buttons .btn {
    font-size: 0.85rem;
    padding: 10px 15px;
  }

  .container {
    padding: 0 15px;
  }

  .py-5 {
    padding: 3rem 0 !important;
  }

  .display-4 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1rem;
  }

  .quick-info-bar .fw-bold {
    font-size: 0.85rem;
  }

  .quick-info-bar small {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .hero-slide {
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content .lead {
    font-size: 0.85rem;
  }

  .hero-stats .stat-item h3 {
    font-size: 1.1rem;
  }

  .hero-stats .stat-item small {
    font-size: 0.65rem;
  }

  .facility-highlights .col-md-6 {
    font-size: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section,
  footer,
  .btn,
  .social-links {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .gallery-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3d6f;
}
