/* Main content styling */
main {
    flex: 1;
    padding: 1.5rem;
    background-color: #e5e7eb; /* Light gray */
    overflow-y: auto;
    position: relative; /* For notification positioning */
}

p {
    color: #4b5563; /* Gray text */
}

.placeholder-content {
    height: auto; /* 384px */
    background-color: #dcdedf; /* Light gray */
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(220,222,223,0.3), 0 8px 24px rgba(220,222,223,0.18);

    
}

.placeholder-content-title {
    text-align: center;
    margin-bottom: 1rem;
    
    padding: 0.5rem 0; /* Padding around title and subtitle */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between title and subtitle */
    width: 100%; /* Full width of the item */
    box-sizing: border-box; /* Include padding in width */
}

.placeholder-content h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #1f2937; /* Dark gray */
}

.placeholder-content-other {
    /*height: auto;  384px */
    min-height: 85vh;
    background-color: #e5e7eb; /* Light gray */
    margin-top: 1rem;
    padding: 1rem 2rem 1rem 4rem;
    position: relative;
    display: none; /* Hidden by default */
    
}

.placeholder-content-other.active {
  display: block; /* Show only the active section */
}


.placeholder-content-other h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #1f2937; /* Dark gray */
}

.text-content {
    
    margin: 1rem 0 0 0;
   
}

