/* Import Noto Sans */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap');

/* Global Variables */
:root {
  --color-primary: #457d58;
  --color-secondary: #7d9b76;
  --color-bg: #f6f6e9;
  --font-family: 'Noto Sans', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: #333;
  scroll-behavior: smooth;
}

.bg-contrast {
    background-color: #cbddd1;
}

/* Navbar */
.navbar {
  background-color: var(--color-primary) !important;
}

.navbar .nav-link {
  color: #fff !important;
}

.navbar .nav-link:hover {
  color: var(--color-secondary) !important;
}

/* Hero Section */
#hero {
  position: relative; /* Required for overlay positioning */
  background: url('Piano-Play.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* Overlay */
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity (0.4 = 40% dark) */
  z-index: 0; /* Behind the content */
}

/* Make sure the container content is above overlay */
#hero .container {
  position: relative;
  z-index: 1;
}


#hero h1 { font-weight: 600; }

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: 20px;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
   border-radius: 20px;
}

/* Sections */
section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Cards */
/* Lesson Cards */
.lesson-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Lesson Cards Icons */
.lesson-card i {
  display: block;
  margin: 0 auto 15px;
  color: var(--color-primary); /* Primary color */
}
/* Price above button */
.lesson-price {
  font-size: 1.5rem;       /* Larger text */
  font-weight: 700;         /* Bold */
  color: var(--color-primary); /* Primary color */
  margin-bottom: 15px;
}

.text-primary {
    --bs-text-opacity: 1;
    color: #198754 !important;
}



/* About Section */
#about img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tabs Section */
#tabs .carousel-item {
  min-height: 400px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); /* White arrows on dark background */
}
/* Center indicators outside carousel */
#tabs .carousel-indicators {
  justify-content: center;
  margin-top: 20px;
}

#tabs .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.5;
  margin: 0 5px;
}

#tabs .carousel-indicators .active {
  opacity: 1;
}
#tabs .card {
  min-height: 400px;
  display: flex;
  justify-content: center;   /* centers vertically */
  align-items: center;       /* centers horizontally */
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#tabs .inner-div {
  max-width: 600px;
  margin: 0 auto;
  gap: 40px;
}
/* Mobile fixes */
@media (max-width: 1076px ) {

  /* Reduce text width so arrows don’t overlap */
  #tabs .inner-div {
    max-width: 85%;     /* previously 700px — now responsive */
    padding: 0 10px;    /* add breathing space */
  }

  /* Move arrows slightly outward */
  #tabs .carousel-control-prev,
  #tabs .carousel-control-next {
    width: 15%;          /* increases clickable area + pushes icon out */
  }

  /* Reduce icon size to prevent overlap */
  #tabs .carousel-control-prev-icon,
  #tabs .carousel-control-next-icon {
    transform: scale(0.7);
  }

  /* Optional: reduce card min-height for mobile */
  #tabs .card {
    min-height: 550px;
  }
}



/* FAQ Section Styling */

.faq-section {
  background-color: #f6f6e9;
}

/* Accordion styling */
.accordion-item {
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
}

/* Default button look */
.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  background-color: #ffffff;
  color: #000;
}

/* When accordion is open */
.accordion-button:not(.collapsed) {
  background-color: #387d51 !important;
  color: #fff !important;
  box-shadow: none;
}

/* Icon color fix */
.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(33%) sepia(16%) saturate(874%) hue-rotate(81deg) brightness(90%) contrast(85%);
}

/* Icon turns white when active */
.accordion-button:not(.collapsed)::after {
  filter: brightness(100);
}

/* Accordion body */
.accordion-body {
  background: #ffffff;
  line-height: 1.6;
  padding: 1.2rem;
}

/* Contact Form */
.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    background-color: #198754;
    border-color: var(--bs-btn-disabled-border-color);
    opacity: var(--bs-btn-disabled-opacity);
}


#contact form {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.1);
}

#formMessage {
  margin-top: 10px;
  font-weight: 600;
}

/* Responsive */
@media (max-width:768px){
  #hero h1 { font-size:2rem;}
}
