/* School Website Stylesheet - Optimized Navy & Orange Theme with Bootstrap */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --primary: #0a3d62;
  --primary-dark: #072f4b;
  --primary-darker: #051f33;
  --primary-darkest: #041525;
  --accent: #e67e22;
  --accent-dark: #d35400;
}

/* Base Overrides - Minimal custom styling needed */
body {
  font-family: 'Roboto', sans-serif;
  color: #444;
}

/* Custom Button Styling */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

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

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

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

/* Section Styling */
.divider {
  height: 4px;
  width: 70px;
  background-color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Header & Navigation */
.top-bar {
  background-color: var(--primary);
  color: white;
  font-size: 0.9rem;
}

.social-links a {
  color: white;
  margin-left: 15px;
}

.social-links a:hover {
  color: var(--accent);
}

.header {
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s ease;
}

.header.sticky {
  padding: 8px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Logo */
.logo img {
  height: 60px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.sticky .logo img {
  height: 45px;
}

/* Logo tagline - Making Excellence in Education orange */
.logo-tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Navigation items - Using Bootstrap with minimal overrides */
.navbar-nav .nav-link {
  font-weight: 500;
  border-radius: 6px;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
  background-color: rgba(10, 61, 98, 0.06);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: var(--primary);
  background-color: rgba(10, 61, 98, 0.1);
  font-weight: 600;
}

.navbar-nav .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 5px;
}

/* Apply now button */
.btn-nav {
  background-color: var(--accent);
  color: white !important;
  border-radius: 50px !important;
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
  font-weight: 600 !important;
}

.btn-nav:hover {
  background-color: var(--accent-dark) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* Pulse animation for Apply Now button */
.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
  }
}

/* Counter Section */
.counter-section {
  background-color: var(--primary);
  color: white;
}

.counter-item i {
  font-size: 2.5rem;
  color: var(--accent);
}

.counter-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Programs Section - Enhanced styling */
.programs-section {
  background-color: #f8f9fa;
  padding: 70px 0;
}

.programs-section .section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.programs-section .section-title p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Enhanced Program Tabs */
.programs-tabs .nav-pills {
  border-radius: 50px;
  display: inline-flex;
  padding: 5px;
  background-color: rgba(10, 61, 98, 0.05);
  margin-bottom: 40px !important;
}

.programs-tabs .nav-pills .nav-link {
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
  margin: 0 5px;
}

.programs-tabs .nav-pills .nav-link.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(10, 61, 98, 0.2);
}

.programs-tabs .nav-pills .nav-link:not(.active):hover {
  background-color: rgba(10, 61, 98, 0.1);
  transform: translateY(-2px);
}

