.sdg {
  animation: fadeInUp 1s ease-out;
  display: grid;
  gap: 2rem;
}

.sdg section {
  display: grid;
  gap: 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Styling */
#sdg-report-btn {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

#sdg-report-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

#sdg-report-btn:hover::before {
  left: 100%;
}

#sdg-report-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
  background: linear-gradient(135deg, #d62828 0%, #c1121f 100%);
}

#sdg-report-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sdg img {
  height: 300px;
  width: 300px;
  margin: auto;
}

.sdg p {
  font-size: 1rem;
  text-align: justify;
  line-height: 1.5;
}

.project {
  display: grid;
  margin-top: 1rem;
  border-radius: 0.4rem;
  animation: fadeInUp 1s ease-out;
}

.file {
  display: grid;
  align-items: center;
}

.file a {
  text-decoration: none;
}

.divider h3 {
  text-align: center;
  font-size: 1.4rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.list {
  display: grid;
  padding: 1rem;
}

.accomplishment button,
.list button {
  display: grid;
  padding: 0.8em;
  font-weight: bold;
  text-align: center;
  border-radius: 0.4rem;
  transition: all 0.4s ease-out;
  text-decoration: none;
  background: #292091;
  color: white;
  outline: none;
  border: none;
}

.accomplishment button:hover,
.list button:hover {
  transform: scale(1.04);
}

.content {
  gap: 1rem;
  padding: 1rem;
  display: grid;
}

.content img {
  object-fit: scale-down;
  width: 100%;
}

.text {
  padding: 2rem;
  border-radius: 0.4rem;
  box-shadow: 4px 4px 10px #ede9e9, -4px -4px 10px rgb(243, 239, 239);
  justify-content: space-between;
  flex-direction: column;
  text-align: justify;
  line-height: 1.5;
  display: flex;
  gap: 2rem;
}

.images {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

@media screen and (min-width: 300px) {
  .project h1 {
    font-size: 1.24rem;
    border-radius: 0.4rem;
    text-transform: uppercase;
    border-bottom: 6px double #912020;
    text-align: center;
    color: #912020;
    padding: 1rem;
  }

  .project h1 {
    font-size: 1.2rem;
    text-align: center;
  }

  .accomplishment {
    display: grid;
    padding: 1rem;
    gap: 1rem;
  }
}

@media screen and (min-width: 720px) {
  main {
    width: 85%;
    margin: auto;
  }

  .project h1 {
    text-align: left;
    font-size: 1.64rem;
    border-radius: 0.4rem;
    text-transform: uppercase;
    border-bottom: 6px double #912020;
    color: #912020;
    padding: 1rem;
  }

  .sdg {
    grid-template-columns: auto 1fr;
    display: grid;
  }

  .sdg img {
    height: 200px;
    width: 200px;
    padding: 0rem;
    margin: 0px;
  }

  .divider h3 {
    text-align: center;
    font-size: 1.8rem;
  }

  .accomplishment {
    display: grid;
    grid-template-columns: auto auto;
    padding: 1rem;
    gap: 1rem;
  }

  .content {
    grid-template-columns: 1fr 1fr;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  animation: fadeInUp 0.4s ease-out;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.canvas-container {
  position: relative;
  width: 100%;
  height: calc(100% - 80px);
  overflow: auto;
  background: #f0f0f0;
  border-radius: 8px;
  display: grid;
  margin: auto;
}

.pdf-content-wrapper {
  animation: fadeInUp 1s ease-out;
  display: block;
  margin: auto;
  padding: 2rem;
}

.modal-content {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.3);
  height: 95%;
  width: 90%;
  position: relative;
  max-width: 1400px;
  overflow: hidden;
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.close {
  font-size: 28px;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.close:hover {
  color: #d9534f;
  background-color: rgba(217, 83, 79, 0.1);
}

h2 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.zoom-btn {
  background: #007bff;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: #0056b3;
}

.zoom-level {
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.page-info {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding: 0 15px;
}

.side-nav-btn {
  position: static; /* Remove fixed positioning */
  transform: none; /* Remove the vertical centering */
  margin: 0 10px; /* Add some horizontal spacing */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
}

.nav-prev {
  left: 30px;
}

.nav-next {
  right: 30px;
}

.side-nav-btn:hover {
  background: rgba(0, 123, 255, 0.9);
  color: white;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.side-nav-btn:disabled {
  background: rgba(200, 200, 200, 0.7);
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* Create a new container for the page navigation */
.page-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  background: white;
  border-radius: 4px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  max-width: none; /* Allow canvas to be larger than container */
}

/* Loading indicator */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.loading::after {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 6px solid #007bff;
  border-color: #007bff transparent #007bff transparent;
  animation: loader 1.2s linear infinite;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    height: 95%;
    padding: 15px;
  }

  .side-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .nav-prev {
    left: 15px;
  }

  .nav-next {
    right: 15px;
  }

  .zoom-controls {
    margin-left: 0;
    margin-top: 10px;
  }

  .page-controls {
    flex-direction: column;
    gap: 10px;
  }

  .page-navigation {
    order: -1; /* Move navigation to the top on mobile */
  }
}

/* No Projects Indicator Styles */
.no-projects-message {
  display: none; /* Hidden by default */
  width: 100%;
  padding: 3rem 2rem;
  margin: 2rem 0;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.message-content img {
  width: 64px;
  height: 64px;
  opacity: 0.6;
}

.message-content p {
  font-size: 1.2rem;
  color: #555;
  margin: 0;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .no-projects-message {
    padding: 2rem 1rem;
  }

  .message-content img {
    width: 48px;
    height: 48px;
  }

  .message-content p {
    font-size: 1rem;
  }

  .right-img {
    display: flex;
    flex-direction: column-reverse;
  }
}

.article {
  margin: auto;
  max-width: 1000px;
  padding: 2rem 2rem;
}

.article h1 {
  margin-bottom: 2rem;
}

.article p {
  text-align: justify;
  line-height: 2.5;
}

.article ol {
  padding: 1rem;
}

.article ol li {
  line-height: 2.5;
}

.article h3 {
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #801515;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Single article container for 2024 layout */
.content.single-article {
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

.content.single-article .text {
  padding: 0;
  box-shadow: none;
  gap: 2.5rem;
}

/* Intro paragraph section */
.intro-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid #292091;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(41, 32, 145, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* Aims list section */
.aims-section {
  background: #fff;
  border: 2px solid #e74c3c;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
  position: relative;
}

.aims-section::before {
  content: "🎯";
  position: absolute;
  top: -15px;
  left: 20px;
  background: #e74c3c;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.aims-section h3 {
  color: #e74c3c;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aims-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aims-section li {
  position: relative;
  padding: 1rem 0 1rem 2.5rem;
  border-bottom: 1px solid #f8f9fa;
  line-height: 1.7;
  color: #34495e;
  transition: all 0.3s ease;
}

.aims-section li:last-child {
  border-bottom: none;
}

.aims-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 1rem;
  color: #e74c3c;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.aims-section li:hover {
  background: rgba(231, 76, 60, 0.05);
  border-radius: 8px;
  padding-left: 2.8rem;
}

.aims-section li:hover::before {
  transform: translateX(5px);
}

/* Standard section */
.standard-section {
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
  border: 1px solid #27ae60;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 3px 12px rgba(39, 174, 96, 0.1);
}

.standard-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  border-radius: 12px 12px 0 0;
}

.standard-section h3 {
  color: #27ae60;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-left: 1.5rem;
}

.standard-section h3::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-size: 0.8rem;
}

.standard-section p {
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 1.2rem;
}

.standard-section p:last-child {
  margin-bottom: 0;
}

/* Two column section */
.two-column-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #3498db;
}

.column-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}

.column {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fcff 0%, #e3f2fd 100%);
  border-radius: 10px;
  border-left: 4px solid #3498db;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.column h4 {
  color: #2980b9;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 1px;
}

.column p {
  line-height: 1.7;
  color: #34495e;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.column p:last-child {
  margin-bottom: 0;
}

/* Responsive design for mobile */
@media screen and (max-width: 768px) {
  .content.single-article {
    padding: 1rem;
    gap: 1.5rem;
  }

  .intro-section,
  .aims-section,
  .standard-section,
  .two-column-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .column-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .aims-section h3,
  .standard-section h3 {
    font-size: 1.2rem;
  }

  .column h4 {
    font-size: 1.1rem;
  }

  .intro-section p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .intro-section,
  .aims-section,
  .standard-section,
  .two-column-section {
    padding: 1rem;
  }

  .aims-section li {
    padding: 0.8rem 0 0.8rem 2rem;
  }

  .standard-section h3 {
    padding-left: 1rem;
  }

  .column {
    padding: 1rem;
  }
}

/* Animation for content loading */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.intro-section {
  animation: slideInFromLeft 0.6s ease-out;
}

.aims-section {
  animation: slideInFromRight 0.6s ease-out 0.1s both;
}

.standard-section {
  animation: slideInFromLeft 0.6s ease-out 0.2s both;
}

.two-column-section {
  animation: slideInFromRight 0.6s ease-out 0.3s both;
}

/* Loading content styling */
.loading-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #7f8c8d;
  font-size: 1.1rem;
  font-weight: 500;
}

.loading-content::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #bdc3c7;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  text-decoration: underline;
}
