


/* Navigation Bar events */


/* Navigation Bar home-achevments-emergency-learnandrise*/
    nav {
     background-color: #ffbcbc;
      overflow: hidden;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 30px;
    }

    .logo {
      font-size: 22px;
      font-weight: bold;
      color: #8a4f4f;
      letter-spacing: 1px;
    }

    .nav-links {
      display: flex;
      gap: 25px;
    }

    .nav-links a {
      color:  #8a4f4f;
      text-decoration: none;
      font-weight: bold;
      padding: 14px 10px;
    }

    .nav-links a:hover {
      background-color: #fff0f0;
      border-radius: 8px;
    }

/* from index */
     .login-container {
      max-width: 400px;
      margin: 100px auto;
      background-color: rgba(255, 255, 255, 0.95);
      border-radius: 20px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      padding: 40px;
      text-align: center;
      animation: fadeInUp 1s ease;
    }

    .login-container h2 {
      color: #8a4f4f;
      margin-bottom: 30px;
    }

    .login-container input {
      width: 100%;
      padding: 12px;
      margin-bottom: 20px;
      border: 1px solid #d6bde9;
      border-radius: 10px;
      font-size: 1em;
      background-color: #fff0f0;
    }

    .login-container button {
      background-color: #ffbcbc;
      color: #5a2d2d;
      border: none;
      padding: 12px 30px;
      border-radius: 10px;
      font-size: 1em;
      cursor: pointer;
      transition: 0.3s;
    }

    .login-container button:hover {
      background-color: #ffbcbc;
    }

/* from home */
/* Slideshow */
    .slideshow-container {
      position: relative;
      width: 100%;
      height: 550px;
      margin: 0;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .slide {
      display: none;
      height: 100%;
      position: relative;
    }

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(88%) saturate(105%);
      transition: transform 0.6s ease;
    }

    .slide:hover img {
      transform: scale(1.03);
    }

    .slide .hero-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #4A0A0A;
      font-size: 28px;
      font-weight: bold;
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
      background-color: rgba(255, 188, 188, 0.25);
      padding: 12px 24px;
      border-radius: 12px;
      width: 80%;
      text-align: center;
    }
/* Dots */
    .dots-container {
      text-align: center;
      margin-top: 15px;
    }

    .dot {
      height: 15px;
      width: 15px;
      margin: 0 5px;
      background-color: #fff0f0;
      border-radius: 50%;
      display: inline-block;
      cursor: pointer;
      transition: background-color 0.6s ease;
    }

    .active-dot {
      background-color: #fff0f0;
    }

/* Explore More Resources */
    .featured {
      padding: 40px 20px;
      text-align: center;
    }

    .featured h2 {
      color: #4A0A0A;
      margin-bottom: 10px;
    }

    .featured p {
      color: #4A0A0A;
      max-width: 700px;
      margin: 0 auto 25px;
      line-height: 1.6;
      font-size: 16px;
    }

    .links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 25px;
      margin-top: 20px;
    }

    .link-item {
      background: white;
      border-radius: 12px;
      padding: 20px 30px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 15px;
      text-decoration: none;
      color: #4A0A0A;
      transition: transform 0.2s, box-shadow 0.2s;
      font-weight: bold;
      min-width: 220px;
    }

    .link-item i {
      font-size: 26px;
      color: #a678de;
    }

	
/* from events */
/* Modal */
.modal {
  display: none; 
  position: fixed; 
  z-index: 999; 
  padding-top: 100px; 
  left: 0; top: 0; width: 100%; height: 100%; overflow: auto; 
  background-color: rgba(0,0,0,0.6);
}
.modal-content {
  background-color: #fffdf9; 
  margin: auto; 
  padding: 20px; 
  border-radius: 16px; 
  width: 80%; 
  max-width: 500px;
  text-align: center;
}
.modal-content img {
   max-width: 100%;
   border-radius: 12px;
   margin-bottom: 15px;}
.close {
   color:#8a4f4f;
   float:right;
   font-size:28px;
   font-weight:bold;
   cursor:pointer;}
