:root {
  --primary: #3a46b0;
  --primary-dark: #2a3694;
  --secondary: #ff7e4c;
  --secondary-light: #ffa380;
  --dark: #2b2d42;
  --light: #f8f9fa;
  --gray: #8d99ae;
  --white: #ffffff;
  --success: #57cc99;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
  text-transform: capitalize;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-light);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Header & Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  margin-right: 0.5rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: var(--dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
  transition: all 0.3s ease;
}

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

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

.nav-link.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--dark);
}

/* Hero Section */
.hero {
  padding-top: 100px;
  background: linear-gradient(135deg, rgba(58, 70, 176, 0.1) 0%, rgba(255, 126, 76, 0.1) 100%);
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-text {
  flex: 1;
  padding-right: 2rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  padding-left: 2rem;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Stats Section */
.stats {
  background-color: var(--white);
  padding: 3rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: -100px;
  margin-bottom: 5rem;
  border-radius: 10px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-number span {
  font-size: 2.5rem;
  line-height: 1;
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Toppers Section */
.toppers {
  background-color: var(--light);
  padding: 5rem 0;
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.topper-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.topper-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.topper-info {
  padding: 1.5rem;
  text-align: center;
}

.topper-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.topper-score {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--success);
}

/* Why Join Bala Section */
.whyjoinbala {
  background-color: var(--light);
  padding: 5rem 0;
}

.whyjoinbala-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.whyjoinbala-item {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.whyjoinbala-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.whyjoinbala-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.whyjoinbala-description {
  font-size: 1rem;
  color: var(--gray);
}

.stu-par {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.stu, .par {
  width: 40%;
  background-color: var(--light);
  border-radius: 10px;
}

.sL {
  color: #2a3694;
  background-color: rgb(225, 225, 0);
  font-weight: 700;
  border-radius: 20px;
  text-align: center;
}

.stu ul, .par ul {
  width: 90%;
  margin: 0 auto;
  list-style: "✅";
}

.stu li, .par li {
  margin-top: 10px;
}

/* Footer Section */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 5rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 80px;
}

.footer-about {
  margin-bottom: 1.5rem;
  color: #b2b7c9;
}

.footer-title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: #b2b7c9;
  transition: all 0.3s ease;
}

.footer-link a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #b2b7c9;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--secondary);
  min-width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-5px);
}

.map-container {
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b2b7c9;
  font-size: 0.9rem;
}

/* Float Social */
.float-social {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.float-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.float-social a:hover {
  transform: translateX(-5px);
  background-color: var(--secondary);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-image {
    padding-left: 0;
  }
  
  .stats {
    margin-top: 0;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media screen and (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .topper-card {
    max-width: 250px;
    margin: 0 auto;
  }
  
  .footer-container {
    gap: 2rem;
  }
}

/* Responsive Styles for Why Join Bala Section */
@media screen and (max-width: 991px) {
  .whyjoinbala-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .whyjoinbala-container {
    grid-template-columns: 1fr;
  }

  .whyjoinbala-item {
    padding: 1.5rem;
  }

  .whyjoinbala-title {
    font-size: 1.3rem;
  }

  .whyjoinbala-description {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {
  .whyjoinbala-item {
    padding: 1rem;
  }

  .whyjoinbala-title {
    font-size: 1.1rem;
  }

  .whyjoinbala-description {
    font-size: 0.8rem;
  }
}

/* Responsive Styles for Stu-Par Section */
@media screen and (max-width: 991px) {
  .stu-par {
    flex-direction: column;
    align-items: center;
  }

  .stu, .par {
    width: 80%;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .stu, .par {
    width: 90%;
  }
}

@media screen and (max-width: 576px) {
  .stu, .par {
    width: 100%;
  }
}

/* Final Call Section */
.final-call {
  background-color: crimson;
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  border-radius: 150px;
  margin-top: 30px;
  margin-bottom: 80px;
}

.final-call p {
  width: 80%;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  
}
.final-call-call{
  color: #25d366;
  display: block;
}

/* Responsive Styles for Final Call Section */
@media screen and (max-width: 991px) {
  .final-call {
    padding: 1.5rem 0;
  }

  .final-call p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .final-call {
    padding: 1rem 0;
    margin-bottom: 50px;
    border-radius: 50px;
  }

  .final-call p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {
  .final-call {
    padding: 0.75rem 1rem;
    margin-bottom: 30px;
    border-radius: 30px;
  }

  .final-call p {
    font-size: 0.8rem;
  }
}

/* Responsive Styles for Hero Section */
@media screen and (max-width: 991px) {
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .hero-image {
    padding-left: 0;
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-btns {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .hero-content {
    flex-direction: column-reverse;
  }
    .hero-image {
      margin-bottom: 2rem;
    }
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }
}

/* Study Material Section */
.study-material {
    margin-top: 30px;
  background-color: var(--light);
  padding: 5rem 0;
}

.study-material-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.study-material-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--dark);
}

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

.study-material-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 1rem;
}

.study-material-item span {
  font-size: 1.2rem;
  font-weight: 600;
}
