/* Global Reset and Base Styles */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

body.dark-mode {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: #111;
  color: #ddd;
}

/* Container Styling */
.pentesting-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

body.dark-mode .pentesting-container {
  background: #1a1a1a;
  box-shadow: none;
}

/* Header */
.pentesting-header h1 {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 10px;
  text-align: center;
  margin: 0;
}

.pentesting-header p {
  max-width: 750px;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Paragraph Styling */
p, .body-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

body.dark-mode p, body.dark-mode .body-text {
  color: #ccc;
}

/* Accordion Styling */
.accordion {
  margin-top: 20px;
}

.accordion-item {
  background: white;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

body.dark-mode .accordion-item {
  background: #2a2a2a;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
}

.accordion-checkbox {
  display: none;
}

.accordion-header {
  display: block;
  background-color: #007bff;
  color: white;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
}

.accordion-header::after {
  content: "\25BC";
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.accordion-checkbox:checked + .accordion-header::after {
  transform: rotate(180deg);
}

.accordion-header:hover {
  background-color: #0056b3;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-checkbox:checked + .accordion-header + .accordion-content {
  max-height: 1000px;
  padding: 20px;
}

/* List Styling */
ul {
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  list-style-type: none;
}

ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 1.6em;
}

ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #007bff;
  font-weight: bold;
  font-size: 1.2em;
}

body.dark-mode ul li::before {
  color: #66b3ff;
}

/* Document List Custom Styling */
.document-list {
  list-style: none;
  padding-left: 0;
}

.document-list li {
  margin: 12px 0;
  padding-left: 30px;
  position: relative;
  font-weight: 500;
}

.document-list li::before {
  content: "\1F4C4";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

.document-list a {
  color: #0056b3;
  text-decoration: none;
}

.document-list a:hover {
  text-decoration: underline;
}

body.dark-mode .document-list a {
  color: #66b3ff;
}

/* Expand All Button */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
}

.expand-all-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.expand-all-btn:hover {
  background-color: #0056b3;
}

/* Project Image */
.project-thumbnail {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin: 20px 0;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .pentesting-header h1 {
    font-size: 1.8rem;
  }

  .expand-all-btn {
    width: 100%;
    padding: 12px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  ul {
    font-size: 1rem;
  }

  .document-list {
    font-size: 1rem;
  }
}

/* Dark Mode Toggle JS can toggle 'dark-mode' class on body */