.close:hover {
   color:#ffbcbc; }


/* from achevments*/
    /* Video Section (separate from quiz) */
    
    /* Quiz Section */
    .quiz-section {
      max-width: 750px;
      margin: 60px auto;
      background-color: #ffbcbc;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      padding: 35px;
      text-align: center;
    }
    .quiz-section h2 {
      color: #8a4f4f;
      font-size: 26px;
      margin-bottom: 20px;
    }
    .question {
      font-size: 18px;
      color: #8a4f4f;
      margin-top: 25px;
      margin-bottom: 10px;
    }
    .options {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
    }
    .option-btn {
      background-color: #fff0f0;
      border: 1px solid #d8b6f1;
      color: #8a4f4f;
      border-radius: 10px;
      padding: 10px 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .option-btn:hover, .option-btn.selected {
      background-color: #fff0f0;
      transform: scale(1.05);
    }

    .next-btn {
      margin-top: 25px;
      background-color: #fff0f0;
      color: #8a4f4f;
      padding: 10px 25px;
      border: none;
      border-radius: 10px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s;
    }
    .next-btn:hover {
      background-color: #fff0f0;
    }

    .advice-box {
      margin-top: 30px;
      background-color: #fff0f0;
      border: 1px solid #d8b6f1;
      border-radius: 10px;
      padding: 20px;
      display: none;
      text-align: left;
      color: #8a4f4f;
    }

/* from emergency*/

/* Emergency Info */
    .emergency-info {
      text-align: center;
      padding: 40px 20px;
    }

    .emergency-info h2 {
      color: #3c2a4d;
      font-size: 26px;
      margin-bottom: 15px;
    }

    .emergency-info h2 i {
      color: #a678de;
      margin-right: 10px;
    }

    .emergency-info p {
      color: #4e3a5b;
      max-width: 700px;
      margin: 0 auto;
      line-height: 1.6;
      font-size: 16px;
    }

    /* Contact Grid */
    .contact-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 25px;
      margin: 40px auto;
      max-width: 900px;
    }

    .contact-card {
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      padding: 25px;
      width: 260px;
      text-align: center;
      transition: transform 0.3s ease;
    }

    .contact-card:hover {
      transform: scale(1.05);
    }

    .contact-card i {
      font-size: 35px;
      color: #a678de;
      margin-bottom: 10px;
    }

    .contact-card h3 {
      color: #3c2a4d;
      font-size: 20px;
      margin: 10px 0 8px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
    }

    .contact-card h3 i {
      font-size: 18px;
      color: #a678de;
    }

    .contact-card p {
      color: #4e3a5b;
      font-size: 15px;
      line-height: 1.5;
    }
	
	
/* from learnandrise*/
 /* Video Section */
    

    /* Habits Section */
    .habits-section {
      text-align: center;
      padding: 30px 20px 50px;
    }

    .habits-section h1 {
      color:  #8a4f4f;
      font-size: 28px;
      margin-bottom: 25px;
    }

    .tracker-box {
      background-color: #fff0f0;
      border-radius: 15px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      max-width: 500px;
      margin: 0 auto;
      padding: 30px;
      text-align: left;
    }

    .habit-item {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
      font-size: 18px;
      color: #8a4f4f;
    }

    .habit-item input {
      margin-right: 10px;
      transform: scale(1.3);
      accent-color: #ffbcbc;
    }

    .progress-bar {
      height: 20px;
      width: 100%;
      background-color: #fffaf9;
      border-radius: 10px;
      margin-top: 20px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      background-color: #ffbcbc;
      border-radius: 10px;
      transition: width 0.4s ease;
    }

    /* Info Section */
    .info-section {
      background-color: #fff0f0;
      border-radius: 15px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      text-align: center;
      padding: 50px 30px;
      color:  #8a4f4f;
      max-width: 750px;
      margin: 40px auto 0;
      font-size: 18px;
      line-height: 1.7;
    }

    .info-section h2 {
      font-size: 26px;
      color:  #8a4f4f;
      margin-bottom: 20px;
    }

    .info-section p {
      margin-bottom: 15px;
    }




/* Footer  index */

 .index {
      background-color: #fff0f0;
      color: #5a2d2d;
      text-align: center;
      padding: 15px 0;
      font-size: 0.9em;
      box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }

/* Footer home-achevments-emergency-learn and rise */
	footer {
      background-color: #fff0f0;
      color: #8a4f4f;
      text-align: center;
      padding: 25px;
      margin-top: 40px;
    }
    footer .social-icons i {
      margin: 0 10px;
      font-size: 20px;
      color: #a678de;
      cursor: pointer;
      transition: color 0.3s ease;
    }
    footer .social-icons i:hover {
      color: #3c2a4d;
    }
	
   