/* Program Content Styling */
.program-image {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.program-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.program-image:hover img {
  transform: scale(1.05);
}

.program-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.program-content {
  padding: 20px 0;
}

.program-content h3 {
  color: var(--primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.program-content h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
}

.program-content .lead {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.program-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.program-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.program-features li {
  padding: 8px 0;
  position: relative;
}

.program-features li i {
  color: var(--accent);
  margin-right: 10px;
}

.animated-btn {
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 600;
}

.animated-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Programs Card */
.program-card {
  transition: all 0.3s ease;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.program-image {
  overflow: hidden;
  height: 220px;
}

.program-image img {
  transition: all 0.3s ease;
  object-fit: cover;
  height: 100%;
}

.program-card:hover .program-image img {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
}

.footer-top {
  background-color: var(--primary-darker);
}

.footer-widget h4 {
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-social a {
  color: white;
  margin-right: 15px;
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-links li a {
  color: #ddd;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p i {
  color: var(--accent);
  margin-right: 10px;
}

.footer-bottom {
  background-color: var(--primary-darkest);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-dark);
}

/* Experience Badge */
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: white;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 12px;
  text-align: center;
}

/* Mobile Optimization CSS - Nalanda High School */

/* Base Mobile Overrides (Tablets & Mobile) */
@media (max-width: 991px) {
  /* Navigation improvements */
  .navbar-toggler {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 10px;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    padding: 10px;
    margin-top: 10px;
  }
  
  .nav-item {
    margin: 5px 0;
  }
  
  .btn-nav {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  
  /* Logo adjustments */
  .logo img {
    height: 50px;
  }
  
  .logo-text .school-name h4 {
    font-size: 18px;
  }
  
  .logo-tagline {
    font-size: 12px;
  }
  
  /* Dropdown improvements */
  .navbar-nav .nav-link.active:after {
    display: none;
  }
  
  .dropdown-menu {
    width: 100%;
    border: none;
    background-color: rgba(10, 61, 98, 0.05);
    box-shadow: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
  }
  
  .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
  }
  
  /* Touch-friendly improvements */
  .nav-link, .dropdown-item, .footer-links li a {
    padding: 12px 15px;
  }
  
  /* Program tabs adjustments */
  .programs-tabs .nav-pills {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .programs-tabs .nav-pills .nav-link {
    margin-bottom: 10px;
  }
  
  .program-image {
    height: 300px;
    margin-bottom: 30px;
  }
  
  /* Footer adjustments */
  .footer-contact p {
    padding: 8px 0;
  }
  
  /* Form elements optimization */
  input, select, textarea, button {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 12px !important;
  }
}

/* Small devices (landscape phones and smaller) */
@media (max-width: 767px) {
  /* Top bar adjustments */
  .top-bar .row {
    flex-direction: column;
  }
  
  .top-bar .contact-info {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .top-bar .social-links {
    text-align: center;
    margin-top: 5px;
  }
  
  .contact-info span {
    display: block;
    margin: 5px 0;
  }
  
  /* Programs section adjustments */
  .programs-tabs .nav-pills .nav-link {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .program-content h3 {
    margin-top: 20px;
  }
  
  /* Footer adjustments */
  .footer-widget {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-widget h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-social {
    justify-content: center;
    display: flex;
  }
  
  .footer-links li a {
    text-align: center;
    padding-left: 0 !important;
  }
  
  .footer-links li a i {
    position: static !important;
    margin-right: 5px;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-bottom .row div {
    text-align: center !important;
  }
  
  .footer-bottom .row div:first-child {
    margin-bottom: 10px;
  }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575px) {
  /* Header adjustments */
  .logo img {
    height: 40px;
  }
  
  /* Apply now button adjustment */
  .btn-nav {
    font-size: 14px;
    padding: 8px 15px;
  }
  
  /* Counter section adjustments */
  .counter-item {
    margin-bottom: 20px;
  }
  
  .counter-item h3 {
    font-size: 2rem;
  }
  
  /* Back to top button adjustment */
  .back-to-top {
    width: 35px;
    height: 35px;
    bottom: 15px;
    right: 15px;
  }
  
  /* Program card adjustments */
  .program-card {
    margin-bottom: 20px;
  }
  
  .program-image {
    height: 200px;
  }
  
  /* Additional spacing adjustments */
  .section-title h2 {
    font-size: 1.8rem !important;
  }
  
  .section-title p {
    font-size: 1rem !important;
  }
}

/* Special breakpoint for very small devices */
@media (max-width: 360px) {
  /* Logo minimal display */
  .logo img {
    height: 35px;
  }
  
  .logo-text .school-name h4 {
    font-size: 14px;
  }
  
  .logo-tagline {
    font-size: 10px;
  }
  
  /* Contact info styling */
  .contact-info span {
    font-size: 12px;
  }
  
  /* Footer contact info */
  .footer-contact p {
    font-size: 13px;
  }
  
  /* Adjust social icons */
  .footer-social a {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  /* Logo adjustments for tablets */
  .logo-text .school-name h4 {
    font-size: 20px;
  }
  
  /* Navigation spacing on tablets */
  .navbar-nav .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  /* Program cards on tablets */
  .program-image {
    height: 180px;
  }
  
  /* Footer widgets on tablets */
  .footer-widget {
    margin-bottom: 0;
  }
}
