/* ── Tasks Page Custom CSS ── */

/* Use CSS variables from main styles */
:root {
  --military: #4a5d4a;
  --military-dark: #3a4a3a;
  --cream: #f5f3ef;
  --warm-gray: #e8e4de;
  --rosewood: #65424a;
}

/* Container */
.tasks-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Breadcrumb */
.tasks-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--military);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--rosewood);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--military);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--military);
  font-weight: 500;
}

/* Header */
.tasks-header {
  margin-bottom: 3rem;
}

.tasks-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--military);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}


.tasks-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--rosewood), var(--military));
  margin-bottom: 1.5rem;
}

.tasks-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.85;
  text-align: justify;
}

/* Tasks List */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.task-item {
  background-color: var(--cream);
  border: 2px solid rgba(74, 93, 74, 0.06);
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  display: flex;
  flex-direction: column;
}

.task-item:hover {
  transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.task-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background-color: transparent;
  border-left: 4px solid var(--military);
  transition: border-left-color 0.3s ease;
  cursor: pointer;
}

.task-item:hover .task-title-wrapper {
  border-left-color: var(--rosewood);
}

.task-icon {
  flex-shrink: 0;
  width: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  background-color: transparent;
}

.task-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.task-item:hover .task-icon {
  transform: scale(1.1);
}

/* Wrapper holding the icon + toggle arrow */
.task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 0 1 30%;
}

/* Arrow toggle button */
.task-toggle-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--military);
  background: none;
  color: var(--military);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.task-toggle-btn:hover {
  background-color: var(--military);
  color: var(--cream);
}

.task-toggle-btn svg {
  transition: transform 0.3s ease;
}

.task-item.expanded .task-toggle-btn {
  background-color: var(--rosewood);
  border-color: var(--rosewood);
  color: var(--cream);
}

.task-item.expanded .task-toggle-btn svg {
  transform: rotate(180deg);
}

.task-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--military-dark);
  margin-bottom: 0;
  flex: 0 1 100%;
  max-width: 75%;
  line-height: 1.4;
  text-align: left;
    padding-left: 1.7em;
  text-indent: -1.2em;
}

.task-description {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  margin-bottom: 0;
  text-align: justify;
  padding: 0 2rem;
  background-color: rgba(232, 228, 222, 0.5);
  border-radius: 0 8px 8px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, background-color 0.3s ease;
}

.task-description p {
  text-indent: 2rem;
}


.task-item.expanded .task-description {
  opacity: 0.8;
  max-height: 1000px;
  padding: 2rem;
  background-color: rgba(232, 228, 222, 0.8);
}

.task-item ul {
  padding: 0 2rem 1.5rem 3.5rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tasks-container {
    padding: 1.5rem 1rem;
  }

  .tasks-title {
    font-size: 2rem;
  }

  .task-item {
    border-radius: 0 8px 8px 0;
  }

  .task-title-wrapper {
    padding: 0 1.5rem 0 1.5rem;
  }

  .task-title {
    font-size: 0.95rem;
  }

  .task-description {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .task-item ul {
    padding: 0 1.5rem 1rem 3rem;
  }
}

@media (max-width: 480px) {


  .tasks-title {
    font-size: 1.75rem;
  }

  .task-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 1rem 0 1rem;
  }

  .task-actions {
    align-self: flex-end;
  }

  .task-icon {
    width: 40px;
    height: 40px;
  }

  .task-title {
    font-size: 0.9rem;
    flex: 1 1 auto;
    max-width: 100%;
    padding-top: 10px;
  }

  .task-description {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.8rem;
  }

  .task-item ul {
    padding: 0 1rem 1rem 2.5rem;
  }

  h5 {
    font-size: 1.00rem;
}

.tasks-intro {
    font-size: 0.9rem;

}
}