.round-shape {
      margin-top: 1rem;
      position: absolute;
      width: 40px;
      height: 40px;
      background: linear-gradient(180deg, #3b82f6, #2563eb);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      font-weight: 600;
      font-size: 1.2rem;
      box-shadow: 0 6px 18px rgba(37,99,235,.35);
      user-select: none;
    }



.placeholder-content-other h3 {
    font-size: 1.2rem; /* 19px */
    font-weight: 600;
    color: #1f2937; /* Dark gray */
    margin: 1.4rem 0 0 3.5rem;

    text-align: left;
    letter-spacing: 0.02em;
}

.placeholder-content-other p{
   
    margin: 1rem 0 0 0;
    font-weight: 200;
    color: #272d35; /* Gray text */
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: justify;
 
}

.vertical-line {
  position: absolute;
  top: 2rem;        /* Move line down to align with h2 */
  left: 5px;
  width: 3px;
  height: calc(100% - 2rem); /* Reduce height so it starts at h2 */
  background: #c0d8e6;
  border-radius: 2px;
}


/*Features section*/

.tick-icon{
  margin-top: 1rem;
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 900;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
  user-select: none;
}



.text-content-features{
  margin: 0.5rem 0 0.5rem 0;
}

.text-content-features p{
  margin: 1.4rem 0 0 3.5rem;
  font-weight: 300;
  font-size: 1.05rem;
  color:#272d35; /* Gray text */
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: justify;
}

/*Why use it section*/
.why-use-it-icon{
  margin-top: 1rem;
  position: absolute;
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
  user-select: none;
}

.text-content-why-use-it{
  margin: 0.5rem 0 0.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

/* Individual reason block as a small grid with 2 columns */
.why-point {
  display: flex;
  grid-template-columns: minmax(40px, auto) 1fr; /* Icon column auto-sized with min width, text fills remaining */
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  background: #eceef1;
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 4px 20px rgb(218 228 255 / 0.4);
  transition: transform 0.2s ease;
}

.why-point:hover {
  transform: translateY(-6px);/* Lifts the background box on hover */
  box-shadow: 0 10px 30px rgb(37 99 235 / 0.45);
}

.text-content-why-use-it p{
  margin: 1.4rem 0 0 3.5rem;;
  font-weight: 300;
  font-size: 1.05rem;
  color: #272d35;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: justify;
}


.text-content-why-use-it{
  margin: 0.5rem 0 0.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}


/*Tips section*/
.tips-icon{
  margin-top: 1rem;
  position: absolute;
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
  user-select: none;
}

.text-content-tips{
  margin: 0.5rem 0 0.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

/* Individual reason block as a small grid with 2 columns */
.tip-point {
  display: flex;
  grid-template-columns: minmax(40px, auto) 1fr; /* Icon column auto-sized with min width, text fills remaining */
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  background: #eceef1;
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 4px 20px rgb(218 228 255 / 0.4);
  transition: transform 0.2s ease;
}

.tip-point:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgb(37 99 235 / 0.45);
}

.text-content-tips p{
  margin: 1.4rem 0 0 3.5rem;;
  font-weight: 300;
  font-size: 1rem;
  color: #272d35;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: left;
}

/* Notification styling */
.notification {
    position: absolute;
    bottom: 0.5rem;
    right: 1.5rem;
   background:#b0d6b0; /* Green gradient */
   
    padding: 1rem 1.2rem;
   
    border-radius: 0.2rem;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3), 0 8px 24px rgba(16,185,129,0.18);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 1000; /* Ensure it appears above or on top other content */
    display: none; /* Hidden by default */
    min-width: 300px;
    text-align: center;
    animation: slideInFromRight 0.3s ease-out; /* keyframes Animation called here using the animation property */
}

/* Animation for notification */
/*@keyframes, used to create CSS animation*/
@keyframes slideInFromRight { /* Animation name */
    from { /* Indicates the starting state */
        transform: translateX(100%); /*Moves element to the right*/
        opacity: 0;
    }
    to { /* Indicates the ending state */
        transform: translateX(0);
        opacity: 1;/* Fully visible */
    }
}

/* Auto-hide animation */
.notification.hide {
    animation: slideOutToRight 0.3s ease-in forwards;
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Notification icon styling */
.notify-icon{
  position: absolute; 
  left: 0.8rem  ; /* Space from left edge of notification */
  top: 0.5rem; /* Vertically center */
  width: 40px;
  height: 40px;
  /*background: linear-gradient(180deg, #10b981, #059669); /* Green gradient */
  background:#81b781; /* Solid green */
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #194e19;
  font-weight: 900;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(16,185,129,0.35); /* Green shadow */
  user-select: none;
}

.notify_message{
  margin-left: 3rem; /* Space to the right of icon */
  font-weight: 600;
  font-size: 0.95rem;
  color: #194e19;
}


/* =========================
   RESPONSIVE MAIN SECTION
========================= */

/* Tablets (768px and down) */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  
  .placeholder-content {
    margin-top: 0.5rem;
    padding: 0.75rem;
  }
  
  .placeholder-content-other {
    min-height: auto;
    padding: 1rem 1.5rem;
  }
  
  .placeholder-content h2,
  .placeholder-content-other h2 {
    font-size: 1.3rem;
  }
  
  .placeholder-content-other h3 {
    font-size: 1.1rem;
    margin: 1.2rem 0 0 3rem;
  }
  
  .placeholder-content-other p {
    font-size: 0.95rem;
    margin: 0.8rem 0 0 0;
  }
  
  .vertical-line {
    left: 3px;
    width: 2px;
  }
  
  .round-shape,
  .tick-icon,
  .why-use-it-icon,
  .tips-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  /* Adjust grid layouts */
  .text-content-why-use-it {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .text-content-tips {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .text-content-features {
    margin: 0.4rem 0;
  }
  
  .why-point,
  .tip-point {
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .text-content-why-use-it p,
  .text-content-tips p, 
  .text-content-features p{
    margin: 1rem 0 0 3rem;
    font-size: 0.95rem;
  }
}

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
  main {
    padding: 0.75rem;
  }
  
  .placeholder-content {
    padding: 0.5rem;
  }
  
  .placeholder-content-other {
    padding: 0.75rem 1rem;
  }
  
  .placeholder-content h2,
  .placeholder-content-other h2 {
    font-size: 1.2rem;
  }
  
  .placeholder-content-other h3 {
    font-size: 1rem;
    margin: 1rem 0 0 2.5rem;
  }
  
  .placeholder-content-other p {
    font-size: 0.9rem;
    text-align: left;
  }
  
  .round-shape,
  .tick-icon{
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .why-use-it-icon,
  .tips-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin: 0 0 0 0;
  }
  
  .why-point,
  .tip-point {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem;
    gap: 1rem;
  }
  
  .text-content-why-use-it p,
  .text-content-tips p {
    margin: 0 0 0 2.5rem;
    font-size: 0.9rem;
    text-align: left;
  }
  
  .text-content-features {
    margin: 0.3rem 0;
  }
  
  .text-content-features p {
    margin: 1rem 0 0 2.5rem;
    font-size: 0.95rem;
  }
}

/* Extra small phones (360px and down) */
@media (max-width: 360px) {
  .placeholder-content {
    padding: 0.4rem;
  }
  
  .placeholder-content-other {
    padding: 0.5rem 0.75rem;
  }
  
  .placeholder-content h2,
  .placeholder-content-other h2 {
    font-size: 1.1rem;
  }
  
  .placeholder-content-other h3 {
    font-size: 0.95rem;
    margin: 0.8rem 0 0 2rem;
  }
  
  .placeholder-content-other p {
    font-size: 0.85rem;
  }
  
  .round-shape,
  .tick-icon,
  .why-use-it-icon,
  .tips-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .why-point,
  .tip-point {
    padding: 1rem 0.8rem;
  }
  
  .text-content-why-use-it p,
  .text-content-tips p,
  .text-content-features p {
    font-size: 0.85rem;
  }
  
  .text-content-features {
    margin: 0.2rem 0;
  }
  
  .text-content-features p {
    margin: 0.8rem 0 0 2rem;
  }
  
  /* Notification responsive */
  .notification {
    top: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    min-width: 180px;
  }
}
