/* Modern UI Overhaul for The Chandrasheel School Website - v1 */

/* Global Styles */
body {
  font-family: 'Work Sans', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Bold Header Styling */
header {
  background: linear-gradient(to right, #fff, #fff9e6) !important;
  border-bottom: 4px solid #fad03d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Logo */
#logo {
  border: 3px solid #fad03d;
  border-radius: 10px;
  padding: 2px;
  transition: all 0.3s ease;
}

/* Navigation Links */
.navbar-nav .nav-link {
  font-weight: 600;
  color: #333 !important;
  padding: 10px 15px !important;
  margin: 0 5px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-item.active .nav-link {
  background-color: #fad03d;
  color: #333 !important;
  transform: translateY(-3px);
}

/* Enhanced Buttons */
.btn {
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: #fad03d !important;
  border-color: #fad03d !important;
  color: #333 !important;
  box-shadow: 0 6px 15px rgba(250, 208, 61, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(250, 208, 61, 0.6);
}

/* Enhanced Card Service */
.card-service {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #fad03d;
  background: linear-gradient(to bottom, #fff, #fafafa);
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 25px 15px !important;
  transition: all 0.3s ease;
}

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

.card-service .header img {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.card-service:hover .header img {
  transform: scale(1.05);
}

/* Enhanced Features */
.features {
  padding: 30px;
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
  border-left: 4px solid #fad03d;
}

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

.features .header {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background-color: #fff;
  color: #fad03d;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.features:hover .header {
  transform: scale(1.1);
  background-color: #fad03d;
  color: #fff;
}

/* Enhanced Home Banner */
.home-banner {
  border-radius: 0 0 50px 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.home-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(250, 208, 61, 0.7), rgba(255, 61, 133, 0.3));
  z-index: 0;
}

.home-banner h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home-banner img {
  border: 8px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: -0.3px;
}

.title-section {
  position: relative;
  margin-bottom: 30px;
  font-weight: 800;
}

.title-section::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #fad03d;
  border-radius: 10px;
}

/* Section Styling */
.page-section {
  padding: 70px 0;
}

.page-section:nth-child(even) {
  background-color: #f5f5f5;
}

/* Enhanced Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #fad03d;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top::after {
  content: '↑';
  font-weight: bold;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #f5c000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
