/* ===========================
   Root Variables & Typography
=========================== */
:root {
  --body-color: #F2F9FF;
  --primary-color: #FFCFEF;
  --button-color: #FFCFEF;
  --secondary-color: #0A97B0;
  --text-color: #333333;
  --white-color: #FFFFFF;

  --blue1: #00b4d8;
  --blue2: #00b4d8;
  --blue3: #00b4d8;
  --blue4: #48cae4;
  --blue5: #90e0ef;
  --blue6: #ade8f4;
  --blue7: #caf0f8;
}

/* ===========================
   Font & Base Element Settings
=========================== */
*:not(i):not([class*="fa"]):not(.fas):not(.far):not(.fab) {
  font-family: 'Rasa', serif !important;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rasa', serif;
  background: var(--body-color);
  color: black;
  line-height: 1.6;
  padding: 0 1rem;
}


/* ===========================
   Headings
=========================== */
h1, h2, h3, h4 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--blue1);
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin: 7px;
}

/* ===========================
    Header & Layout
=========================== */
.header-container {
    display: flex;
    align-items: right;
    justify-content: right;
    position: relative;
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    color: white;
    padding: 1.5rem;
    margin: 0.2rem auto;
    border-radius: 24px;
    max-width: 1400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

/* Shine overlay (Unchanged) */
.header-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 2s ease-out forwards;
    z-index: 2;
    pointer-events: none;
}
.header-container a {
    text-decoration: none;
}
/* Shine animation keyframes (Unchanged) */
@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.section-heading.fancy {
    /* CHANGE: Further increased the font size. */
    font-size: clamp(1.2rem, 6vw, 2.5rem);
    
    /* NEW: Added a small amount of horizontal padding. */
    padding: 0 1rem;

    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: right;
    z-index: 3;
}

/* ===========================
language toggle Buttons
=========================== */
.lang-toggle { text-align: center; padding: 10px 0; }
.lang-toggle a { display: inline-block; padding: 8px 16px; margin: 0 5px; border: 1px solid var(--primary-color); border-radius: 20px; color: var(--text-color); text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.lang-toggle a.active, .lang-toggle a:hover { background-color: var(--primary-color); color: black; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
/* ===========================
    Buttons
=========================== */
.home-button {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3; 
}

.button1 {
    background: var(--white-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* CHANGE: Further increased button size for a bigger tap area. */
    width: 70px;
    height: 70px;
    
    padding: 0;
    border-radius: 50%;
    
    /* CHANGE: Further increased icon size. */
    font-size: 2.2rem;
}

.button1:hover {
    background: var(--button-color);
    color: var(--text-color);
    transform: scale(1.1);
}

.button, .btn-primary {
  background: var(--primary-color);
  color: black;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button:hover, .btn-primary:hover {
  background: var(--secondary-color);
  color: var(--text-color);
  transform: translateY(-2px);
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
/* ===========================
   Custom Buttons - Teacher Style
=========================== */

/* Container for index page */
.index_button_container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px auto;
}

/* Wrapper to align buttons in a column */
.button-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 1rem;
  align-items: center;
}

/* ===========================
   Base Button Styles
=========================== */

.curtain-btn {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
  font-size: 1.5rem !important;
  font-family: 'Rasa', serif;
  margin: 0 auto 5px;
  border: none;
  text-decoration: none;
  color: black;
  background-color: var(--white-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: block; /* default */
  padding: 15px;
  text-align: center;
}

/* Only curtain-btn has inline-flex and adjusted padding */
.curtain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
}

/* ===========================
   Hover & Animation Effects
=========================== */
.custom-button::before,
.curtain-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 1;
}

.custom-button:hover::before,
.curtain-btn:hover::before {
  width: 100%;
  opacity: 0.1;
}

.custom-button:hover,
.curtain-btn:hover {
  transform: translateY(-3px);
  color: black;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Make sure inner content is above ::before */
.custom-button > *,
.curtain-btn > * {
  position: relative;
  z-index: 2;
}

/* ===========================
   Color Variants
=========================== */
.pink {
  background-color: var(--primary-color);
  color: #fff;
}

.blue {
  background-color: var(--secondary-color);
  color: #fff;
}

.highlight-text {
  background-color: yellow;
  color: black;
}

.highlight-textbk {
  background-color: white;
  color: black;
}

/* ===========================
   Curtain Expandable Section
=========================== */
.curtain-content {
  display: none;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.curtain-content .custom-button {
  margin-bottom: 15px;
}
/* ===========================
   Icon and Text Styling Inside Buttons
=========================== */

.custom-button {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align content to the left */
  padding: 14px 22px;
  border-radius: 12px;
  background-color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-family: 'Rasa', serif;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 10px;
  color: black;
}

/* Flex wrapper inside button */
.custom-button .content-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align content to the left */
  gap: 10px; /* slight gap between icon/divider/text */
}

/* Icon styling */
.custom-button .icon-part,
.custom-button .icon-part-curtain {
  font-size: 1.5rem !important;
  color: #0A97B0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pink curtain icon override */
.custom-button .icon-part-curtain {
  color: #ffbadf;
}

/* Divider */
.custom-button .divider {
  width: 1px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 0 8px;
}

/* Text part left aligned */
.custom-button .text-part {
  font-size: 1.5rem !important;
  color: #333;
  font-family: 'Rasa', serif;
  white-space: nowrap;
  text-align: left; /* Ensure text is left aligned */
}

/* On hover icon color change */
.custom-button:hover .icon-part,
.custom-button:hover .icon-part-curtain {
  color: #0A97B0;
}

/* 📱 Responsive: Full width on small screens */
@media (max-width: 600px) {
  .custom-button,
  .curtain-btn {
    max-width: 100%;
  }
}

/* ===========================
   Responsive Adjustments
=========================== */
@media screen and (max-width: 991px) {


  .custom-button, .curtain-btn {
    font-size: 1.2rem;
    padding: 12px;
  }
}

@media screen and (max-width: 600px) {
  body {
    padding: 0 0.5rem;
  }



  .button-wrapper {
    width: 100%;
    padding: 0;
  }

  .custom-button, .curtain-btn {
    width: 95%;
    font-size: 1rem;
    padding: 12px;
  }


}
